File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ private static function getErrorMessage($errorCode)
117117
118118 $ error = error_get_last ();
119119 if ($ error && 0 === strpos ($ error ['message ' ], 'msg_ ' )) {
120- return preg_replace ('/^msg_[^( ]+?\(\)\ :\s* / ' , '' , $ error ['message ' ]);
120+ return preg_replace ('/^msg_[^: ]+?\:\s/ ' , '' , $ error ['message ' ]);
121121 }
122122
123123 return 'Unknown error. ' ;
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ protected function getUnsupportedItemTypes()
2525 /**
2626 * @dataProvider provideItemsOfUnsupportedTypes
2727 * @expectedException \Phive\Queue\QueueException
28- * @expectedExceptionMessage Message parameter must be either a string or a number.
28+ * @expectedExceptionMessage /^ Message parameter must be either a string or a number\./
2929 */
3030 public function testUnsupportedItemType ($ item )
3131 {
You can’t perform that action at this time.
0 commit comments