diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 65c1c504..5d7ae107 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -10,22 +10,6 @@ jobs: php-versions: ['8.0'] name: Testing on PHP ${{ matrix.php-versions }} steps: - - name: Run PHP code - shell: php {0} - run: | - > 24) & 0xFF; - $r = ($value >> 16) & 0xFF; - $g = ($value >> 8) & 0xFF; - $b = $value & 0xFF; - $a1 = (float) round(1 - $a / 127, 2); - $a2 = round(1 - $a / 127, 2); - $a3 = 1 - $a / 127; - var_dump($a); - var_dump($a1); - var_dump($a2); - var_dump($a3); - name: 'Checkout Project' uses: actions/checkout@v2 - name: 'Setup Environment' diff --git a/tests/Drivers/Gd/Modifiers/ResizeModifierTest.php b/tests/Drivers/Gd/Modifiers/ResizeModifierTest.php index d8b03872..ad4a4a9c 100644 --- a/tests/Drivers/Gd/Modifiers/ResizeModifierTest.php +++ b/tests/Drivers/Gd/Modifiers/ResizeModifierTest.php @@ -23,7 +23,7 @@ class ResizeModifierTest extends TestCase $this->assertColor(255, 0, 0, 1, $image->pickColor(150, 70)); $this->assertColor(0, 255, 0, 1, $image->pickColor(125, 70)); $this->assertColor(0, 0, 255, 1, $image->pickColor(130, 54)); - $transparent = $image->pickColor(150, 45); + $transparent = $image->pickColor(170, 30); $this->assertEquals(2130706432, $transparent->toInt()); $this->assertTransparency($transparent); }