| @@ 1775-1781 (lines=7) @@ | ||
| 1772 | ->with($this->isType('string')) |
|
| 1773 | ->will( |
|
| 1774 | $this->returnCallback( |
|
| 1775 | function ($languageCode) { |
|
| 1776 | if ($languageCode === 'Klingon') { |
|
| 1777 | throw new NotFoundException('Language', 'Klingon'); |
|
| 1778 | } |
|
| 1779 | ||
| 1780 | return new Language(array('id' => 4242)); |
|
| 1781 | } |
|
| 1782 | ) |
|
| 1783 | ); |
|
| 1784 | ||
| @@ 4567-4573 (lines=7) @@ | ||
| 4564 | ->with($this->isType('string')) |
|
| 4565 | ->will( |
|
| 4566 | $this->returnCallback( |
|
| 4567 | function ($languageCode) { |
|
| 4568 | if ($languageCode === 'Klingon') { |
|
| 4569 | throw new NotFoundException('Language', 'Klingon'); |
|
| 4570 | } |
|
| 4571 | ||
| 4572 | return new Language(array('id' => 4242)); |
|
| 4573 | } |
|
| 4574 | ) |
|
| 4575 | ); |
|
| 4576 | ||
| @@ 4644-4650 (lines=7) @@ | ||
| 4641 | ->with($this->isType('string')) |
|
| 4642 | ->will( |
|
| 4643 | $this->returnCallback( |
|
| 4644 | function ($languageCode) { |
|
| 4645 | if ($languageCode === 'Klingon') { |
|
| 4646 | throw new NotFoundException('Language', 'Klingon'); |
|
| 4647 | } |
|
| 4648 | ||
| 4649 | return new Language(array('id' => 4242)); |
|
| 4650 | } |
|
| 4651 | ) |
|
| 4652 | ); |
|
| 4653 | ||