Skip to content

Commit

Permalink
test: fix pixel aspect ratio tests
Browse files Browse the repository at this point in the history
  • Loading branch information
char0n committed Feb 3, 2017
1 parent e54667c commit 67ceda7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/FFmpegMovieTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public function testGetPixelFormat() {

public function testGetPixelAspectRatio() {
$this->assertInternalType('float', $this->movie->getPixelAspectRatio(), 'Pixel aspect ratio is of float type');
$this->assertEquals(1.7777777777778, $this->movie->getPixelAspectRatio(), 'Pixel aspect ratio should be float(1.7777777777778)');
$this->assertEquals(2.35, round($this->movie->getPixelAspectRatio(), 2), 'Pixel aspect ratio should be float(2.35)');
}

public function testGetBitRate() {
Expand Down
2 changes: 1 addition & 1 deletion test/adapter/ffmpeg_movie_Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public function testGetPixelFormat() {

public function testGetPixelAspectRatio() {
$this->assertInternalType('float', $this->movie->getPixelAspectRatio(), 'Pixel aspect ratio is of float type');
$this->assertEquals(1.7777777777778, $this->movie->getPixelAspectRatio(), 'Pixel aspect ratio should be float(1.7777777777778)');
$this->assertEquals(2.35, round($this->movie->getPixelAspectRatio(), 2), 'Pixel aspect ratio should be float(2.35)');
}

public function testGetBitRate() {
Expand Down

0 comments on commit 67ceda7

Please sign in to comment.