Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php declare(strict_types=1); namespace Intervention\Image\Tests\Unit\Geometry\Factorie..

Decoded Output download

<?php

declare(strict_types=1);

namespace Intervention\Image\Tests\Unit\Geometry\Factories;

use Intervention\Image\Geometry\Factories\BezierFactory;
use Intervention\Image\Geometry\Factories\CircleFactory;
use Intervention\Image\Geometry\Factories\Drawable;
use Intervention\Image\Geometry\Factories\EllipseFactory;
use Intervention\Image\Geometry\Factories\LineFactory;
use Intervention\Image\Geometry\Factories\PolygonFactory;
use Intervention\Image\Geometry\Factories\RectangleFactory;
use Intervention\Image\Tests\BaseTestCase;

final class DrawableTest extends BaseTestCase
{
    public function testBezier(): void
    {
        $this->assertInstanceOf(BezierFactory::class, Drawable::bezier());
    }

    public function testCircle(): void
    {
        $this->assertInstanceOf(CircleFactory::class, Drawable::circle());
    }

    public function testEllipse(): void
    {
        $this->assertInstanceOf(EllipseFactory::class, Drawable::ellipse());
    }

    public function testLine(): void
    {
        $this->assertInstanceOf(LineFactory::class, Drawable::line());
    }

    public function testPolygon(): void
    {
        $this->assertInstanceOf(PolygonFactory::class, Drawable::polygon());
    }

    public function testRectangle(): void
    {
        $this->assertInstanceOf(RectangleFactory::class, Drawable::rectangle());
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

declare(strict_types=1);

namespace Intervention\Image\Tests\Unit\Geometry\Factories;

use Intervention\Image\Geometry\Factories\BezierFactory;
use Intervention\Image\Geometry\Factories\CircleFactory;
use Intervention\Image\Geometry\Factories\Drawable;
use Intervention\Image\Geometry\Factories\EllipseFactory;
use Intervention\Image\Geometry\Factories\LineFactory;
use Intervention\Image\Geometry\Factories\PolygonFactory;
use Intervention\Image\Geometry\Factories\RectangleFactory;
use Intervention\Image\Tests\BaseTestCase;

final class DrawableTest extends BaseTestCase
{
    public function testBezier(): void
    {
        $this->assertInstanceOf(BezierFactory::class, Drawable::bezier());
    }

    public function testCircle(): void
    {
        $this->assertInstanceOf(CircleFactory::class, Drawable::circle());
    }

    public function testEllipse(): void
    {
        $this->assertInstanceOf(EllipseFactory::class, Drawable::ellipse());
    }

    public function testLine(): void
    {
        $this->assertInstanceOf(LineFactory::class, Drawable::line());
    }

    public function testPolygon(): void
    {
        $this->assertInstanceOf(PolygonFactory::class, Drawable::polygon());
    }

    public function testRectangle(): void
    {
        $this->assertInstanceOf(RectangleFactory::class, Drawable::rectangle());
    }
}

Function Calls

None

Variables

None

Stats

MD5 b5f74b2e740fc5bef55e79207224a584
Eval Count 0
Decode Time 116 ms