tests/lib/CucumberScenarioTest.php in cuke4php-0.9.2 vs tests/lib/CucumberScenarioTest.php in cuke4php-0.9.3

- old
+ new

@@ -33,10 +33,11 @@ public $oMockHook; public function setup() { CucumberSteps::clearMocks(); $this->aWorld = array( + 'transform' => array(), 'before' => array( array( 'tags' => array('one'), 'class' => 'TestSteps', 'method' => 'beforeWithOneTag' @@ -147,10 +148,13 @@ public function testInvokeShouldFailWhenAssertionNotMet() { self::assertEquals(array('fail',array('message' => 'Failed asserting that <boolean:false> is equal to <boolean:true>.')), $this->oScenario->invoke(4,array())); } public function testInvokeShouldFailWhenExceptionThrown() { - self::assertEquals(array('fail',array('exception' => 'TestException')), $this->oScenario->invoke(5,array())); + $aResult = $this->oScenario->invoke(5,array()); + self::assertEquals('fail',$aResult[0]); + self::assertEquals('Exception', $aResult[1]['exception']); + self::assertEquals('test exception /Users/kolbrich/local_src/cuke4php/features/step_definitions/TestSteps.php:48', $aResult[1]['message']); } public function testInvokeShouldSucceedWithParameters() { self::assertEquals(array('success'), $this->oScenario->invoke(6,array('one','two'))); } \ No newline at end of file