Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 11 |
Ratio | 100 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
28 | View Code Duplication | public function response_content_should_match(PyStringNode $pattern) |
|
29 | { |
||
30 | $matcher = $this->factory->createMatcher(); |
||
31 | $content = (string) $this->getResponse()->getBody(); |
||
32 | |||
33 | if ($matcher->match($content, $pattern->getRaw())) { |
||
34 | return; |
||
35 | } |
||
36 | |||
37 | throw new InvalidArgumentException($matcher->getError()); |
||
38 | } |
||
39 | |||
56 |