public function testExecute() { $this->fake->execute(array('b' => 'abc')); $log = $this->pdo->getLog(); $this->assertEquals('SELECT * FROM test WHERE a = :b', $log[1]['query']); $this->assertEquals(array('b' => 'abc'), $log[1]['values']); $this->assertInternalType('float', $log[1]['time']); }
/** * @depends testAddLog */ public function testGetLog() { $log = array('rand' => rand()); $this->pdo->addLog($log); $this->assertEquals(array($log), $this->pdo->getLog()); }