public function testGetLearningMaterialFilePath() { $path = __FILE__; $file = m::mock('Symfony\\Component\\HttpFoundation\\File\\File')->shouldReceive('getPathname')->andReturn($path)->getMock(); $newPath = $this->iliosFileSystem->getLearningMaterialFilePath($file); $this->assertSame($this->fakeTestFileDir . '/' . $newPath, $this->getTestFilePath($path)); }