Ejemplo n.º 1
0
 public function testPrepareWithArray()
 {
     $queryMock = $this->getQueryMock();
     $queryMock->expects($this->once())->method('prepare')->with($this->equalTo(array('ID', array(1337, 'yeah'))))->will($this->returnValue($queryMock));
     /** @var $queryMock QueryInterface */
     $proxyQuery = new ProxyQuery($queryMock);
     $query = $proxyQuery->prepare(array('ID', array(1337, 'yeah')));
     $this->assertInstanceOf('\\Sindri\\Database\\Query\\ProxyQuery', $query);
 }