Skip to content

Commit

Permalink
Improved tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tooleks committed May 28, 2017
1 parent 9f1b34f commit 294c56a
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions tests/unit/gd/GdImage.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,22 +68,18 @@ public function testCreateFromValidImageResource($resource)
* @dataProvider testValidImagePathProvider
* @param string $path
*/
public function testGetImageWidth(string $path)
public function testGetImageWidth(string $path, int $width, int $height, string $hex, array $rgb)
{
$width = Image::createFromPath($path)->getWidth();

$this->assertEquals(400, $width);
$this->assertEquals($width, Image::createFromPath($path)->getWidth());
}

/**
* @dataProvider testValidImagePathProvider
* @param string $path
*/
public function testGetImageHeight(string $path)
public function testGetImageHeight(string $path, int $width, int $height, string $hex, array $rgb)
{
$height = Image::createFromPath($path)->getHeight();

$this->assertEquals(225, $height);
$this->assertEquals($height, Image::createFromPath($path)->getHeight());
}

/**
Expand Down

0 comments on commit 294c56a

Please sign in to comment.