Example #1
0
 public function testCountMatchGetSet()
 {
     // Test data
     $test_callable = $this->getTestCallable();
     $test_count_match = false;
     // Empty constructor
     $route = new Route($test_callable);
     $this->assertTrue($route->getCountMatch());
     // Set in constructor
     $route = new Route($test_callable, null, null, $test_count_match);
     $this->assertSame($test_count_match, $route->getCountMatch());
     // Set in count_match
     $route = new Route($test_callable);
     $route->setCountMatch($test_count_match);
     $this->assertSame($test_count_match, $route->getCountMatch());
 }