Carew\Tests\ProcessorTest::testProcessDocumentWithExceptionWithoutFile PHP Method

testProcessDocumentWithExceptionWithoutFile() public method

    public function testProcessDocumentWithExceptionWithoutFile()
    {
        $this->eventDispatcher->addListener(Events::DOCUMENT_BODY, function () {
            throw new \Exception('Exception message');
        });
        $document = new Document();
        $document->setBody('Body');
        $this->processor->processDocument($document);
    }