Skip to content
This repository
Browse code

making tests pass on windows again

  • Loading branch information...
commit cc436146be6b66d28e3a9a44b2c09af68c7d0d19 1 parent f3bbe89
Mark authored October 25, 2012
12  lib/Cake/Test/Case/Console/Command/Task/ExtractTaskTest.php
@@ -308,10 +308,10 @@ public function testExtractModelValidation() {
308 308
 		$this->Task->execute();
309 309
 		$result = file_get_contents($this->path . DS . 'default.pot');
310 310
 
311  
-		$pattern = preg_quote('#Model' . DS . 'PersisterOne.php:validation for field title#', '\\');
  311
+		$pattern = preg_quote('#Model/PersisterOne.php:validation for field title#', '\\');
312 312
 		$this->assertRegExp($pattern, $result);
313 313
 
314  
-		$pattern = preg_quote('#Model' . DS . 'PersisterOne.php:validation for field body#', '\\');
  314
+		$pattern = preg_quote('#Model/PersisterOne.php:validation for field body#', '\\');
315 315
 		$this->assertRegExp($pattern, $result);
316 316
 
317 317
 		$pattern = '#msgid "Post title is required"#';
@@ -354,10 +354,10 @@ public function testExtractModelValidationWithDomainInModel() {
354 354
 		$this->Task->execute();
355 355
 		$result = file_get_contents($this->path . DS . 'test_plugin.pot');
356 356
 
357  
-		$pattern = preg_quote('#Plugin' . DS . 'TestPlugin' . DS . 'Model' . DS . 'TestPluginPost.php:validation for field title#', '\\');
  357
+		$pattern = preg_quote('#Plugin/TestPlugin/Model/TestPluginPost.php:validation for field title#', '\\');
358 358
 		$this->assertRegExp($pattern, $result);
359 359
 
360  
-		$pattern = preg_quote('#Plugin' . DS . 'TestPlugin' . DS . 'Model' . DS . 'TestPluginPost.php:validation for field body#', '\\');
  360
+		$pattern = preg_quote('#Plugin/TestPlugin/Model/TestPluginPost.php:validation for field body#', '\\');
361 361
 		$this->assertRegExp($pattern, $result);
362 362
 
363 363
 		$pattern = '#msgid "Post title is required"#';
@@ -393,10 +393,10 @@ public function testExtractModelValidationInPlugin() {
393 393
 		$this->Task->execute();
394 394
 		$result = file_get_contents($this->path . DS . 'test_plugin.pot');
395 395
 
396  
-		$pattern = preg_quote('#Model' . DS . 'TestPluginPost.php:validation for field title#', '\\');
  396
+		$pattern = preg_quote('#Model/TestPluginPost.php:validation for field title#', '\\');
397 397
 		$this->assertRegExp($pattern, $result);
398 398
 
399  
-		$pattern = preg_quote('#Model' . DS . 'TestPluginPost.php:validation for field body#', '\\');
  399
+		$pattern = preg_quote('#Model/TestPluginPost.php:validation for field body#', '\\');
400 400
 		$this->assertRegExp($pattern, $result);
401 401
 
402 402
 		$pattern = '#msgid "Post title is required"#';

0 notes on commit cc43614

Please sign in to comment.
Something went wrong with that request. Please try again.