|  | @@ 233-244 (lines=12) @@ | 
                                                            
                                    | 230 |  |      * @expectedException Exception | 
                                                            
                                    | 231 |  |      * @expectedExceptionMessage Invalid return value from League\Fractal\TransformerAbstract::includeBook(). | 
                                                            
                                    | 232 |  |      */ | 
                                                            
                                    | 233 |  |     public function testCallEmbedMethodReturnsCrap() | 
                                                            
                                    | 234 |  |     { | 
                                                            
                                    | 235 |  |         $manager = new Manager(); | 
                                                            
                                    | 236 |  |         $manager->parseIncludes('book'); | 
                                                            
                                    | 237 |  |         $transformer = m::mock('League\Fractal\TransformerAbstract[transform]'); | 
                                                            
                                    | 238 |  |  | 
                                                            
                                    | 239 |  |         $transformer->shouldReceive('includeBook')->once()->andReturn(new \stdClass()); | 
                                                            
                                    | 240 |  |  | 
                                                            
                                    | 241 |  |         $transformer->setAvailableIncludes(['book']); | 
                                                            
                                    | 242 |  |         $scope = new Scope($manager, new Item([], $transformer)); | 
                                                            
                                    | 243 |  |         $transformer->processIncludedResources($scope, ['meh']); | 
                                                            
                                    | 244 |  |     } | 
                                                            
                                    | 245 |  |  | 
                                                            
                                    | 246 |  |     /** | 
                                                            
                                    | 247 |  |      * @covers League\Fractal\TransformerAbstract::processIncludedResources | 
                                                                                
                                |  | @@ 336-346 (lines=11) @@ | 
                                                            
                                    | 333 |  |      * @covers League\Fractal\TransformerAbstract::processIncludedResources | 
                                                            
                                    | 334 |  |      * @covers League\Fractal\TransformerAbstract::callIncludeMethod | 
                                                            
                                    | 335 |  |      */ | 
                                                            
                                    | 336 |  |     public function testProcessEmbeddedDefaultResourcesEmptyEmbed() | 
                                                            
                                    | 337 |  |     { | 
                                                            
                                    | 338 |  |         $transformer = m::mock('League\Fractal\TransformerAbstract[transform]'); | 
                                                            
                                    | 339 |  |         $transformer->shouldReceive('includeBook')->once()->andReturn(null); | 
                                                            
                                    | 340 |  |  | 
                                                            
                                    | 341 |  |         $transformer->setDefaultIncludes(['book']); | 
                                                            
                                    | 342 |  |         $scope = new Scope(new Manager(), new Item([], $transformer)); | 
                                                            
                                    | 343 |  |         $included = $transformer->processIncludedResources($scope, ['meh']); | 
                                                            
                                    | 344 |  |  | 
                                                            
                                    | 345 |  |         $this->assertFalse($included); | 
                                                            
                                    | 346 |  |     } | 
                                                            
                                    | 347 |  |  | 
                                                            
                                    | 348 |  |     /** | 
                                                            
                                    | 349 |  |      * @covers League\Fractal\TransformerAbstract::item |