Exemple #1
0
 public function testSingularize()
 {
     $this->assertEquals('dog', Tools::singularize('dogs'));
     $this->assertEquals('Dog', Tools::singularize('Dogs'));
     $this->assertEquals('DOG', Tools::singularize('DOGS'));
     $this->assertEquals('quiz', Tools::singularize('quizzes'));
     $this->assertEquals('tomato', Tools::singularize('tomatoes'));
     $this->assertEquals('mouse', Tools::singularize('mice'));
     $this->assertEquals('person', Tools::singularize('people'));
     $this->assertEquals('equipment', Tools::singularize('equipment'));
     $this->assertEquals('company', Tools::singularize('companies'));
     $this->assertEquals('dog', Tools::singularize('dog'));
     $this->assertEquals('Dog', Tools::singularize('Dog'));
     $this->assertEquals('DOG', Tools::singularize('DOG'));
     $this->assertEquals('quiz', Tools::singularize('quiz'));
     $this->assertEquals('tomato', Tools::singularize('tomato'));
     $this->assertEquals('mouse', Tools::singularize('mouse'));
     $this->assertEquals('person', Tools::singularize('person'));
     $this->assertEquals('equipment', Tools::singularize('equipment'));
     $this->assertEquals('company', Tools::singularize('company'));
 }