OSDN Git Service

behat: formatting fixes
authorscribu <mail@scribu.net>
Sun, 19 May 2013 18:07:11 +0000 (21:07 +0300)
committerscribu <mail@scribu.net>
Sun, 19 May 2013 18:07:11 +0000 (21:07 +0300)
features/steps/basic_steps.php

index c4d373a..d5432db 100644 (file)
@@ -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 );