Beispiel #1
0
 public static function setInflection($singular, $plural)
 {
     Phactory_Inflector::addException($singular, $plural);
 }
 /**
  * @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);
 }