| @@ 1831-1837 (lines=7) @@ | ||
| 1828 | ->with($this->isType('string')) |
|
| 1829 | ->will( |
|
| 1830 | $this->returnCallback( |
|
| 1831 | function ($languageCode) { |
|
| 1832 | if ($languageCode === 'Klingon') { |
|
| 1833 | throw new NotFoundException('Language', 'Klingon'); |
|
| 1834 | } |
|
| 1835 | ||
| 1836 | return new Language(['id' => 4242]); |
|
| 1837 | } |
|
| 1838 | ) |
|
| 1839 | ); |
|
| 1840 | ||
| @@ 4629-4635 (lines=7) @@ | ||
| 4626 | ->with($this->isType('string')) |
|
| 4627 | ->will( |
|
| 4628 | $this->returnCallback( |
|
| 4629 | function ($languageCode) { |
|
| 4630 | if ($languageCode === 'Klingon') { |
|
| 4631 | throw new NotFoundException('Language', 'Klingon'); |
|
| 4632 | } |
|
| 4633 | ||
| 4634 | return new Language(['id' => 4242]); |
|
| 4635 | } |
|
| 4636 | ) |
|
| 4637 | ); |
|
| 4638 | ||
| @@ 4706-4712 (lines=7) @@ | ||
| 4703 | ->with($this->isType('string')) |
|
| 4704 | ->will( |
|
| 4705 | $this->returnCallback( |
|
| 4706 | function ($languageCode) { |
|
| 4707 | if ($languageCode === 'Klingon') { |
|
| 4708 | throw new NotFoundException('Language', 'Klingon'); |
|
| 4709 | } |
|
| 4710 | ||
| 4711 | return new Language(['id' => 4242]); |
|
| 4712 | } |
|
| 4713 | ) |
|
| 4714 | ); |
|
| 4715 | ||