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