create()->createModel(new DebugFormatter(), new Customer('foo'), new InvoiceTemplate(), new InvoiceQuery()); $sut = new InvoiceCreatedEvent($invoice, $model); self::assertSame($invoice, $sut->getInvoice()); self::assertSame($model, $sut->getInvoiceModel()); } }