// Set up mocks so that writeAccessRestrictionFiles() can eventually use
// the IOInterface object.
$composer = $this->getMockBuilder(Composer::class) ->onlyMethods(['getPackage']) ->getMock(); $composer->expects($this->once()) ->method('getPackage') ->willReturn($this->prophesize(RootPackageInterface::class)->reveal());