/** * */ public function __construct() { $this->db = StaticDatabaseConnection::getInstance(); $this->knownItems = $this->getNewCollection(); $this->entityMapper = EntityMapper::getInstance(); $this->tablename = Nomenclature::repositoryClassnameToTablename(get_called_class()); }
/** * @test */ public function repositoryclassnameToTablename() { $this->assertSame($this->names['table'], Nomenclature::repositoryClassnameToTablename($this->names['repository'])); }