File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -255,7 +255,7 @@ public function __construct(Config $config)
255255 }
256256
257257 if ($ numSniffs === 0 ) {
258- throw new RuntimeException ( ' ERROR: No sniffs were registered' );
258+ $ this -> msgCache -> add ( ' No sniffs were registered. ' , MsgCollector:: ERROR );
259259 }
260260
261261 $ this ->displayCachedMessages ();
Original file line number Diff line number Diff line change @@ -282,7 +282,7 @@ public function testNoSniffsRegisteredException()
282282 $ standard = __DIR__ .'/ConstructorNoSniffsTest.xml ' ;
283283 $ config = new ConfigDouble (["--standard= $ standard " ]);
284284
285- $ message = 'ERROR: No sniffs were registered ' ;
285+ $ message = 'ERROR: No sniffs were registered. ' . PHP_EOL . PHP_EOL ;
286286 $ this ->expectRuntimeExceptionMessage ($ message );
287287
288288 new Ruleset ($ config );
You can’t perform that action at this time.
0 commit comments