diff --git a/tests/unit/PluginTest.php b/tests/unit/PluginTest.php index 70a3c1c..a1927a1 100644 --- a/tests/unit/PluginTest.php +++ b/tests/unit/PluginTest.php @@ -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);