Fixing tests failing because of visibility.

This commit is contained in:
Mark Story 2010-04-14 23:00:22 -04:00
parent 79eeb33e35
commit 50243f3b84

View file

@ -34,8 +34,8 @@ class TestManagerTest extends CakeTestCase {
* @return void
*/
public function setUp() {
$this->TestManager =& new TestManager();
$this->Reporter =& new CakeHtmlReporter();
$this->TestManager = new TestManager();
$this->Reporter = new CakeHtmlReporter();
}
/**
@ -44,11 +44,11 @@ class TestManagerTest extends CakeTestCase {
* @return void
*/
public function testRunAllTests() {
$folder =& new Folder($this->TestManager->_getTestsPath());
$folder = new Folder(CORE_TEST_CASES);
$extension = str_replace('.', '\.', $this->TestManager->getExtension('test'));
$out = $folder->findRecursive('.*' . $extension);
$reporter =& new CakeHtmlReporter();
$reporter = new CakeHtmlReporter();
$list = $this->TestManager->runAllTests($reporter, true);
$this->assertEqual(count($out), count($list));