aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2013-11-01 17:42:06 +0100
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2013-11-01 17:44:12 +0100
commit5c1a85b17a198f6be65908e3438d6e2977cc0e4a (patch)
tree1bc6c740da714ef4521a0ba3c7c3ed51607637f4
parentee1a8491c0972ede8ca58a91ff10503f9e7d2369 (diff)
downloadPraspel-5c1a85b17a198f6be65908e3438d6e2977cc0e4a.zip
Praspel-5c1a85b17a198f6be65908e3438d6e2977cc0e4a.tar.gz
Praspel-5c1a85b17a198f6be65908e3438d6e2977cc0e4a.tar.bz2
Re-index exceptions.
-rw-r--r--Praspel.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/Praspel.php b/Praspel.php
index 64043e8..01f5863 100644
--- a/Praspel.php
+++ b/Praspel.php
@@ -298,7 +298,8 @@ class Praspel {
? $exceptions
: new Exception\Group(
'Behavior %s is broken.',
- 2, $behavior->getIdentifier());
+ 3, $behavior->getIdentifier()
+ );
if(null !== $_exceptions && 0 < count($_exceptions))
$handle[] = $_exceptions;
@@ -325,7 +326,7 @@ class Praspel {
$exceptions[] = new Exception\Failure\InternalPrecondition(
'The System Under Test has broken an internal contract.',
- 3, null, $internalException);
+ 4, null, $internalException);
}
catch ( \Exception $exception ) {
@@ -350,7 +351,7 @@ class Praspel {
if(false === $_verdict)
$exceptions[] = new Exception\Failure\Exceptional(
'The exception %s has been unexpectedly thrown.',
- 42, array(get_class($arguments['\result']))
+ 5, array(get_class($arguments['\result']))
);
$verdict &= $_verdict;