Exemplo n.º 1
0
 public function testExecutesQuery()
 {
     $driver = $this->getMock('Orno\\Db\\Driver\\Pdo');
     $driver->expects($this->once())->method('execute')->will($this->returnValue(true));
     $q = new Query($driver);
     $this->assertInstanceOf('Orno\\Db\\Query', $q->execute());
 }