File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,12 @@ public function it_can_assert_that_a_configuration_is_valid()
62
62
public function it_fails_when_a_configuration_is_invalid_when_it_should_have_been_valid ()
63
63
{
64
64
$ this ->expectException (ExpectationFailedException::class);
65
- $ this ->expectExceptionMessage ('The child node "required_value" at path "root" must be configured. ' );
65
+
66
+ if (method_exists ($ this , 'expectExceptionMessageMatches ' )) {
67
+ $ this ->expectExceptionMessageMatches ('/^The child (config|node) "required_value" (at path|under) "root" must be configured/ ' );
68
+ } else {
69
+ $ this ->expectExceptionMessageRegExp ('/^The child (config|node) "required_value" (at path|under) "root" must be configured/ ' );
70
+ }
66
71
67
72
$ this ->assertConfigurationIsValid (
68
73
[
You can’t perform that action at this time.
0 commit comments