| @@ 1862-1868 (lines=7) @@ | ||
| 1859 | ->with($this->isType('string')) |
|
| 1860 | ->will( |
|
| 1861 | $this->returnCallback( |
|
| 1862 | function ($languageCode) { |
|
| 1863 | if ($languageCode === 'Klingon') { |
|
| 1864 | throw new NotFoundException('Language', 'Klingon'); |
|
| 1865 | } |
|
| 1866 | ||
| 1867 | return new Language(['id' => 4242]); |
|
| 1868 | } |
|
| 1869 | ) |
|
| 1870 | ); |
|
| 1871 | ||
| @@ 4655-4661 (lines=7) @@ | ||
| 4652 | ->with($this->isType('string')) |
|
| 4653 | ->will( |
|
| 4654 | $this->returnCallback( |
|
| 4655 | function ($languageCode) { |
|
| 4656 | if ($languageCode === 'Klingon') { |
|
| 4657 | throw new NotFoundException('Language', 'Klingon'); |
|
| 4658 | } |
|
| 4659 | ||
| 4660 | return new Language(['id' => 4242]); |
|
| 4661 | } |
|
| 4662 | ) |
|
| 4663 | ); |
|
| 4664 | ||
| @@ 4738-4744 (lines=7) @@ | ||
| 4735 | ->with($this->isType('string')) |
|
| 4736 | ->will( |
|
| 4737 | $this->returnCallback( |
|
| 4738 | function ($languageCode) { |
|
| 4739 | if ($languageCode === 'Klingon') { |
|
| 4740 | throw new NotFoundException('Language', 'Klingon'); |
|
| 4741 | } |
|
| 4742 | ||
| 4743 | return new Language(['id' => 4242]); |
|
| 4744 | } |
|
| 4745 | ) |
|
| 4746 | ); |
|
| 4747 | ||