コード例 #1
0
ファイル: ApplicationTest.php プロジェクト: fwk/core
 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'));
 }