aboutsummaryrefslogtreecommitdiffstats
path: root/Praspel.php
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2013-06-11 21:37:31 +0200
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2013-06-11 21:37:31 +0200
commit53cc6523dfcdedbe946f56624ce18225a9ea6952 (patch)
treee814a2ef32f7683dd871332d12fc8a7c1444cea3 /Praspel.php
parent832293abb75a8f4ad395f386011ee506dbd97c74 (diff)
downloadPraspel-53cc6523dfcdedbe946f56624ce18225a9ea6952.zip
Praspel-53cc6523dfcdedbe946f56624ce18225a9ea6952.tar.gz
Praspel-53cc6523dfcdedbe946f56624ce18225a9ea6952.tar.bz2
Update API.
Diffstat (limited to 'Praspel.php')
-rw-r--r--Praspel.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/Praspel.php b/Praspel.php
index 4ebce28..2f621df 100644
--- a/Praspel.php
+++ b/Praspel.php
@@ -203,6 +203,7 @@ class Praspel {
$arguments[$name] = $parameter->getDefaultValue();
}
+ // Check requires and behaviors.
$behavior = $specification;
$verdict &= $this->checkBehavior(
$behavior,
@@ -324,7 +325,7 @@ class Praspel {
if(true === $behavior->clauseExists('default')) {
- $exceptions->cancelTransaction();
+ $exceptions->rollbackTransaction();
$_verdict = true;
$behavior = $behavior->getClause('default');
}
@@ -333,7 +334,7 @@ class Praspel {
}
else {
- $exceptions->cancelTransaction();
+ $exceptions->rollbackTransaction();
$behavior = $_behavior;
}