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