From 7046dcc76a1135eb79e01cf1b430362337a993c7 Mon Sep 17 00:00:00 2001 From: scribu Date: Sun, 19 May 2013 21:07:11 +0300 Subject: [PATCH] behat: formatting fixes --- features/steps/basic_steps.php | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/features/steps/basic_steps.php b/features/steps/basic_steps.php index c4d373aa..d5432db9 100644 --- a/features/steps/basic_steps.php +++ b/features/steps/basic_steps.php @@ -215,21 +215,18 @@ $steps->Then( '/^STDOUT should be a table containing rows:$/', $steps->Then( '/^STDOUT should be JSON containing:$/', function ( $world, PyStringNode $expected ) { - $output = $world->result->STDOUT; - - $expected = $world->replace_variables( (string) $expected ); + $output = $world->result->STDOUT; + $expected = $world->replace_variables( (string) $expected ); - if ( !checkThatJsonStringContainsJsonString( $output, - $expected ) ) { + if ( !checkThatJsonStringContainsJsonString( $output, $expected ) ) { throw new \Exception( $output ); } }); $steps->Then( '/^STDOUT should be CSV containing:$/', function( $world, PyStringNode $expected ) { - - $output = $world->result->STDOUT; - $expected = $world->replace_variables( (string) $expected ); + $output = $world->result->STDOUT; + $expected = $world->replace_variables( (string) $expected ); if ( ! checkThatCsvStringContainsCsvString( $output, $expected ) ) throw new \Exception( $output ); -- 2.11.0