Esempio n. 1
0
 /**
  *
  * @param array $config
  *
  * @throws Conjoon_Argument_Exception
  */
 public function __construct(array $config = array())
 {
     Conjoon_Argument_Check::check(array(self::PATH => array('allowEmpty' => false, 'type' => 'string'), self::VARS => array('allowEmpty' => false, 'type' => 'isset')), $config);
     $config[self::TEMPLATE_RESOURCE] = new Conjoon_Text_Template_PhpFileResource($config[self::PATH]);
     $config[self::PARSE_STRATEGY] = new Conjoon_Text_Template_PhpParseStrategy();
     parent::__construct($config);
 }
Esempio n. 2
0
 public function test__toString()
 {
     $tmpl = new Conjoon_Text_Template($this->_config);
     $this->assertEquals($this->_result, $tmpl->__toString());
 }