| @@ 1843-1849 (lines=7) @@ | ||
| 1840 | ->with($this->isType('string')) |
|
| 1841 | ->will( |
|
| 1842 | $this->returnCallback( |
|
| 1843 | function ($languageCode) { |
|
| 1844 | if ($languageCode === 'Klingon') { |
|
| 1845 | throw new NotFoundException('Language', 'Klingon'); |
|
| 1846 | } |
|
| 1847 | ||
| 1848 | return new Language(['id' => 4242]); |
|
| 1849 | } |
|
| 1850 | ) |
|
| 1851 | ); |
|
| 1852 | ||
| @@ 4648-4654 (lines=7) @@ | ||
| 4645 | ->with($this->isType('string')) |
|
| 4646 | ->will( |
|
| 4647 | $this->returnCallback( |
|
| 4648 | function ($languageCode) { |
|
| 4649 | if ($languageCode === 'Klingon') { |
|
| 4650 | throw new NotFoundException('Language', 'Klingon'); |
|
| 4651 | } |
|
| 4652 | ||
| 4653 | return new Language(['id' => 4242]); |
|
| 4654 | } |
|
| 4655 | ) |
|
| 4656 | ); |
|
| 4657 | ||
| @@ 4733-4739 (lines=7) @@ | ||
| 4730 | ->with($this->isType('string')) |
|
| 4731 | ->will( |
|
| 4732 | $this->returnCallback( |
|
| 4733 | function ($languageCode) { |
|
| 4734 | if ($languageCode === 'Klingon') { |
|
| 4735 | throw new NotFoundException('Language', 'Klingon'); |
|
| 4736 | } |
|
| 4737 | ||
| 4738 | return new Language(['id' => 4242]); |
|
| 4739 | } |
|
| 4740 | ) |
|
| 4741 | ); |
|
| 4742 | ||