| @@ 1798-1804 (lines=7) @@ | ||
| 1795 | ->with($this->isType('string')) |
|
| 1796 | ->will( |
|
| 1797 | $this->returnCallback( |
|
| 1798 | function ($languageCode) { |
|
| 1799 | if ($languageCode === 'Klingon') { |
|
| 1800 | throw new NotFoundException('Language', 'Klingon'); |
|
| 1801 | } |
|
| 1802 | ||
| 1803 | return new Language(['id' => 4242]); |
|
| 1804 | } |
|
| 1805 | ) |
|
| 1806 | ); |
|
| 1807 | ||
| @@ 4598-4604 (lines=7) @@ | ||
| 4595 | ->with($this->isType('string')) |
|
| 4596 | ->will( |
|
| 4597 | $this->returnCallback( |
|
| 4598 | function ($languageCode) { |
|
| 4599 | if ($languageCode === 'Klingon') { |
|
| 4600 | throw new NotFoundException('Language', 'Klingon'); |
|
| 4601 | } |
|
| 4602 | ||
| 4603 | return new Language(['id' => 4242]); |
|
| 4604 | } |
|
| 4605 | ) |
|
| 4606 | ); |
|
| 4607 | ||
| @@ 4675-4681 (lines=7) @@ | ||
| 4672 | ->with($this->isType('string')) |
|
| 4673 | ->will( |
|
| 4674 | $this->returnCallback( |
|
| 4675 | function ($languageCode) { |
|
| 4676 | if ($languageCode === 'Klingon') { |
|
| 4677 | throw new NotFoundException('Language', 'Klingon'); |
|
| 4678 | } |
|
| 4679 | ||
| 4680 | return new Language(['id' => 4242]); |
|
| 4681 | } |
|
| 4682 | ) |
|
| 4683 | ); |
|
| 4684 | ||