Skip to content

Commit

Permalink
Fixing tests failing because of visibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Apr 15, 2010
1 parent 79eeb33 commit 50243f3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cake/tests/cases/libs/test_manager.test.php
Expand Up @@ -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();
}

/**
Expand All @@ -44,11 +44,11 @@ public function setUp() {
* @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));
Expand Down

0 comments on commit 50243f3

Please sign in to comment.