public function testIsSingular() { $this->assertFalse(Tools::isSingular('dogs')); $this->assertFalse(Tools::isSingular('Dogs')); $this->assertFalse(Tools::isSingular('DOGS')); $this->assertFalse(Tools::isSingular('quizzes')); $this->assertFalse(Tools::isSingular('tomatoes')); $this->assertFalse(Tools::isSingular('mice')); $this->assertFalse(Tools::isSingular('people')); $this->assertFalse(Tools::isSingular('companies')); $this->assertTrue(Tools::isSingular('dog')); $this->assertTrue(Tools::isSingular('Dog')); $this->assertTrue(Tools::isSingular('DOG')); $this->assertTrue(Tools::isSingular('quiz')); $this->assertTrue(Tools::isSingular('tomato')); $this->assertTrue(Tools::isSingular('mouse')); $this->assertTrue(Tools::isSingular('person')); $this->assertTrue(Tools::isSingular('equipment')); $this->assertTrue(Tools::isSingular('company')); }