/** * @covers ::select * @covers ::getSelect * @covers ::setSelect * @covers ::clearSelect */ public function testSelect() { $select = new Query\Select(self::getDb()); $query = new Query\Insert(self::getDb()); $query->select($select); $this->assertSame($select, $query->getSelect()); $query->clearSelect(); $this->assertEmpty($query->getSelect()); $query->setSelect($select); $this->assertEquals($select, $query->getSelect()); }
/** * @param Query\Insert $query * @return array */ public static function parameters(Query\Insert $query) { return Compiler::parameters(array($query->getTable(), $query->getSet(), $query->getValues(), $query->getSelect())); }