@@ -19,7 +19,7 @@ public function testICSFiles(string $contents, string $file) : void
1919 $ this ->assertNotEmpty ($ contents );
2020 $ calendar = new \ICalendarOrg \ZCiCal ($ contents );
2121 $ generated = $ calendar ->export ();
22- // $this->assertEquals($this->clean($contents), $this->clean($generated), $file . ' has an error');
22+
2323 foreach (\explode ("\n" , $ generated ) as $ line )
2424 {
2525 $ this ->assertLessThan (72 , \strlen ($ file ), "Line -> {$ line }<- is too long (>72 chars) " );
@@ -33,7 +33,7 @@ public function testICSFiles(string $contents, string $file) : void
3333 *
3434 * @return array<array<string, string>>
3535 */
36- public function providerICSFiles () : array
36+ public static function providerICSFiles () : array
3737 {
3838 $ iterator = new \DirectoryIterator (__DIR__ . '/examples ' );
3939
@@ -50,16 +50,4 @@ public function providerICSFiles() : array
5050
5151 return $ contents ;
5252 }
53-
54- private function clean (string $ text ) : string
55- {
56- $ text = \str_replace ("\r" , '' , $ text );
57-
58- while (\strpos ($ text , ' ' ))
59- {
60- $ text = \str_replace (' ' , ' ' , $ text );
61- }
62-
63- return $ text ;
64- }
6553 }
0 commit comments