/** * returns model's table name * @return string */ protected static function getTableName() { $class = get_called_class(); $class = explode('\\', $class); $class = array_pop($class); $word = new Word(); return $word->pluralize($word->propertyCase($class)); }
/** * @dataProvider dataProviderStrings */ public function testConvertingToPropertyCase($str) { $this->assertEquals('property_name', $this->word->propertyCase($str)); }