mirror of
https://github.com/Intervention/image.git
synced 2025-09-02 18:32:56 +02:00
Add test for Profile::class
This commit is contained in:
18
tests/Unit/Colors/ProfileTest.php
Normal file
18
tests/Unit/Colors/ProfileTest.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Intervention\Image\Tests\Unit\Colors;
|
||||
|
||||
use Intervention\Image\Colors\Profile;
|
||||
use Intervention\Image\Tests\BaseTestCase;
|
||||
|
||||
class ProfileTest extends BaseTestCase
|
||||
{
|
||||
public function testFromPath(): void
|
||||
{
|
||||
$profile = Profile::fromPath($this->getTestResourcePath());
|
||||
$this->assertInstanceOf(Profile::class, $profile);
|
||||
$this->assertTrue($profile->size() > 0);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user