@@ -16,32 +16,40 @@ public function iWantToSetsFeatureInCestFormat(CliGuy $I): void
16
16
$ I ->seeInShellOutput ('+ WantToCest: Check if I->wantTo works ' );
17
17
}
18
18
19
- public function testerWantToSetsFeatureInCestFormat (CliGuy $ I ): void
19
+ /**
20
+ * Tests https://github.com/Codeception/Codeception/issues/4123
21
+ */
22
+ public function testerWantDoesntSetFeatureInCestFormat (CliGuy $ I ): void
20
23
{
21
24
$ I ->amInPath ('tests/data/want_to ' );
22
25
$ I ->executeCommand ('run --no-ansi unit WantToCest.php:^TesterWantTo ' );
23
- $ I ->seeInShellOutput ('+ WantToCest: Check if tester->wantTo works ' );
26
+ $ I ->seeInShellOutput ('+ WantToCest: Tester want to ' );
24
27
}
25
28
26
- public function variablePassedToIWantToIsEvaluated (CliGuy $ I ): void
29
+ public function iWantToWithVariableIsIgnored (CliGuy $ I ): void
27
30
{
28
31
$ I ->amInPath ('tests/data/want_to ' );
29
32
$ I ->executeCommand ('run --no-ansi unit WantToCest.php:Variable ' );
30
- $ I ->seeInShellOutput ('+ WantToCest: Check if variable wantTo is evaluated ' );
33
+ $ I ->seeInShellOutput ('+ WantToCest: Variable argument of want to ' );
31
34
}
32
35
33
- public function iWantToIncorrectlyOverridesDataproviderData (CliGuy $ I ): void
36
+ /**
37
+ * Tests https://github.com/Codeception/Codeception/issues/4124
38
+ */
39
+ public function iWantToDoesntOverrideDataproviderData (CliGuy $ I ): void
34
40
{
35
41
$ I ->amInPath ('tests/data/want_to ' );
36
42
$ I ->executeCommand ('run --no-ansi unit WantToCest.php:DataProviderIWantTo ' );
37
- $ I ->seeInShellOutput ('+ WantToCest: Check if I->wantTo doesn \'t override data provider data ' );
43
+ $ I ->seeInShellOutput ('+ WantToCest: Check if I->wantTo doesn \\\'t override data provider data | "aaa" ' );
44
+ $ I ->seeInShellOutput ('+ WantToCest: Check if I->wantTo doesn \\\'t override data provider data | "bbb" ' );
38
45
}
39
46
40
- public function testerWantToIncorrectlyOverridesDataproviderData (CliGuy $ I ): void
47
+ public function testerWantToDoesntOverrideDataproviderData (CliGuy $ I ): void
41
48
{
42
49
$ I ->amInPath ('tests/data/want_to ' );
43
50
$ I ->executeCommand ('run --no-ansi unit WantToCest.php:DataProviderTesterWantTo ' );
44
- $ I ->seeInShellOutput ('+ WantToCest: Check if tester->wantTo doesn \'t override data provider data ' );
51
+ $ I ->seeInShellOutput ('+ WantToCest: Data provider tester want to | "aaa" ' );
52
+ $ I ->seeInShellOutput ('+ WantToCest: Data provider tester want to | "bbb" ' );
45
53
}
46
54
47
55
public function wantToTextIsUsedInXmlReport (CliGuy $ I ): void
0 commit comments