public function test_scrape_another_standard_recipe() { $recipe = new Recipe(); $recipe->setAuthor('Nancy Silverton'); $recipe->setImage('http://assets.epicurious.com/photos/57aa356d47750f3f7bc358f6/master/pass/mozzarella-and-prosciutto-sandwiches-with-tapenade-09082016.jpg'); $recipe->setName('Mozzarella and Prosciutto Sandwiches with Tapenade'); $recipe->setPublisher('Bon Appétit'); $recipe->setRecipeCategories(['Sandwich', 'Cheese', 'Olive', 'Pork', 'No-Cook', 'Quick & Easy', 'Back to School', 'Lunch', 'Fall', 'Summer', 'Bon Appétit']); $recipe->setRecipeCuisines(['American', 'Italian']); $recipe->setRecipeIngredients([['title' => '', 'data' => ['1 1/2 teaspoons chopped anchovy fillet', '1 teaspoon capers (preferably salt-packed), rinsed, chopped', '1 garlic clove, minced', '1 teaspoon finely grated lemon peel', '1/2 teaspoon finely grated orange peel', '1 1/4 cups Niçoise olives, pitted, divided', '1/4 cup extra-virgin olive oil plus additional for brushing and drizzling', '1 tablespoon (packed) chopped fresh basil plus 24 whole leaves for garnish', '24 basil leaves', '2 teaspoons fresh lemon juice', '6 6-inch-long pieces ficelle or narrow baguette, split horizontally in half', '6 thin prosciutto slices', '2 8-ounce balls fresh mozzarella cheese, drained, cut into 1/3-inch-thick slices']]]); $recipe->setRecipeInstructions([['title' => '', 'data' => ['Combine first 5 ingredients in mortar; mash with pestle to paste. Add 1 cup olives and mash to coarse paste. Chop remaining 1/4 cup olives and stir into mixture. Mix in 1/4 cup olive oil, chopped basil, and lemon juice. Season tapenade with pepper. (Can be made 2 weeks ahead. Cover and refrigerate.)', 'Brush cut sides of ficelle with additional olive oil. Place 1 prosciutto slice on bottom half of each ficelle, then top with mozzarella slices, dividing equally. Spoon tapenade over each. Sprinkle with pepper; drizzle lightly with olive oil. Garnish with basil leaves. Cover with top halves of ficelle.']]]); $recipe->setRecipeYield('6'); $recipe->setUrl('http://www.epicurious.com/recipes/food/views/mozzarella-and-prosciutto-sandwiches-with-tapenade-234141'); $crawler = $this->client->request('GET', 'http://www.epicurious.com/recipes/food/views/mozzarella-and-prosciutto-sandwiches-with-tapenade-234141'); $scraper = new EpicuriousCom($crawler); $this->assertEquals($recipe, $scraper->scrape()); }