Carew\Tests\ProcessorTest::testProcessDocumentDecorationWithExceptionAndFile PHP Method

testProcessDocumentDecorationWithExceptionAndFile() public method

    public function testProcessDocumentDecorationWithExceptionAndFile()
    {
        $this->eventDispatcher->addListener(Events::DOCUMENT_DECORATION, function () {
            throw new \Exception('Exception message');
        });
        $this->processor->processDocumentDecoration(new Document(new SplFileInfo(__FILE__, '', basename(__FILE__))));
    }