| @@ 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 | ||
| @@ 4619-4625 (lines=7) @@ | ||
| 4616 | ->with($this->isType('string')) |
|
| 4617 | ->will( |
|
| 4618 | $this->returnCallback( |
|
| 4619 | function ($languageCode) { |
|
| 4620 | if ($languageCode === 'Klingon') { |
|
| 4621 | throw new NotFoundException('Language', 'Klingon'); |
|
| 4622 | } |
|
| 4623 | ||
| 4624 | return new Language(['id' => 4242]); |
|
| 4625 | } |
|
| 4626 | ) |
|
| 4627 | ); |
|
| 4628 | ||
| @@ 4694-4700 (lines=7) @@ | ||
| 4691 | ->with($this->isType('string')) |
|
| 4692 | ->will( |
|
| 4693 | $this->returnCallback( |
|
| 4694 | function ($languageCode) { |
|
| 4695 | if ($languageCode === 'Klingon') { |
|
| 4696 | throw new NotFoundException('Language', 'Klingon'); |
|
| 4697 | } |
|
| 4698 | ||
| 4699 | return new Language(['id' => 4242]); |
|
| 4700 | } |
|
| 4701 | ) |
|
| 4702 | ); |
|
| 4703 | ||