/** * @testdox Falha ao acessar ``getShipping()`` quando não houver nenhum objeto * @test * @expectedException Exception * @expectedExceptionMessage Shipping Missed! * @dataProvider dataProviderOrders */ public function failShipping(Order $order) { $order->getShippings()->clear(); $order->getInvoice(); }