From 50243f3b84bcdd2d9929f2802769b2e9c533f11d Mon Sep 17 00:00:00 2001 From: Mark Story Date: Wed, 14 Apr 2010 23:00:22 -0400 Subject: [PATCH] Fixing tests failing because of visibility. --- cake/tests/cases/libs/test_manager.test.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cake/tests/cases/libs/test_manager.test.php b/cake/tests/cases/libs/test_manager.test.php index 5191f8ff0..fed2b1852 100644 --- a/cake/tests/cases/libs/test_manager.test.php +++ b/cake/tests/cases/libs/test_manager.test.php @@ -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));