OSDN Git Service
(root)
/
wvm
/
wvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07b1dba
)
throw stream output instead of using assertEquals()
author
scribu
<mail@scribu.net>
Sun, 17 Feb 2013 02:14:02 +0000
(
04:14
+0200)
committer
scribu
<mail@scribu.net>
Sun, 17 Feb 2013 02:18:22 +0000
(
04:18
+0200)
features/bootstrap/FeatureContext.php
patch
|
blob
|
history
diff --git
a/features/bootstrap/FeatureContext.php
b/features/bootstrap/FeatureContext.php
index
daaa5ab
..
87661bf
100644
(file)
--- a/
features/bootstrap/FeatureContext.php
+++ b/
features/bootstrap/FeatureContext.php
@@
-148,7
+148,11
@@
class FeatureContext extends BehatContext
*/
public function outputShouldBe( $stream, PyStringNode $output )
{
- assertEquals( (string) $output, rtrim( $this->result->$stream, "\n" ) );
+ $result = rtrim( $this->result->$stream, "\n" );
+
+ if ( (string) $output != $result ) {
+ throw new \Exception( $this->result->$stream );
+ }
}
/**