Beispiel #1
0
 /**
  *
  * @dataProvider dataProviderTestConstruct
  */
 public function testConstruct($prefix, $type, $name, $rule, $validators, $exceptionName = '')
 {
     if (!empty($exceptionName)) {
         $this->setExpectedException($exceptionName);
     }
     $route = new Miao_Router_Rule($prefix, $type, $name, $rule, $validators);
     $this->assertEquals($route->getType(), $type);
     $this->assertEquals($route->getName(), $name);
 }