/** * Sets up mocks as such that the fixture has a file. * * @return m\MockInterface|FileDescriptor */ protected function whenFixtureIsDirectlyRelatedToAFile() { $file = m::mock('phpDocumentor\\Descriptor\\FileDescriptor'); $this->fixture->setFile($file); return $file; }