getDeleteQuery(); $this->assertEquals('DELETE FROM test', $query->getQuery()); } public function testBasicWhere() { $query = $this->getDeleteQuery(); $query->where('column', 'value'); $this->assertRegExp('/^DELETE FROM test WHERE column = :[\w]*$/', $query->getQuery()); } private function getDeleteQuery() { $pdoMock = $this->mock(PDOEx::class); return new DeleteQuery($pdoMock, 'test'); } }