Skip to content

Commit

Permalink
🔥 Remove tests for deprecated method
Browse files Browse the repository at this point in the history
  • Loading branch information
jenssegers committed May 5, 2018
1 parent a52c26c commit 2041592
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
11 changes: 2 additions & 9 deletions tests/ImageHashTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,11 @@ public function setup()
$this->imageHash = new ImageHash();
}

public function testHashStringInvalidFile()
public function testHashInvalidFile()
{
$this->expectException(NotReadableException::class);

$this->imageHash->hashFromString('nonImageString');
}

public function testHashStringSameAsFile()
{
$path = __DIR__ . '/images/forest/forest-low.jpg';

$this->assertSame($this->imageHash->hash($path), $this->imageHash->hashFromString(file_get_contents($path)));
$this->imageHash->hash('nonImageString');
}

public function testHexdecForNegativeIntegers()
Expand Down
4 changes: 2 additions & 2 deletions tests/ImageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ class ImageTest extends TestCase
public static function setUpBeforeClass()
{
if (extension_loaded('gmp')) {
echo "INFO: gmp extension loaded" . PHP_EOL;
echo 'INFO: gmp extension loaded' . PHP_EOL;
} else {
echo "INFO: gmp extension not loaded" . PHP_EOL;
echo 'INFO: gmp extension not loaded' . PHP_EOL;
}
}

Expand Down

0 comments on commit 2041592

Please sign in to comment.