Exemplo n.º 1
0
 public function testGetRule()
 {
     if (!extension_loaded('intl')) {
         $this->markTestSkipped('ext/intl not enabled');
     }
     $this->inflector->setFilterRule(':controller', array('Alpha', 'StringToLower'));
     $this->assertTrue($this->inflector->getRule('controller', 1) instanceof \Zend\Filter\StringToLower);
     $this->assertFalse($this->inflector->getRule('controller', 2));
 }
Exemplo n.º 2
0
 public function testGetRule()
 {
     $this->inflector->setFilterRule(':controller', array('Alpha', 'StringToLower'));
     $this->assertTrue($this->inflector->getRule('controller', 1) instanceof \Zend\Filter\StringToLower);
     $this->assertFalse($this->inflector->getRule('controller', 2));
 }