Beispiel #1
0
 /**
  * Set up Decoda.
  */
 protected function setUp()
 {
     parent::setUp();
     $this->object = new PhpEngine();
     $this->object->addPath(TEST_DIR . '/templates/');
     $this->object->setFilter(new TestFilter());
 }
Beispiel #2
0
 /**
  * Set up Decoda.
  */
 protected function setUp()
 {
     parent::setUp();
     $this->object = new CensorHook();
     $this->object->setParser(new Decoda());
     $this->object->startup();
 }
Beispiel #3
0
 /**
  * Set up Decoda.
  */
 protected function setUp()
 {
     parent::setUp();
     $decoda = new Decoda();
     $decoda->addFilter(new EmailFilter(array('encrypt' => false)));
     $decoda->addFilter(new UrlFilter());
     $this->object = new ClickableHook();
     $this->object->setParser($decoda);
 }
Beispiel #4
0
 /**
  * Set up Decoda.
  */
 protected function setUp()
 {
     parent::setUp();
     $this->object->setBrackets('[', ']');
     $this->object->setLineBreaks(true);
     $this->object->setXhtml(false);
     $this->object->addFilter(new DefaultFilter());
     $hook = new EmoticonHook();
     $hook->addLoader(new DataLoader(array('test/tag/open' => array('['), 'test/tag/close' => array(']'), 'test/tag/within' => array('[o]_[o]'), 'test/unicode' => array("☺"))));
     $this->object->addHook($hook);
 }
Beispiel #5
0
 /**
  * Set up Decoda.
  */
 protected function setUp()
 {
     parent::setUp();
     $this->object = new TestHook();
 }
Beispiel #6
0
 /**
  * Set up Decoda.
  */
 protected function setUp()
 {
     parent::setUp();
     $this->object->addFilter(new UrlFilter());
 }
Beispiel #7
0
 /**
  * Set up Decoda.
  */
 protected function setUp()
 {
     parent::setUp();
     $this->object = new TestComponent(array('key' => 'value'));
 }
Beispiel #8
0
 /**
  * Set up Decoda.
  */
 protected function setUp()
 {
     parent::setUp();
     $this->object = new TestFilter();
 }
Beispiel #9
0
 /**
  * Set up Decoda.
  */
 protected function setUp()
 {
     parent::setUp();
     $this->object = new TestEngine();
 }