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()
6262 public function it_fails_when_a_configuration_is_invalid_when_it_should_have_been_valid ()
6363 {
6464 $ 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+ }
6671
6772 $ this ->assertConfigurationIsValid (
6873 [
You can’t perform that action at this time.
0 commit comments