Skip to content

Commit

Permalink
fixed tests for composer 5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed Aug 23, 2016
1 parent 94284df commit e08e6c7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/unit/PluginTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ public function setUp()
parent::setUp();
$this->composer = new Composer();
$this->composer->setConfig(new Config(true, getcwd()));
$this->io = $this->getMock('Composer\IO\IOInterface');
$this->event = $this->getMock('Composer\Script\Event', [], ['test', $this->composer, $this->io]);
$this->io = $this->createMock('Composer\IO\IOInterface');
$this->event = $this->getMockBuilder('Composer\Script\Event')
->setConstructorArgs(['test', $this->composer, $this->io])
->getMock();

$this->object = new Plugin();
$this->object->setPackages($this->packages);
Expand Down

0 comments on commit e08e6c7

Please sign in to comment.