| @@ 1840-1846 (lines=7) @@ | ||
| 1837 | ->with($this->isType('string')) |
|
| 1838 | ->will( |
|
| 1839 | $this->returnCallback( |
|
| 1840 | function ($languageCode) { |
|
| 1841 | if ($languageCode === 'Klingon') { |
|
| 1842 | throw new NotFoundException('Language', 'Klingon'); |
|
| 1843 | } |
|
| 1844 | ||
| 1845 | return new Language(['id' => 4242]); |
|
| 1846 | } |
|
| 1847 | ) |
|
| 1848 | ); |
|
| 1849 | ||
| @@ 4640-4646 (lines=7) @@ | ||
| 4637 | ->with($this->isType('string')) |
|
| 4638 | ->will( |
|
| 4639 | $this->returnCallback( |
|
| 4640 | function ($languageCode) { |
|
| 4641 | if ($languageCode === 'Klingon') { |
|
| 4642 | throw new NotFoundException('Language', 'Klingon'); |
|
| 4643 | } |
|
| 4644 | ||
| 4645 | return new Language(['id' => 4242]); |
|
| 4646 | } |
|
| 4647 | ) |
|
| 4648 | ); |
|
| 4649 | ||
| @@ 4717-4723 (lines=7) @@ | ||
| 4714 | ->with($this->isType('string')) |
|
| 4715 | ->will( |
|
| 4716 | $this->returnCallback( |
|
| 4717 | function ($languageCode) { |
|
| 4718 | if ($languageCode === 'Klingon') { |
|
| 4719 | throw new NotFoundException('Language', 'Klingon'); |
|
| 4720 | } |
|
| 4721 | ||
| 4722 | return new Language(['id' => 4242]); |
|
| 4723 | } |
|
| 4724 | ) |
|
| 4725 | ); |
|
| 4726 | ||