Conditions | 7 |
Paths | 1 |
Total Lines | 20 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
38 | public function getMatchers(): array |
||
39 | { |
||
40 | return [ |
||
41 | 'beScreenshotWithTheFollowingProperties' => function (ThemeScreenshot $subject, array $properties) { |
||
42 | if (isset($properties['path']) && $subject->getPath() !== $properties['path']) { |
||
43 | return false; |
||
44 | } |
||
45 | |||
46 | if (isset($properties['title']) && $subject->getTitle() !== $properties['title']) { |
||
47 | return false; |
||
48 | } |
||
49 | |||
50 | if (isset($properties['description']) && $subject->getDescription() !== $properties['description']) { |
||
|
|||
51 | return false; |
||
52 | } |
||
53 | |||
54 | return true; |
||
55 | }, |
||
56 | ]; |
||
57 | } |
||
58 | } |
||
59 |