Example #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));
 }
Example #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));
 }