mirror of
https://github.com/Intervention/image.git
synced 2025-08-30 09:10:21 +02:00
Improve Driver Specializing Process (#1315)
Streamline driver specializing process of analyzers, modifers, encoders and decoders.
This commit is contained in:
@@ -21,6 +21,15 @@ abstract class BaseTestCase extends MockeryTestCase
|
||||
return file_get_contents($this->getTestResourcePath($filename));
|
||||
}
|
||||
|
||||
public function getTestResourcePointer($filename = 'test.jpg')
|
||||
{
|
||||
$pointer = fopen('php://temp', 'rw');
|
||||
fputs($pointer, $this->getTestResourceData($filename));
|
||||
rewind($pointer);
|
||||
|
||||
return $pointer;
|
||||
}
|
||||
|
||||
protected function assertColor($r, $g, $b, $a, ColorInterface $color)
|
||||
{
|
||||
$this->assertEquals([$r, $g, $b, $a], $color->toArray());
|
||||
|
Reference in New Issue
Block a user