Skip to content

Commit db3bd4d

Browse files
committed
Support helpers added on the fly
1 parent fdb16d0 commit db3bd4d

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

Test/WebTestCase.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,15 @@ public function getHelper($name)
7878
return new $helperClass($this);
7979
}
8080

81+
/**
82+
* Add helper to helper list.
83+
*
84+
* @param string $name
85+
* @param string $namespace
86+
*/
87+
public function addHelper($name, $namespace)
88+
{
89+
$this->helperList->set($name, $namespace);
90+
}
91+
8192
}

0 commit comments

Comments
 (0)