public function testGetValue() { $valueValue = 'test-value_value'; $serviceLocator = $this->getServiceManager(); $value = $this->getMock('Omeka\\Entity\\Value'); $value->expects($this->once())->method('getValue')->will($this->returnValue($valueValue)); $valueRep = new ValueRepresentation($value, $serviceLocator); $this->assertEquals($valueValue, $valueRep->value()); }