/**
  * @test
  */
 public function attaches()
 {
     $plugin = new ArbitraryVersionPlugin('arbitrage', function () {
     }, function () {
     }, function () {
     }, function () {
     }, function () {
     }, function () {
         return null;
     });
     $storage = $this->getMockedStorage();
     $filelib = $this->getMockedFilelib(null, array('storage' => $storage));
     $plugin->attachTo($filelib);
     $this->assertSame($storage, $plugin->getStorage());
 }