Tests/DocumentResolver/DocumentResolverTest.php
/**
     * Returns document mimetype with corresponding
     * document resolverType
     *
     * Except for word2007 that need another logic
     *
     * @return array
     */
Returns document mimetype with corresponding
document resolverType

Except for word2007 that need another logic

@return array
Returns document mimetype with corresponding document resolverType Except for word2007 that need another logic @return array
public function documentsProvider()
    {
        return [
            ['text/html', 'html'],
            ['application/pdf', 'pdf'],
            ['application/octet-stream', 'pdf'],
            ['application/vnd.openxmlformats-officedocument.wordprocessingml.template', 'msdoc'],
            ['application/msword', 'msdoc'],
            ['application/rtf', 'rtf'],
            ['application/vnd.oasis.opendocument.text', 'odt'],
            ['unknown', 'html']
        ];
    }
public function documentsProvider ( ) { return [ [ 'text/html' , 'html' ] , [ 'application/pdf' , 'pdf' ] , [ 'application/octet-stream' , 'pdf' ] , [ 'application/vnd.openxmlformats-officedocument.wordprocessingml.template' , 'msdoc' ] , [ 'application/msword' , 'msdoc' ] , [ 'application/rtf' , 'rtf' ] , [ 'application/vnd.oasis.opendocument.text' , 'odt' ] , [ 'unknown' , 'html' ] ] ; }
Returns document mimetype with corresponding
 document resolverType
Returns document mimetype with corresponding document resolverType