mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-03-02 07:39:45 +00:00
Changing assertPattern to assertRegExp.
This commit is contained in:
parent
cdcabc79b6
commit
b362afee06
1 changed files with 2 additions and 2 deletions
|
@ -123,10 +123,10 @@ class ProjectTaskTest extends CakeTestCase {
|
||||||
$this->assertTrue(is_dir($this->Task->args[0]), 'No project dir');
|
$this->assertTrue(is_dir($this->Task->args[0]), 'No project dir');
|
||||||
$file = new File($path . DS . 'webroot' . DS . 'index.php');
|
$file = new File($path . DS . 'webroot' . DS . 'index.php');
|
||||||
$contents = $file->read();
|
$contents = $file->read();
|
||||||
$this->assertPattern('/define\(\'CAKE_CORE_INCLUDE_PATH\', .*?DS/', $contents);
|
$this->assertRegExp('/define\(\'CAKE_CORE_INCLUDE_PATH\', .*?DS/', $contents);
|
||||||
$file = new File($path . DS . 'webroot' . DS . 'test.php');
|
$file = new File($path . DS . 'webroot' . DS . 'test.php');
|
||||||
$contents = $file->read();
|
$contents = $file->read();
|
||||||
$this->assertPattern('/define\(\'CAKE_CORE_INCLUDE_PATH\', .*?DS/', $contents);
|
$this->assertRegExp('/define\(\'CAKE_CORE_INCLUDE_PATH\', .*?DS/', $contents);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue