Skip to content

Commit

Permalink
Merge pull request #4 from ZHB/feature/tests
Browse files Browse the repository at this point in the history
Test create Gradient
  • Loading branch information
ZHB authored Oct 16, 2021
2 parents a7ef4c4 + b1ef906 commit 6e51320
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/WeatherGradient/GradientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,18 @@

class GradientTest extends TestCase
{
public function testCreateGradientFromColorArray(): void
{
$colors = [
10 => [0, 0, 0],
20 => [255, 255, 255],
];

$gradient = Gradient::fromColors($colors);

self::assertInstanceOf(Gradient::class, $gradient);
}

/**
* @dataProvider invalidColorNumberProvider
*/
Expand Down

0 comments on commit 6e51320

Please sign in to comment.