mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixing tests failing because of visibility.
This commit is contained in:
parent
79eeb33e35
commit
50243f3b84
1 changed files with 4 additions and 4 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue