public function testSavePackageFile() { $packageFile = new PackageFile(null, '/path'); $this->serializer->expects($this->once())->method('serializePackageFile')->with($packageFile)->willReturn('SERIALIZED'); $this->backend->expects($this->once())->method('write')->with('/path', 'SERIALIZED'); $this->storage->savePackageFile($packageFile); }
public function testSavePackageFile() { $packageFile = new PackageFile(null, '/path'); $this->writer->expects($this->once())->method('writePackageFile')->with($packageFile, '/path'); $this->storage->savePackageFile($packageFile); }