diff --git a/t/Koha/Object/Message.t b/t/Koha/Object/Message.t index 6eb2f2e872..5a513753b2 100755 --- a/t/Koha/Object/Message.t +++ b/t/Koha/Object/Message.t @@ -52,5 +52,5 @@ subtest 'new() tests' => sub { 'Koha::Exceptions::MissingParameter', 'Exception thrown if required parameter missing'; - is( "$@", "Mandatory parameter missing: 'message'", 'Expected exception message' ); + like( "$@", qr/Mandatory parameter missing: 'message'/, 'Expected exception message' ); };