Example #1
0
 public function testPlugin()
 {
     $this->assertFalse(isset($this->object['PluginAction']));
     $this->assertFalse($this->object->getServices()->exists('pluginService'));
     $this->object->plugin(new MyTestPlugin());
     $this->assertTrue(isset($this->object['PluginAction']));
     $this->assertTrue($this->object->getServices()->exists('pluginService'));
 }