Skip to content
This repository has been archived by the owner on Jan 24, 2021. It is now read-only.

Commit

Permalink
Remove old GIF samples
Browse files Browse the repository at this point in the history
  • Loading branch information
stil committed Oct 14, 2016
1 parent 6be66a0 commit 7685384
Show file tree
Hide file tree
Showing 13 changed files with 1 addition and 1,744 deletions.
51 changes: 1 addition & 50 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,53 +3,4 @@

class TestCase extends \PHPUnit_Framework_TestCase
{
protected $testGifs = [
'test1' => 'https://i.imgur.com/QWFJQR2.gif',
'test2' => 'https://i.imgur.com/eCSiYLY.gif',
'test3' => 'https://i.imgur.com/ay0AAt5.gif',
'test4' => 'https://i.imgur.com/NRv75UE.gif',
'test5' => 'https://i.imgur.com/a6u20G3.gif',
'test6' => 'https://i.imgur.com/pd32IDd.gif'
];

public function setUp()
{
foreach ($this->testGifs as $name => $url) {
$path = __DIR__."/gifs/$name.gif";
if (file_exists($path)) {
continue;
}

$ch = curl_init($url);
$fp = fopen($path, 'w');
curl_setopt($ch, CURLOPT_FILE, $fp);
curl_exec($ch);
curl_close($ch);
fclose($fp);
}
}

protected function createDirOrClear($dir)
{
if (!is_dir($dir)) {
mkdir($dir, null, true);
} else {
foreach (glob("$dir/*") as $file) {
unlink($file);
}
}
}

protected function loadChecksums($checksumPath, &$checksums)
{
if (file_exists($checksumPath)) {
$hasChecksums = true;
$checksums = json_decode(file_get_contents($checksumPath), true);
} else {
$hasChecksums = false;
$checksums = [];
}

return $hasChecksums;
}
}
}
22 changes: 0 additions & 22 deletions tests/gifs/test1.render.json

This file was deleted.

22 changes: 0 additions & 22 deletions tests/gifs/test1.split.json

This file was deleted.

22 changes: 0 additions & 22 deletions tests/gifs/test2.render.json

This file was deleted.

22 changes: 0 additions & 22 deletions tests/gifs/test2.split.json

This file was deleted.

18 changes: 0 additions & 18 deletions tests/gifs/test3.render.json

This file was deleted.

18 changes: 0 additions & 18 deletions tests/gifs/test3.split.json

This file was deleted.

169 changes: 0 additions & 169 deletions tests/gifs/test4.render.json

This file was deleted.

Loading

0 comments on commit 7685384

Please sign in to comment.