Permalink
Browse files

Changing assertPattern to assertRegExp.

  • Loading branch information...
1 parent cdcabc7 commit b362afee0695da3cd74f9792655e20651ef2c39e @markstory markstory committed with markstory Jul 31, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Cake/Test/Case/Console/Command/Task/ProjectTaskTest.php
@@ -123,10 +123,10 @@ public function testExecuteWithAbsolutePath() {
$this->assertTrue(is_dir($this->Task->args[0]), 'No project dir');
$file = new File($path . DS . 'webroot' . DS . 'index.php');
$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');
$contents = $file->read();
- $this->assertPattern('/define\(\'CAKE_CORE_INCLUDE_PATH\', .*?DS/', $contents);
+ $this->assertRegExp('/define\(\'CAKE_CORE_INCLUDE_PATH\', .*?DS/', $contents);
}
/**

0 comments on commit b362afe

Please sign in to comment.