Ejemplo n.º 1
0
	/**
	 * @before set propagate
	*/
	public function beforeFilterPropagation()
	{
		self::$executed = true;
	}
Ejemplo n.º 2
0
	public function testPropagationOfBeforeFilter()
	{
		AlphaSubController::$set = array();
		CoOrg::process('alpha/sub/beforeFilterPropagation');
		
		$this->assertEquals(array('alphasub', 'propagate'), AlphaSubController::$set);
		$this->assertTrue(AlphaSubController::$executed);
		$this->assertEquals('value', CoOrgSmarty::$vars['value']);
		$this->assertEquals('name', CoOrgSmarty::$vars['name']);
		$this->assertEquals('string', CoOrgSmarty::$vars['string']);
	}