예제 #1
0
 /**
  * @test
  */
 public function testUnderscoreClassName()
 {
     $className = Utils::underscoreClassName($this);
     $this->assertEquals($className, "utils_test");
 }
 /**
  * Automagic used to determine the collection name
  * for use in the URL snippet.  This should
  * be implemented in the entity class if
  * it is an exception to the standard naming.
  *
  */
 protected function getCollectionName()
 {
     $entityName = Utils::underscoreClassName($this);
     return Utils::pluralize($entityName);
 }
 /**
  *
  *
  */
 protected function getUriSnippet()
 {
     return '/' . Utils::underscoreClassName($this);
 }