Example #1
0
 public function testBindValue()
 {
     $this->_mockPdo->expects($this->exactly(1))->method('prepare')->with($this->equalTo('mockSql'))->will($this->returnValue($this->_mockStatement));
     $this->_mockStatement->expects($this->exactly(1))->method('bindValue')->with($this->equalTo('mockParam'), $this->equalTo('mockValue'), $this->equalTo('mockType'));
     $actual = $this->_candidate->prepare('mockSql');
     $this->assertNull($actual);
     $actual = $this->_candidate->bindValue('mockParam', 'mockValue', 'mockType');
     $this->assertNull($actual);
 }