public function testPrepare() { $pstatement = $this->object->prepare("SELECT * FROM activity where id = :id"); $pstatement->execute(array('id' => 3)); $result = $pstatement->fetchAll(); $compare = array('id' => 3, 'title' => 'act2'); $this->assertEquals($compare['id'], $result[0]['id']); $this->assertEquals($compare['title'], $result[0]['title']); }