public function testGetFilesystemPathsIgnoresResourcesWithEmptyFilesystemPaths() { $collection = new FilesystemResourceCollection(array($dir = new DirectoryResource($this->fixturesDir . '/dir1'), $file = new FileResource($this->fixturesDir . '/file3'), $this->getMock('Puli\\Repository\\Api\\Resource\\FilesystemResource'))); $this->assertSame(array($dir->getFilesystemPath(), $file->getFilesystemPath()), $collection->getFilesystemPaths()); }
public function testGetContents() { $resource = new FileResource($this->fixturesDir . '/dir1/file1'); $this->assertSame(file_get_contents($resource->getFilesystemPath()), $resource->getBody()); }