1
0
Fork 0

fix test implementation for php 5.3

refs issue #3657
pull/3685/head
Xavier Fornes 2015-01-28 11:46:38 +01:00
parent bb0a2df293
commit 8ba8580a28
1 changed files with 3 additions and 3 deletions

View File

@ -57,9 +57,9 @@ class ConsoleIOTest extends TestCase
->method('write')
->with(
$this->callback(function($messages){
$this->assertRegExp("[(.*)/(.*) First line]", $messages[0]);
$this->assertRegExp("[(.*)/(.*) Second line]", $messages[1]);
return true;
$result = preg_match("[(.*)/(.*) First line]", $messages[0]) > 0;
$result &= preg_match("[(.*)/(.*) Second line]", $messages[1]) > 0;
return $result;
}),
$this->equalTo(false)
);