/** * 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; }
/** * Tests for the pluralize() function in the Pluralize Class */ public function testPluraize() { $this->assertEquals(Pluralize::pluralize('user'), 'users'); }