| @@ 1805-1811 (lines=7) @@ | ||
| 1802 | ->with($this->isType('string')) |
|
| 1803 | ->will( |
|
| 1804 | $this->returnCallback( |
|
| 1805 | function ($languageCode) { |
|
| 1806 | if ($languageCode === 'Klingon') { |
|
| 1807 | throw new NotFoundException('Language', 'Klingon'); |
|
| 1808 | } |
|
| 1809 | ||
| 1810 | return new Language(array('id' => 4242)); |
|
| 1811 | } |
|
| 1812 | ) |
|
| 1813 | ); |
|
| 1814 | ||
| @@ 4584-4590 (lines=7) @@ | ||
| 4581 | ->with($this->isType('string')) |
|
| 4582 | ->will( |
|
| 4583 | $this->returnCallback( |
|
| 4584 | function ($languageCode) { |
|
| 4585 | if ($languageCode === 'Klingon') { |
|
| 4586 | throw new NotFoundException('Language', 'Klingon'); |
|
| 4587 | } |
|
| 4588 | ||
| 4589 | return new Language(array('id' => 4242)); |
|
| 4590 | } |
|
| 4591 | ) |
|
| 4592 | ); |
|
| 4593 | ||
| @@ 4659-4665 (lines=7) @@ | ||
| 4656 | ->with($this->isType('string')) |
|
| 4657 | ->will( |
|
| 4658 | $this->returnCallback( |
|
| 4659 | function ($languageCode) { |
|
| 4660 | if ($languageCode === 'Klingon') { |
|
| 4661 | throw new NotFoundException('Language', 'Klingon'); |
|
| 4662 | } |
|
| 4663 | ||
| 4664 | return new Language(array('id' => 4242)); |
|
| 4665 | } |
|
| 4666 | ) |
|
| 4667 | ); |
|
| 4668 | ||