/** * @covers ::__construct * @covers ::getRepo */ public function testConstruct() { $repo = City::getRepo(); $select = new Select($repo); $this->assertSame($repo, $select->getRepo()); $this->assertEquals([new SQL\Aliased('City')], $select->getFrom()); $this->assertEquals([new SQL\Aliased(new SQL\SQL('`City`.*'))], $select->getColumns()); }
/** * @return Repo */ public function getRepo() { return $this->select->getRepo(); }