| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 43 | public function thatPageShouldNotBeFound(StaticContent $staticContent) |
||
| 44 | { |
||
| 45 | try { |
||
| 46 | $this->iShouldSeeThatStaticContent($staticContent); |
||
| 47 | } catch (\Exception $exception) { |
||
| 48 | return; |
||
| 49 | } |
||
| 50 | |||
| 51 | throw new \DomainException(sprintf('Static content "%s" was found!', $staticContent->getTitle())); |
||
| 52 | } |
||
| 53 | } |
||
| 54 |