You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$this->fail('->load() throws an InvalidArgumentException if the loaded file does not exist');
46
-
} catch (\Exception$e) {
47
-
$this->assertInstanceOf('\InvalidArgumentException', $e, '->load() throws an InvalidArgumentException if the loaded file does not exist');
48
-
$this->assertEquals('The service file "foo.yml" is not valid.', $e->getMessage(), '->load() throws an InvalidArgumentException if the loaded file does not exist');
49
-
}
50
-
51
-
try {
52
-
$m->invoke($loader, 'parameters.ini');
53
-
$this->fail('->load() throws an InvalidArgumentException if the loaded file is not a valid YAML file');
54
-
} catch (\Exception$e) {
55
-
$this->assertInstanceOf('\InvalidArgumentException', $e, '->load() throws an InvalidArgumentException if the loaded file is not a valid YAML file');
56
-
$this->assertEquals('The service file "parameters.ini" is not valid.', $e->getMessage(), '->load() throws an InvalidArgumentException if the loaded file is not a valid YAML file');
$this->fail('->load() throws an InvalidArgumentException if the loaded file does not validate');
65
-
} catch (\Exception$e) {
66
-
$this->assertInstanceOf('\InvalidArgumentException', $e, '->load() throws an InvalidArgumentException if the loaded file does not validate');
67
-
$this->assertStringMatchesFormat('The service file "nonvalid%d.yml" is not valid.', $e->getMessage(), '->load() throws an InvalidArgumentException if the loaded file does not validate');
68
-
}
69
-
}
62
+
$m->invoke($loader, $path.'/parameters.ini');
70
63
}
71
64
72
65
/**
@@ -90,6 +83,8 @@ public function provideInvalidFiles()
0 commit comments