Browse Source

Update appveyor tests to not fail

mtak3 6 years ago
parent
commit
93366bf170
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tests/TestCase/Log/Engine/ConsoleLogTest.php

+ 2 - 2
tests/TestCase/Log/Engine/ConsoleLogTest.php

@@ -57,7 +57,7 @@ class ConsoleLogTest extends TestCase
         $fh = fopen($filename, 'r');
         $line = fgets($fh);
         $this->assertStringContainsString('Error: oh noes', $line);
-        $this->assertRegExp('/^2[0-9]{3}-[0-9]+-[0-9]+ [0-9]+:[0-9]+:[0-9]+ Error: oh noes/', $line);
+        $this->assertRegExp('/2[0-9]{3}-[0-9]+-[0-9]+ [0-9]+:[0-9]+:[0-9]+ Error: oh noes/', $line);
     }
 
     /**
@@ -93,6 +93,6 @@ class ConsoleLogTest extends TestCase
         $log->log('error', 'oh noes');
         $fh = fopen($filename, 'r');
         $line = fgets($fh);
-        $this->assertRegExp('/^2[0-9]{3}-[0-9]+-[0-9]+T[0-9]+:[0-9]+:[0-9]+\+\d{2}:\d{2} Error: oh noes/', $line);
+        $this->assertRegExp('/2[0-9]{3}-[0-9]+-[0-9]+T[0-9]+:[0-9]+:[0-9]+\+\d{2}:\d{2} Error: oh noes/', $line);
     }
 }