Skip to content

Commit 349a640

Browse files
committed
test: fix all adapter tests
1 parent 5c79cdc commit 349a640

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

test/adapter/ffmpeg_animated_gif_Test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function testSerializeUnserialize() {
7373
$saveResult = $this->anim->addFrame($this->frame1);
7474
$this->assertEquals(true, $saveResult, 'Save result should be true');
7575
$this->assertEquals(true, file_exists(self::$outFilePath), 'File "'.self::$outFilePath.'" should exist after saving');
76-
$this->assertEquals(30585, filesize(self::$outFilePath), 'Animation binary size should be int(30585)');
76+
$this->assertEquals(30534, filesize(self::$outFilePath), 'Animation binary size should be int(30534)');
7777
$imageInfo = getimagesize(self::$outFilePath);
7878
$this->assertEquals(100, $imageInfo[0], 'Saved image width should be int(100)');
7979
$this->assertEquals(120, $imageInfo[1], 'Saved image height should be int(120)');

test/adapter/ffmpeg_movie_Test.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function testGetDuration() {
8585

8686
public function testGetDuration_Audio() {
8787
$this->assertInternalType('float', $this->audio->getDuration(), 'Duration is of float type');
88-
$this->assertEquals(15.84, $this->audio->getDuration(), 'Duration should be float(15.88)');
88+
$this->assertEquals(15.85, $this->audio->getDuration(), 'Duration should be float(15.85)');
8989
}
9090

9191
public function testGetFrameCount() {
@@ -213,7 +213,7 @@ public function testGetVideoCodec() {
213213

214214
public function testGetAudioCodec() {
215215
$this->assertInternalType('string', $this->movie->getAudioCodec(), 'Audio codec is of string type');
216-
$this->assertEquals('aac (mp4a / 0x6134706D)', $this->movie->getAudioCodec(), 'Audio codec should be string(aac)');
216+
$this->assertEquals('aac (LC) (mp4a / 0x6134706D)', $this->movie->getAudioCodec(), 'Audio codec should be string(aac)');
217217
}
218218

219219
public function testGetAudioChannels() {
@@ -268,6 +268,6 @@ public function testSerializeUnserialize() {
268268
$this->movie = null;
269269
$this->movie = unserialize($serialized);
270270
$this->assertInternalType('float', $this->movie->getDuration(), 'Duration is of float type');
271-
$this->assertEquals(32.13, $this->movie->getDuration(), 'Duration should be float(32.13)');
271+
$this->assertEquals(32.14, $this->movie->getDuration(), 'Duration should be float(32.14)');
272272
}
273273
}

0 commit comments

Comments
 (0)