<?php
/**
+ * @group Media
* @covers DjVuHandler
*/
class DjVuTest extends MediaWikiMediaTestCase {
public function testInvalidFile() {
$this->assertEquals(
'a:1:{s:5:"error";s:25:"Error extracting metadata";}',
- $this->handler->getMetadata( null, $this->filePath . '/README' ),
- 'Getting Metadata for an inexistent file should returns false'
+ $this->handler->getMetadata( null, $this->filePath . '/some-nonexistent-file' ),
+ 'Getting metadata for an inexistent file should return false'
);
}
$file = $this->dataFile( 'LoremIpsum.djvu', 'image/x.djvu' );
$this->assertEquals(
"Lorem ipsum \n1 \n",
- (string) $this->handler->getPageText( $file, 1 ),
+ (string)$this->handler->getPageText( $file, 1 ),
"Text layer of page 1 of file LoremIpsum.djvu should be 'Lorem ipsum \n1 \n'"
);
}