From 22cf19e174bcee88b44968f2773d1bad2da2b54d Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 18 Jul 2012 03:59:10 -0700 Subject: bad sync with github windows client --- .../tests/HTMLPurifier/ErrorCollectorEMock.php | 48 ---------------------- 1 file changed, 48 deletions(-) delete mode 100644 lib/htmlpurifier/tests/HTMLPurifier/ErrorCollectorEMock.php (limited to 'lib/htmlpurifier/tests/HTMLPurifier/ErrorCollectorEMock.php') diff --git a/lib/htmlpurifier/tests/HTMLPurifier/ErrorCollectorEMock.php b/lib/htmlpurifier/tests/HTMLPurifier/ErrorCollectorEMock.php deleted file mode 100644 index bbd096569..000000000 --- a/lib/htmlpurifier/tests/HTMLPurifier/ErrorCollectorEMock.php +++ /dev/null @@ -1,48 +0,0 @@ -_context = $context; - } - - public function expectContext($key, $value) { - $this->_expected_context[$key] = $value; - } - public function expectContextAt($step, $key, $value) { - $this->_expected_context_at[$step][$key] = $value; - } - - public function send($v1, $v2) { - // test for context - $context = SimpleTest::getContext(); - $test = $context->getTest(); - $mock = $this->mock; - - foreach ($this->_expected_context as $key => $value) { - $test->assertEqual($value, $this->_context->get($key)); - } - $step = $mock->getCallCount('send'); - if (isset($this->_expected_context_at[$step])) { - foreach ($this->_expected_context_at[$step] as $key => $value) { - $test->assertEqual($value, $this->_context->get($key)); - } - } - // boilerplate mock code, does not have return value or references - $args = func_get_args(); - $mock->invoke('send', $args); - } - -} - -// vim: et sw=4 sts=4 -- cgit v1.2.3