1 | <?php |
||
12 | class ExpectationAnnotationParser |
||
13 | { |
||
14 | const DEFAULT_EXPECTATIONS_PATH = "tests/_unique_expectations/"; |
||
15 | const PATH_CONFIG_KEY = 'unique_expectations_path'; |
||
16 | /** |
||
17 | * @var array |
||
18 | */ |
||
19 | private $config; |
||
20 | |||
21 | /** |
||
22 | * ExpectationAnnotationParser constructor. |
||
23 | * |
||
24 | * @param array $config |
||
25 | * |
||
26 | * @throws \Codeception\Exception\ConfigurationException |
||
27 | */ |
||
28 | public function __construct($config = []) |
||
35 | |||
36 | |||
37 | /** |
||
38 | * @param TestInterface|Cest $test |
||
39 | * |
||
40 | * @return array |
||
41 | */ |
||
42 | public function getExpectations(TestInterface $test) |
||
51 | |||
52 | /** |
||
53 | * @param $expectationsPath |
||
54 | * |
||
55 | * @return string |
||
56 | */ |
||
57 | protected function getExpectationFullPath($path) |
||
63 | |||
64 | /** |
||
65 | * @param $expectation |
||
66 | * |
||
67 | * @return string |
||
68 | * @throws ParseException |
||
69 | */ |
||
70 | public function parseExpectation($expectation) |
||
87 | } |