}
public function testGetImageSize() {
- $this->assertArrayEquals(
+ $this->assertSame(
[ 2480, 3508, 'DjVu', 'width="2480" height="3508"' ],
$this->handler->getImageSize( null, $this->filePath . '/LoremIpsum.djvu' ),
'Test file LoremIpsum.djvu should have a size of 2480 * 3508'
public function testGetPageDimensions() {
$file = $this->dataFile( 'LoremIpsum.djvu', 'image/x.djvu' );
- $this->assertArrayEquals(
- [ 2480, 3508 ],
+ $this->assertSame(
+ [ 'width' => 2480, 'height' => 3508 ],
$this->handler->getPageDimensions( $file, 1 ),
'Page 1 of test file LoremIpsum.djvu should have a size of 2480 * 3508'
);
'Learner1', 'Learner2', 'Learner3', 'Learner4',
'Experienced1',
],
- $this->fetchUsers( [ 'learner', 'experienced' ], $now ),
- 'Learner and more experienced'
+ $this->fetchUsers( [ 'learner', 'experienced' ], $now )
);
}
$this->assertFileContains( $testFileName, $sparql );
$processed = $processedProperty->getValue( $dumpScript );
- $expectedProcessed = $preProcessed;
+ $expectedProcessed = array_keys( $preProcessed );
foreach ( $result as $row ) {
if ( isset( $row->_processed ) ) {
$this->assertArrayHasKey( $row->_processed, $processed,
$expectedProcessed[] = $row->_processed;
}
}
- $this->assertArrayEquals( $expectedProcessed, array_keys( $processed ),
+ $this->assertSame( $expectedProcessed, array_keys( $processed ),
'Processed array has wrong items' );
}
$css = file_get_contents( $basepath . 'comments.css' );
$files = CSSMin::getLocalFileReferences( $css, $basepath );
$expected = [ $basepath . 'not-commented.gif' ];
- $this->assertArrayEquals(
+ $this->assertSame(
$expected,
$files,
'Url(...) expression in comment should be omitted.'