Esempio n. 1
0
 /**
  * Get the name of the table in the database that is tied to this model.
  *
  * @return string
  */
 public static function getTableName()
 {
     $splitter = new Splitter(self::getClassName());
     $tableName = $splitter->format();
     $tableName = Pluralize::pluralize($tableName);
     return $tableName;
 }
Esempio n. 2
0
 /**
  * Tests for the pluralize() function in the Pluralize Class
  */
 public function testPluraize()
 {
     $this->assertEquals(Pluralize::pluralize('user'), 'users');
 }