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