Exemplo n.º 1
0
 public function testSaveRootPackageFile()
 {
     $baseConfig = new Config();
     $packageFile = new RootPackageFile(null, '/path', $baseConfig);
     $this->serializer->expects($this->once())->method('serializeRootPackageFile')->with($packageFile)->willReturn('SERIALIZED');
     $this->backend->expects($this->once())->method('write')->with('/path', 'SERIALIZED');
     $this->storage->saveRootPackageFile($packageFile);
 }