| Total Complexity | 3 |
| Total Lines | 15 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | final class TaxonNotFoundExceptionSpec extends ObjectBehavior |
||
| 20 | { |
||
| 21 | function it_is_initializable(): void |
||
|
|
|||
| 22 | { |
||
| 23 | $this->shouldHaveType(TaxonNotFoundException::class); |
||
| 24 | } |
||
| 25 | |||
| 26 | function it_is_an_not_found_exception(): void |
||
| 27 | { |
||
| 28 | $this->shouldHaveType(NotFoundHttpException::class); |
||
| 29 | } |
||
| 30 | |||
| 31 | function it_has_custom_message(): void |
||
| 34 | } |
||
| 35 | } |
||
| 36 |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.