Skip to content

Commit a7a7246

Browse files
committed
Merge pull request #44 from cabello/patch-1
Support helpers added on the fly
2 parents fdb16d0 + db3bd4d commit a7a7246

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)