Carew\Tests\ProcessorTest::testProcessDocumentWithExceptionAndFile PHP Method

testProcessDocumentWithExceptionAndFile() public method

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