Skip to content

Instantly share code, notes, and snippets.

@vatson
Forked from everzet/behat_steps.php
Created February 13, 2011 20:04
Show Gist options
  • Save vatson/825056 to your computer and use it in GitHub Desktop.
Save vatson/825056 to your computer and use it in GitHub Desktop.
<?php
$steps->Then('/^it should pass with:$/', function($world, $data) {
try {
assertEquals((string) $data, $world->output);
} catch (\Exception $e) {
$exceptionDiff = \PHPUnit_Framework_TestFailure::exceptionToString($e);
throw new \Exception($exceptionDiff, $e->getCode(), $e);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment