| @@ 1810-1816 (lines=7) @@ | ||
| 1807 | ->with($this->isType('string')) |
|
| 1808 | ->will( |
|
| 1809 | $this->returnCallback( |
|
| 1810 | function ($languageCode) { |
|
| 1811 | if ($languageCode === 'Klingon') { |
|
| 1812 | throw new NotFoundException('Language', 'Klingon'); |
|
| 1813 | } |
|
| 1814 | ||
| 1815 | return new Language(array('id' => 4242)); |
|
| 1816 | } |
|
| 1817 | ) |
|
| 1818 | ); |
|
| 1819 | ||
| @@ 4589-4595 (lines=7) @@ | ||
| 4586 | ->with($this->isType('string')) |
|
| 4587 | ->will( |
|
| 4588 | $this->returnCallback( |
|
| 4589 | function ($languageCode) { |
|
| 4590 | if ($languageCode === 'Klingon') { |
|
| 4591 | throw new NotFoundException('Language', 'Klingon'); |
|
| 4592 | } |
|
| 4593 | ||
| 4594 | return new Language(array('id' => 4242)); |
|
| 4595 | } |
|
| 4596 | ) |
|
| 4597 | ); |
|
| 4598 | ||
| @@ 4664-4670 (lines=7) @@ | ||
| 4661 | ->with($this->isType('string')) |
|
| 4662 | ->will( |
|
| 4663 | $this->returnCallback( |
|
| 4664 | function ($languageCode) { |
|
| 4665 | if ($languageCode === 'Klingon') { |
|
| 4666 | throw new NotFoundException('Language', 'Klingon'); |
|
| 4667 | } |
|
| 4668 | ||
| 4669 | return new Language(array('id' => 4242)); |
|
| 4670 | } |
|
| 4671 | ) |
|
| 4672 | ); |
|
| 4673 | ||