Exemplo n.º 1
0
 public function testBindsParameterWithType()
 {
     $driver = $this->getMock('Orno\\Db\\Driver\\Pdo');
     $driver->expects($this->once())->method('bind')->with($this->equalTo(':placeholder'), $this->equalTo('value'), $this->equalTo(\PDO::PARAM_STR))->will($this->returnValue($driver));
     $q = new Query($driver);
     $this->assertInstanceOf('Orno\\Db\\Query', $q->bind(':placeholder', 'value', \PDO::PARAM_STR));
 }