Skip to content

Commit

Permalink
Updating FixtureTest to account for removal of ?> in templates.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jul 9, 2010
1 parent 906ef65 commit 82ae533
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cake/tests/cases/console/libs/tasks/fixture.test.php
Expand Up @@ -341,10 +341,10 @@ public function testGenerateFixtureFile() {
$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());

Expand Down

0 comments on commit 82ae533

Please sign in to comment.