/**
  * Tests if dependencies manager behaves as expected.
  */
 public function testManager()
 {
     $intention = $this->createIntentionMock();
     $plugins = [-10 => [$this->createPluginMock($intention), $this->createPluginMock($intention)], 0 => [$this->createPluginMock($intention)], 100 => [$this->createPluginMock($intention), $this->createPluginMock($intention)]];
     $collectionMock = $this->createPluginsCollectionMock($plugins);
     $manager = new PluginsManager($collectionMock);
     $manager->apply($intention);
 }
 /**
  * Applies plugins for given $intention.
  *
  * @param IntentionInterface $intention
  */
 protected function applyPlugins(IntentionInterface $intention)
 {
     $this->pluginsManager->apply($intention);
 }