/** * @covers phpDocumentor\Descriptor\DescriptorAbstract::getPath */ public function testGetPath() { $this->assertSame('', $this->fixture->getPath()); /** @var FileDescriptor $file */ $file = m::mock('phpDocumentor\\Descriptor\\FileDescriptor'); $file->shouldReceive('getPath')->andReturn('path'); $this->fixture->setLocation($file); $this->assertSame('path', $this->fixture->getPath()); }