コード例 #1
0
 /**
  * @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");
 }
コード例 #2
0
 /**
  *
  *
  */
 protected function getEntityName()
 {
     $className = Utils::shortClassName($this);
     return Utils::depluralize($className);
 }