From b362afee0695da3cd74f9792655e20651ef2c39e Mon Sep 17 00:00:00 2001 From: Mark Story Date: Sun, 31 Jul 2011 15:15:43 -0400 Subject: [PATCH] Changing assertPattern to assertRegExp. --- lib/Cake/Test/Case/Console/Command/Task/ProjectTaskTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Cake/Test/Case/Console/Command/Task/ProjectTaskTest.php b/lib/Cake/Test/Case/Console/Command/Task/ProjectTaskTest.php index 5daeb0c1f..baec53707 100644 --- a/lib/Cake/Test/Case/Console/Command/Task/ProjectTaskTest.php +++ b/lib/Cake/Test/Case/Console/Command/Task/ProjectTaskTest.php @@ -123,10 +123,10 @@ class ProjectTaskTest extends CakeTestCase { $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); } /**