/** * @dataProvider provideGetTableClassWithoutAutoload * @param string $tableBaseClass * @param string $recordBaseClass * @param string $recordClass * @param string $expectedRecordClass * @param string $expectedTableClass */ public function testGetTableClassWithoutAutoload($tableBaseClass, $recordBaseClass, $recordClass, $expectedRecordClass, $expectedTableClass) { $this->schema->setRecordClass('user', null); if ($tableBaseClass) { $this->schema->setTableBaseClass($tableBaseClass); } if ($recordBaseClass) { $this->schema->setRecordBaseClass($recordBaseClass); } if ($recordClass) { $this->schema->setRecordClass('user', $recordClass); } $recordClass = $this->schema->getRecordClass('user'); $this->assertEquals($expectedRecordClass, $recordClass); $tableClass = $this->schema->getTableClass('user', false); $this->assertEquals($expectedTableClass, $tableClass); }