mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-03-18 23:49:55 +00:00
Updating FixtureTest to account for removal of ?> in templates.
This commit is contained in:
parent
906ef65547
commit
82ae533f2a
1 changed files with 2 additions and 2 deletions
|
@ -341,10 +341,10 @@ class FixtureTaskTest extends CakeTestCase {
|
||||||
$filename = '/my/path/article_fixture.php';
|
$filename = '/my/path/article_fixture.php';
|
||||||
|
|
||||||
$this->Task->expects($this->at(0))->method('createFile')
|
$this->Task->expects($this->at(0))->method('createFile')
|
||||||
->with($filename, new PHPUnit_Framework_Constraint_PCREMatch('/Article/'));
|
->with($filename, new PHPUnit_Framework_Constraint_PCREMatch('/ArticleFixture/'));
|
||||||
|
|
||||||
$this->Task->expects($this->at(1))->method('createFile')
|
$this->Task->expects($this->at(1))->method('createFile')
|
||||||
->with($filename, new PHPUnit_Framework_Constraint_PCREMatch('/\<\?php(.*)\?\>/ms'));
|
->with($filename, new PHPUnit_Framework_Constraint_PCREMatch('/\<\?php/ms'));
|
||||||
|
|
||||||
$result = $this->Task->generateFixtureFile('Article', array());
|
$result = $this->Task->generateFixtureFile('Article', array());
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue