public function test_scrape_another_recipe_with_ingredient_and_instruction_groups()
 {
     $recipe = new Recipe();
     $recipe->setImage('http://assets.epicurious.com/photos/577e81394f2c1eb16e3d5851/master/pass/plum-steusel-coffeecake-hero-07072016.jpg');
     $recipe->setName('Plum Streusel Coffeecake');
     $recipe->setPublisher('Gourmet');
     $recipe->setRecipeCategories(['Cake', 'Food Processor', 'Mixer', 'Dairy', 'Breakfast', 'Brunch', 'Dessert', 'Bake', 'Vegetarian', 'Plum', 'Walnut', 'Fall', 'Gourmet']);
     $recipe->setRecipeIngredients([['title' => 'For Streusel', 'data' => ['1 cup all-purpose flour', '1/2 cup firmly packed light brown sugar', '1/2 cup walnuts', '3/4 stick (6 tablespoons) unsalted butter, cut into pieces and softened', '1 teaspoon cinnamon', '1/4 teaspoon freshly grated nutmeg']], ['title' => 'For Cake Batter', 'data' => ['1 stick (1/2 cup) unsalted butter, softened', '3/4 cup granulated sugar', '2 large eggs', '1 teaspoon vanilla', '1 1/4 cups all-purpose flour', '1 teaspoon baking powder', '1/2 teaspoon salt', '3/4 pound plums (4 to 5 medium), sliced', 'confectioners\' sugar for sifting over cake']]]);
     $recipe->setRecipeInstructions([['title' => '', 'data' => ['Preheat oven to 350 °F. and butter and flour a 9-inch round or square baking pan at least 2 inches deep.']], ['title' => 'Make Streusel', 'data' => ['In a food processor pulse together streusel ingredients until combined well and crumbly.']], ['title' => 'Make Cake Batter', 'data' => ['In a bowl with an electric mixer beat butter with sugar until light and fluffy and add eggs, 1 at a time, beating well after each addition, and vanilla. Sift in flour with baking powder and salt and beat until just combined.', 'Spread cake batter in pan, smoothing top, and arrange plum slices over it in slightly overlapping concentric circles. Sprinkle streusel over plum slices and bake cake in middle of oven 1 hour, or until a tester comes out clean. Coffeecake may be made 1 week ahead: Cool cake completely in pan on a rack and freeze, wrapped well in plastic wrap and foil. Reheat cake, unwrapped but not thawed, in a preheated 350 °F. oven until heated through, 35 to 40 minutes. Cool cake slightly on a rack and sift confectioners\' sugar over it. Serve coffeecake warm or at room temperature.']]]);
     $recipe->setUrl('http://www.epicurious.com/recipes/food/views/plum-streusel-coffeecake-13137');
     $crawler = $this->client->request('GET', 'http://www.epicurious.com/recipes/food/views/plum-streusel-coffeecake-13137');
     $scraper = new EpicuriousCom($crawler);
     $this->assertEquals($recipe, $scraper->scrape());
 }
 public function test_scrape_another_recipe_with_ingredient_groups()
 {
     $recipe = new Recipe();
     $recipe->setAuthor('Ann Taylor Pittman');
     $recipe->setDescription('Thawed lemonade concentrate adds bold, fun flavor to this tart layer cake. This cake is the perfect solution to summer birthday parties or winter events when you need to wake up your taste buds.');
     $recipe->setImage('http://cdn-image.myrecipes.com/sites/default/files/styles/300x300/public/image/recipes/ck/02/04/layer-cake-ck-249959-x.jpg?itok=1Ma3bcrJ');
     $recipe->setName('Lemonade Layer Cake');
     $recipe->setPublisher('Cooking Light');
     $recipe->setRecipeIngredients([['title' => 'Cake', 'data' => ['1 1/3 cups granulated sugar', '6 tablespoons butter, softened', '1 tablespoon grated lemon rind', '3 tablespoons thawed lemonade concentrate', '2 teaspoons vanilla extract', '2 large eggs', '2 large egg whites', '2 cups all-purpose flour', '1 teaspoon baking powder', '1/2 teaspoon salt', '1/2 teaspoon baking soda', '1 1/4 cups fat-free buttermilk', 'Cooking spray']], ['title' => 'Frosting', 'data' => ['2 tablespoons butter, softened', '2 teaspoons grated lemon rind', '2 teaspoons thawed lemonade concentrate', '1/2 teaspoon vanilla extract', '8 ounces 1/3-less-fat cream cheese', '3 1/2 cups powdered sugar']]]);
     $recipe->setRecipeInstructions([['title' => '', 'data' => ['Preheat oven to 350 °.', 'To prepare cake, place first 5 ingredients in a large bowl; beat with a mixer at medium speed until well blended (about 5 minutes). Add eggs and egg whites, 1 at a time, beating well after each addition. Lightly spoon flour into dry measuring cups; level with a knife. Combine flour, baking powder, salt, and baking soda; stir well with a whisk. Add flour mixture and buttermilk alternately to sugar mixture, beginning and ending with flour mixture; beat well after each addition.', 'Pour batter into 2 (9-inch) round cake pans coated with cooking spray; sharply tap pans once on counter to remove air bubbles. Bake at 350 ° for 20 minutes or until wooden pick inserted in center comes out clean. Cool in pans 10 minutes on a wire rack; remove from pans. Cool completely on wire rack.', 'To prepare frosting, place 2 tablespoons butter and the next 4 ingredients (2 tablespoons butter through cream cheese) in a large bowl; beat with a mixer at high speed until fluffy. Add powdered sugar, and beat at low speed just until blended (do not overbeat). Chill 1 hour.', 'Place 1 cake layer on a plate; spread with 1/2 cup frosting. Top with remaining cake layer. Spread remaining frosting over top and sides of cake. Store cake loosely covered in the refrigerator.']]]);
     $recipe->setRecipeYield('16');
     $recipe->setUrl('http://www.myrecipes.com/recipe/lemonade-layer-cake');
     $crawler = $this->client->request('GET', 'http://www.myrecipes.com/recipe/lemonade-layer-cake');
     $scraper = new MyRecipesCom($crawler);
     $this->assertEquals($recipe, $scraper->scrape());
 }