summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorVitor Mattos <vitor@php.rio>2023-04-26 07:28:22 -0300
committerVitor Mattos <vitor@php.rio>2023-04-26 07:28:22 -0300
commit7d0b77df4b6b89eb67ad3885e8ab83dc5231de67 (patch)
treeec97ab867b1b6264308aa7c28186d442da8fab28 /tests
parenta4544b5acbb3533dcf9a8b8288369d1f7486ee7e (diff)
Make possible accept PyStringNode as argument
Will be a bit complex to match a string with quote because the regex ignore quotes: ([^"]*). If we change the regex don't will be possible found the end of string and maybe we will need to change the delimiter of the json string: https://stackoverflow.com/questions/8533943/cucumber-fill-in-a-field-with-double-quote-in-it#8534220 I changed to accept the argument also as PyStringNode and don't need do nothin more inside the method because the PyStringNode class have a magich methdo __toString(). Signed-off-by: Vitor Mattos <vitor@php.rio>
Diffstat (limited to 'tests')
-rw-r--r--tests/integration/features/bootstrap/CommandLineTrait.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/integration/features/bootstrap/CommandLineTrait.php b/tests/integration/features/bootstrap/CommandLineTrait.php
index 1c9a3d30b..e13a00d83 100644
--- a/tests/integration/features/bootstrap/CommandLineTrait.php
+++ b/tests/integration/features/bootstrap/CommandLineTrait.php
@@ -148,6 +148,7 @@ trait CommandLineTrait {
}
/**
+ * @Then /^the command output contains the text:$/
* @Then /^the command output contains the text "([^"]*)"$/
*/
public function theCommandOutputContainsTheText($text) {