| @@ 1819-1825 (lines=7) @@ | ||
| 1816 | ->with($this->isType('string')) |
|
| 1817 | ->will( |
|
| 1818 | $this->returnCallback( |
|
| 1819 | function ($languageCode) { |
|
| 1820 | if ($languageCode === 'Klingon') { |
|
| 1821 | throw new NotFoundException('Language', 'Klingon'); |
|
| 1822 | } |
|
| 1823 | ||
| 1824 | return new Language(array('id' => 4242)); |
|
| 1825 | } |
|
| 1826 | ) |
|
| 1827 | ); |
|
| 1828 | ||
| @@ 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(array('id' => 4242)); |
|
| 4604 | } |
|
| 4605 | ) |
|
| 4606 | ); |
|
| 4607 | ||
| @@ 4673-4679 (lines=7) @@ | ||
| 4670 | ->with($this->isType('string')) |
|
| 4671 | ->will( |
|
| 4672 | $this->returnCallback( |
|
| 4673 | function ($languageCode) { |
|
| 4674 | if ($languageCode === 'Klingon') { |
|
| 4675 | throw new NotFoundException('Language', 'Klingon'); |
|
| 4676 | } |
|
| 4677 | ||
| 4678 | return new Language(array('id' => 4242)); |
|
| 4679 | } |
|
| 4680 | ) |
|
| 4681 | ); |
|
| 4682 | ||