aboutsummaryrefslogtreecommitdiffstats
path: root/AssertionChecker
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2013-11-25 11:50:56 +0100
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2013-11-25 11:50:56 +0100
commit64452dcd5d44a0c85cc9439a45adfee0d3bfc4ff (patch)
tree0d28633e8f068b11fd5224a90386071d2fbd1ee5 /AssertionChecker
parentfc0c70751c490b51d2a16ff88654cc8bd19935d5 (diff)
downloadPraspel-64452dcd5d44a0c85cc9439a45adfee0d3bfc4ff.zip
Praspel-64452dcd5d44a0c85cc9439a45adfee0d3bfc4ff.tar.gz
Praspel-64452dcd5d44a0c85cc9439a45adfee0d3bfc4ff.tar.bz2
Update the callable after running a preambler.
A preambler can change the callable, we then need to update it in the assertion checker.
Diffstat (limited to 'AssertionChecker')
-rw-r--r--AssertionChecker/AssertionChecker.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/AssertionChecker/AssertionChecker.php b/AssertionChecker/AssertionChecker.php
index 414f0b5..ba4a4d6 100644
--- a/AssertionChecker/AssertionChecker.php
+++ b/AssertionChecker/AssertionChecker.php
@@ -124,7 +124,9 @@ abstract class AssertionChecker {
*/
public function preamble ( $preamble ) {
- $preamble(new \Hoa\Praspel\Preambler\Handler($this->getCallable()));
+ $preambler = new \Hoa\Praspel\Preambler\Handler($this->getCallable());
+ $preamble($preambler);
+ $this->setCallable($preambler->__getCallable());
return;
}