/
var
/
www
/
cobraambalaj
/
vendor
/
league
/
glide
/
tests
/
Manipulators
/
Helpers
/
/var/www/cobraambalaj/vendor/league/glide/tests/Manipulators/Helpers
mkdir
upload
Name
Size
Mode
Actions
ColorTest.php
1110
0644
edit
dl
rm
DimensionTest.php
1410
0644
edit
dl
rm
Edit:
/var/www/cobraambalaj/vendor/league/glide/tests/Manipulators/Helpers/ColorTest.php
(1110B)
<?php namespace League\Glide\Manipulators\Helpers; use PHPUnit\Framework\TestCase; class ColorTest extends TestCase { public function testThreeDigitColorCode() { $color = new Color('000'); $this->assertSame('rgba(0, 0, 0, 1)', $color->formatted()); } public function testFourDigitColorCode() { $color = new Color('5000'); $this->assertSame('rgba(0, 0, 0, 0.5)', $color->formatted()); } public function testSixDigitColorCode() { $color = new Color('000000'); $this->assertSame('rgba(0, 0, 0, 1)', $color->formatted()); } public function testEightDigitColorCode() { $color = new Color('50000000'); $this->assertSame('rgba(0, 0, 0, 0.5)', $color->formatted()); } public function testNamedColorCode() { $color = new Color('black'); $this->assertSame('rgba(0, 0, 0, 1)', $color->formatted()); } public function testUnknownColor() { $color = new Color('unknown'); $this->assertSame('rgba(255, 255, 255, 0)', $color->formatted()); } }
Save
cmd:
run