public function testInsertQueryReturnsNullForIgnoredInsert() { $this->mockPdoStatement->expects($this->once())->method('rowCount')->will($this->returnValue(0)); $id = $this->builder->table('test')->insertIgnore(array('id' => 5, 'name' => 'usman')); $this->assertEquals(null, $id); }