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