Total Complexity | 6 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
14 | abstract class Matcher implements ExpectationMatcher { |
||
15 | private $assert; |
||
16 | |||
17 | public function __construct(Assert $assert) { |
||
18 | $this->assert = $assert; |
||
19 | } |
||
20 | |||
21 | public function __clone() { |
||
22 | $this->assert = clone $this->assert; |
||
23 | } |
||
24 | |||
25 | protected function startStep($stepName) { |
||
26 | $this->assert->changeCurrentStepTo($stepName); |
||
27 | return $this->assert; |
||
28 | } |
||
29 | |||
30 | public function __invoke($actualValue) { |
||
36 | } |
||
37 | |||
38 | protected function createInternalMatcherWithDescription($matcherClass, $description) { |
||
39 | $assert = clone $this->assert; |
||
40 | $assert->changeDescriptionTo($description); |
||
41 | return new $matcherClass($assert); |
||
42 | } |
||
43 | |||
44 | protected function getActualValue() { |
||
46 | } |
||
47 | } |