| @@ 4692-4698 (lines=7) @@ | ||
| 4689 | ->with($this->isType('string')) |
|
| 4690 | ->will( |
|
| 4691 | $this->returnCallback( |
|
| 4692 | function ($languageCode) { |
|
| 4693 | if ($languageCode === 'Klingon') { |
|
| 4694 | throw new NotFoundException('Language', 'Klingon'); |
|
| 4695 | } |
|
| 4696 | ||
| 4697 | return new Language(['id' => 4242]); |
|
| 4698 | } |
|
| 4699 | ) |
|
| 4700 | ); |
|
| 4701 | ||
| @@ 1838-1844 (lines=7) @@ | ||
| 1835 | ->with($this->isType('string')) |
|
| 1836 | ->will( |
|
| 1837 | $this->returnCallback( |
|
| 1838 | function ($languageCode) { |
|
| 1839 | if ($languageCode === 'Klingon') { |
|
| 1840 | throw new NotFoundException('Language', 'Klingon'); |
|
| 1841 | } |
|
| 1842 | ||
| 1843 | return new Language(['id' => 4242]); |
|
| 1844 | } |
|
| 1845 | ) |
|
| 1846 | ); |
|
| 1847 | ||
| @@ 4617-4623 (lines=7) @@ | ||
| 4614 | ->with($this->isType('string')) |
|
| 4615 | ->will( |
|
| 4616 | $this->returnCallback( |
|
| 4617 | function ($languageCode) { |
|
| 4618 | if ($languageCode === 'Klingon') { |
|
| 4619 | throw new NotFoundException('Language', 'Klingon'); |
|
| 4620 | } |
|
| 4621 | ||
| 4622 | return new Language(['id' => 4242]); |
|
| 4623 | } |
|
| 4624 | ) |
|
| 4625 | ); |
|
| 4626 | ||