示例#1
0
 public static function setInflection($singular, $plural)
 {
     Phactory_Inflector::addException($singular, $plural);
 }
示例#2
0
 /**
  * @dataProvider inflectionExceptionProvider
  */
 public function testAddException($singular, $plural)
 {
     $this->assertNotEquals(Phactory_Inflector::pluralize($singular), $plural);
     Phactory_Inflector::addException($singular, $plural);
     $this->assertEquals(Phactory_Inflector::pluralize($singular), $plural);
 }