mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +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
|
* @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));
|
||||||
|
|
Loading…
Reference in a new issue