/** * Tests the setDefaultPackageName method * * @covers \phpDocumentor\Reflection\BaseReflector::getRepresentationOfValue * * @return void */ public function testGetRepresentationOfValue() { $node = new NodeStmtMock(); $base_reflector = new BaseReflectorMock($node, new Context()); $this->assertEquals('', $base_reflector->getRepresentationOfValueMock(null)); $pretty_printer = $this->getMock('\\phpDocumentor\\Reflection\\PrettyPrinter', array('prettyPrintExpr')); $base_reflector->setPrettyPrinter($pretty_printer); $pretty_printer->expects($this->once())->method('prettyPrintExpr')->will($this->returnValue('test_output')); $this->assertEquals('test_output', $base_reflector->getRepresentationOfValueMock(new NodeExprMock())); }