OSDN Git Service

Revert "slight improvement to behat step regex"
authorscribu <mail@scribu.net>
Sun, 19 Jan 2014 14:07:17 +0000 (16:07 +0200)
committerscribu <mail@scribu.net>
Sun, 19 Jan 2014 14:07:17 +0000 (16:07 +0200)
The new regex didn't catch all cases.

This reverts commit ae175ac8d88c61b9e8132f07ca2b200b2437a413.

features/steps/given.php

index 5998f0d..998a013 100644 (file)
@@ -87,7 +87,7 @@ $steps->Given( '/^download:$/',
        }
 );
 
-$steps->Given( '/^save (STDOUT|STDERR)( [\'].+[^\'])? as \{(\w+)\}$/',
+$steps->Given( '/^save (STDOUT|STDERR) ([\'].+[^\'])?as \{(\w+)\}$/',
        function ( $world, $stream, $output_filter, $key ) {
 
                if ( $output_filter ) {