$class = "BigFoot"; $table = Strings::tableize($class);
BigFeet
private function _setupTableNameReplacement() { $tableName = $this->tableInfo->tableName; $defaultTableName = Strings::tableize($this->className); $placeholderTableName = $tableName != $defaultTableName ? $tableName : ''; $this->classStub->addTableSetupItem('table', $placeholderTableName); }
/** * @test */ public function shouldTableizeEmptyString() { //given $class = ""; //when $table = Strings::tableize($class); //then $this->assertEquals("", $table); }
private static function defaultTable($class) { $reflectionClass = new ReflectionClass($class); return Strings::tableize($reflectionClass->getShortName()); }