public function testLoadTestFramework() { $dispatcher = new CakeTestSuiteDispatcher(); $this->assertTrue($dispatcher->loadTestFramework()); $this->clearPaths(); $exception = null; try { $dispatcher->loadTestFramework(); } catch (Exception $ex) { $exception = $ex; } $this->assertEquals(get_class($exception), "PHPUnit_Framework_Error_Warning"); }