From a7708c914ff1bc12232cb8650723c69f9ab26f33 Mon Sep 17 00:00:00 2001 From: mark_story Date: Fri, 22 Mar 2013 21:36:11 -0400 Subject: [PATCH] Remove test case that is no longer useful. It is impossible for the current test to ever fail in the test suite, as PHPUnit will always be loaded. --- .../TestSuite/CakeTestSuiteDispatcherTest.php | 71 ------------------- 1 file changed, 71 deletions(-) delete mode 100644 lib/Cake/Test/Case/TestSuite/CakeTestSuiteDispatcherTest.php diff --git a/lib/Cake/Test/Case/TestSuite/CakeTestSuiteDispatcherTest.php b/lib/Cake/Test/Case/TestSuite/CakeTestSuiteDispatcherTest.php deleted file mode 100644 index 9d04226f8..000000000 --- a/lib/Cake/Test/Case/TestSuite/CakeTestSuiteDispatcherTest.php +++ /dev/null @@ -1,71 +0,0 @@ -vendors = App::path('vendors'); - $this->includePath = ini_get('include_path'); - } - -/** - * tearDown method - * - * @return void - */ - public function tearDown() { - App::build(array('Vendor' => $this->vendors), App::RESET); - ini_set('include_path', $this->includePath); - } - -/** - * Helper method to set vendor path - * - * @return void - */ - protected function _clearPaths() { - App::build(array('Vendor' => array('junk')), App::RESET); - ini_set('include_path', 'junk'); - } - -/** - * testLoadTestFramework method - * - * @return void - */ - public function testLoadTestFramework() { - $dispatcher = new CakeTestSuiteDispatcher(); - - $this->assertTrue($dispatcher->loadTestFramework()); - - $this->_clearPaths(); - - $this->setExpectedException('PHPUnit_Framework_Error_Warning'); - $dispatcher->loadTestFramework(); - } - -} \ No newline at end of file