/** * @test */ public function testDepluralize() { $word = Utils::depluralize("accounts"); $this->assertEquals($word, "account"); $word = Utils::depluralize("user"); $this->assertEquals($word, "user"); $word = Utils::depluralize("guess"); $this->assertEquals($word, "guess"); $word = Utils::depluralize("vmboxes"); $this->assertEquals($word, "vmbox"); }
/** * * */ protected function getEntityName() { $className = Utils::shortClassName($this); return Utils::depluralize($className); }