public function testPostBegin()
 {
     $cw = new cfhCompile_CodeWriter();
     $plugin = $this->getMock('cfhCompile_CodeWriter_Plugin_Abstract');
     $plugin->expects($this->once())->method('postBegin')->with($this->equalTo($cw));
     $b = new cfhCompile_CodeWriter_PluginBroker();
     $b->attach($plugin);
     $b->postBegin($cw);
     $b->detach($plugin);
     $b->postBegin($cw);
 }
Ejemplo n.º 2
0
 /**
  * Begin a code writer process.
  */
 public function begin()
 {
     $this->plugin->preBegin($this);
     $this->write->begin();
     $this->plugin->postBegin($this);
 }