public function testGetStatement() { $this->phpcrQuery->expects($this->once())->method('getStatement')->will($this->returnValue('foo')); $this->assertEquals('foo', $this->query->getStatement()); }