File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Tests/DependencyInjection Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -165,12 +165,11 @@ public function testAssetsCanBeEnabled()
165
165
*/
166
166
public function testInvalidAssetsConfiguration (array $ assetConfig , $ expectedMessage )
167
167
{
168
- $ this ->{method_exists ($ this , $ _ = 'expectException ' ) ? $ _ : 'setExpectedException ' }(
169
- InvalidConfigurationException::class,
170
- $ expectedMessage
171
- );
172
- if (method_exists ($ this , 'expectExceptionMessage ' )) {
168
+ if (method_exists ($ this , 'expectException ' )) {
169
+ $ this ->expectException (InvalidConfigurationException::class);
173
170
$ this ->expectExceptionMessage ($ expectedMessage );
171
+ } else {
172
+ $ this ->setExpectedException (InvalidConfigurationException::class, $ expectedMessage );
174
173
}
175
174
176
175
$ processor = new Processor ();
You can’t perform that action at this time.
0 commit comments