public function testLoadRootPackageFile() { $baseConfig = new Config(); $packageFile = new RootPackageFile('vendor/package', null, $baseConfig); $this->reader->expects($this->once())->method('readRootPackageFile')->with('/path')->will($this->returnValue($packageFile)); $this->assertSame($packageFile, $this->storage->loadRootPackageFile('/path', $baseConfig)); }