1 | <?php |
||
12 | class FeatureContext implements Context, SnippetAcceptingContext |
||
13 | { |
||
14 | /** |
||
15 | * @var string Name of directory where test files are keept |
||
16 | */ |
||
17 | private $sourceDir; |
||
18 | |||
19 | /** |
||
20 | * @var string[] Arguments used when invoking readme-tester |
||
21 | */ |
||
22 | private $args = []; |
||
23 | |||
24 | /** |
||
25 | * @var integer The number of processed files |
||
26 | */ |
||
27 | private $fileCount = 0; |
||
28 | |||
29 | /** |
||
30 | * @var integer The number of assertions |
||
31 | */ |
||
32 | private $assertionCount = 0; |
||
33 | |||
34 | /** |
||
35 | * @var integer The number of failed assertions |
||
36 | */ |
||
37 | private $failureCount = 0; |
||
38 | |||
39 | /** |
||
40 | * @var integer Return value of the last readme-tester execution |
||
41 | */ |
||
42 | private $returnValue = 0; |
||
43 | |||
44 | public function __construct() |
||
49 | |||
50 | public function __destruct() |
||
54 | |||
55 | /** |
||
56 | * @Given a markdown file: |
||
57 | */ |
||
58 | public function aMarkdownFile(PyStringNode $string) |
||
62 | |||
63 | /** |
||
64 | * @Given a source file :filename: |
||
65 | */ |
||
66 | public function aSourceFile($filename, PyStringNode $string) |
||
70 | |||
71 | |||
72 | /** |
||
73 | * @Given the command line argument :argument |
||
74 | */ |
||
75 | public function theCommandLineArgument($argument) |
||
79 | |||
80 | |||
81 | /** |
||
82 | * @When I run readme tester |
||
83 | */ |
||
84 | public function iRunReadmeTester() |
||
103 | |||
104 | /** |
||
105 | * @Then :number tests are executed |
||
106 | */ |
||
107 | public function testsAreExecuted(int $number) |
||
113 | |||
114 | /** |
||
115 | * @Then :number failures are found |
||
116 | */ |
||
117 | public function failuresAreFound($number) |
||
123 | |||
124 | /** |
||
125 | * @Then the exit code is :code |
||
126 | */ |
||
127 | public function theExitCodeIs(int $code) |
||
133 | } |
||
134 |
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.