Updating FixtureTest to account for removal of ?> in templates.

This commit is contained in:
mark_story 2010-07-08 22:40:03 -04:00
parent 906ef65547
commit 82ae533f2a

View file

@ -341,10 +341,10 @@ class FixtureTaskTest extends CakeTestCase {
$filename = '/my/path/article_fixture.php';
$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')
->with($filename, new PHPUnit_Framework_Constraint_PCREMatch('/\<\?php(.*)\?\>/ms'));
->with($filename, new PHPUnit_Framework_Constraint_PCREMatch('/\<\?php/ms'));
$result = $this->Task->generateFixtureFile('Article', array());