@@ -49,31 +49,31 @@ public function testReturnErrorIfIgnoredMessagesDoesNotOccur(): void
4949 public function testDoNotReturnErrorIfIgnoredMessagesDoesNotOccurWithReportUnmatchedIgnoredErrorsOff (): void
5050 {
5151 $ result = $ this ->runAnalyser (['#Unknown error# ' ], false , __DIR__ . '/data/empty/empty.php ' , false );
52- $ this ->assertEmpty ( $ result );
52+ $ this ->assertCount ( 0 , $ result );
5353 }
5454
5555 public function testDoNotReturnErrorIfIgnoredMessagesDoNotOccurWhileAnalysingIndividualFiles (): void
5656 {
5757 $ result = $ this ->runAnalyser (['#Unknown error# ' ], true , __DIR__ . '/data/empty/empty.php ' , true );
58- $ this ->assertEmpty ( $ result );
58+ $ this ->assertCount ( 0 , $ result );
5959 }
6060
6161 public function testFileWithAnIgnoredError (): void
6262 {
6363 $ result = $ this ->runAnalyser (['#Fail\.# ' ], true , __DIR__ . '/data/bootstrap-error.php ' , false );
64- $ this ->assertEmpty ( $ result );
64+ $ this ->assertCount ( 0 , $ result );
6565 }
6666
6767 public function testFileWithAnIgnoredErrorMessage (): void
6868 {
6969 $ result = $ this ->runAnalyser ([['message ' => '#Fail\.# ' ]], true , __DIR__ . '/data/bootstrap-error.php ' , false );
70- $ this ->assertEmpty ( $ result );
70+ $ this ->assertCount ( 0 , $ result );
7171 }
7272
7373 public function testFileWithAnIgnoredErrorRawMessage (): void
7474 {
7575 $ result = $ this ->runAnalyser ([['rawMessage ' => 'Fail. ' ]], true , __DIR__ . '/data/bootstrap-error.php ' , false );
76- $ this ->assertEmpty ( $ result );
76+ $ this ->assertCount ( 0 , $ result );
7777 }
7878
7979 public function testFileWithAnIgnoredErrorMessageAndWrongIdentifier (): void
@@ -109,19 +109,19 @@ public function testFileWithAnIgnoredWrongIdentifier(): void
109109 public function testFileWithAnIgnoredErrorMessageAndCorrectIdentifier (): void
110110 {
111111 $ result = $ this ->runAnalyser ([['message ' => '#Fail\.# ' , 'identifier ' => 'tests.alwaysFail ' ]], true , __DIR__ . '/data/bootstrap-error.php ' , false );
112- $ this ->assertEmpty ( $ result );
112+ $ this ->assertCount ( 0 , $ result );
113113 }
114114
115115 public function testFileWithAnIgnoredErrorRawMessageAndCorrectIdentifier (): void
116116 {
117117 $ result = $ this ->runAnalyser ([['rawMessage ' => 'Fail. ' , 'identifier ' => 'tests.alwaysFail ' ]], true , __DIR__ . '/data/bootstrap-error.php ' , false );
118- $ this ->assertEmpty ( $ result );
118+ $ this ->assertCount ( 0 , $ result );
119119 }
120120
121121 public function testFileWithAnIgnoredErrorIdentifier (): void
122122 {
123123 $ result = $ this ->runAnalyser ([['identifier ' => 'tests.alwaysFail ' ]], true , __DIR__ . '/data/bootstrap-error.php ' , false );
124- $ this ->assertEmpty ( $ result );
124+ $ this ->assertNotCount ( 0 , $ result );
125125 }
126126
127127 public function testFileWithAnIgnoredErrorMessages (): void
0 commit comments