Skip to content

Commit

Permalink
fix regex in test
Browse files Browse the repository at this point in the history
  • Loading branch information
franmomu authored and OskarStark committed Feb 25, 2020
1 parent 3ea9139 commit db7ea29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Datagrid/ListMapperTest.php
Expand Up @@ -168,7 +168,7 @@ public function testAddOptionIdentifierWithWrongValue(bool $expected, $value): v
$this->assertFalse($this->listMapper->has('fooName'));

$this->expectException(\InvalidArgumentException::class);
$this->expectExceptionMessageMatches('{^Value for "identifier" option must be boolean, [^]+ given.$}');
$this->expectExceptionMessageMatches('/^Value for "identifier" option must be boolean, .+ given.$/');

$this->listMapper->add('fooName', null, ['identifier' => $value]);
}
Expand Down

0 comments on commit db7ea29

Please sign in to comment.