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