/** * @covers ::set * @covers ::getSet * @covers ::setSet * @covers ::clearSet */ public function testSet() { $query = new Query\Insert(self::getDb()); $query->set(array('test' => 20, 'value' => 10))->set(array('name' => 'test')); $expected = array(new SQL\Set('test', 20), new SQL\Set('value', 10), new SQL\Set('name', 'test')); $this->assertEquals($expected, $query->getSet()); $query->clearSet(); $this->assertEmpty($query->getSet()); $query->setSet($expected); $this->assertEquals($expected, $query->getSet()); }