@@ -57,25 +57,25 @@ public function testGetRoutesWithPatterns()
5757 $ router = $ this ->getRouter ($ expected );
5858
5959 $ extractor = new ExposedRoutesExtractor ($ router , array ('hello_.* ' ), $ this ->cacheDir , array ());
60- $ this ->assertEquals (3 , count ( $ extractor ->getRoutes () ), '3 routes match the pattern: "hello_.*" ' );
60+ $ this ->assertCount (3 , $ extractor ->getRoutes (), '3 routes match the pattern: "hello_.*" ' );
6161
6262 $ extractor = new ExposedRoutesExtractor ($ router , array ('hello_[0-9]{3} ' ), $ this ->cacheDir , array ());
63- $ this ->assertEquals (1 , count ( $ extractor ->getRoutes () ), '1 routes match the pattern: "hello_[0-9]{3}" ' );
63+ $ this ->assertCount (1 , $ extractor ->getRoutes (), '1 routes match the pattern: "hello_[0-9]{3}" ' );
6464
6565 $ extractor = new ExposedRoutesExtractor ($ router , array ('hello_[0-9]{4} ' ), $ this ->cacheDir , array ());
66- $ this ->assertEquals (0 , count ( $ extractor ->getRoutes () ), '1 routes match the pattern: "hello_[0-9]{4}" ' );
66+ $ this ->assertCount (0 , $ extractor ->getRoutes (), '1 routes match the pattern: "hello_[0-9]{4}" ' );
6767
6868 $ extractor = new ExposedRoutesExtractor ($ router , array ('hello_.+o.+ ' ), $ this ->cacheDir , array ());
69- $ this ->assertEquals (2 , count ( $ extractor ->getRoutes () ), '2 routes match the pattern: "hello_.+o.+" ' );
69+ $ this ->assertCount (2 , $ extractor ->getRoutes (), '2 routes match the pattern: "hello_.+o.+" ' );
7070
7171 $ extractor = new ExposedRoutesExtractor ($ router , array ('hello_.+o.+ ' , 'hello_123 ' ), $ this ->cacheDir , array ());
72- $ this ->assertEquals (3 , count ( $ extractor ->getRoutes () ), '3 routes match patterns: "hello_.+o.+" and "hello_123" ' );
72+ $ this ->assertCount (3 , $ extractor ->getRoutes (), '3 routes match patterns: "hello_.+o.+" and "hello_123" ' );
7373
7474 $ extractor = new ExposedRoutesExtractor ($ router , array ('hello_.+o.+ ' , 'hello_$ ' ), $ this ->cacheDir , array ());
75- $ this ->assertEquals (2 , count ( $ extractor ->getRoutes () ), '2 routes match patterns: "hello_.+o.+" and "hello_" ' );
75+ $ this ->assertCount (2 , $ extractor ->getRoutes (), '2 routes match patterns: "hello_.+o.+" and "hello_" ' );
7676
7777 $ extractor = new ExposedRoutesExtractor ($ router , array (), $ this ->cacheDir , array ());
78- $ this ->assertEquals (0 , count ( $ extractor ->getRoutes () ), 'No patterns so no matched routes ' );
78+ $ this ->assertCount (0 , $ extractor ->getRoutes (), 'No patterns so no matched routes ' );
7979 }
8080
8181 public function testGetCachePath ()
0 commit comments