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 /** * This file is part of the Carbon package. * * (c) Brian Nesbitt <brian@nesb..

Decoded Output download

<?php

/**
 * This file is part of the Carbon package.
 *
 * (c) Brian Nesbitt <[email protected]>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Tests\Carbon\Exceptions;

use Carbon\Exceptions\InvalidPeriodDateException;
use Tests\AbstractTestCase;

class InvalidPeriodDateExceptionTest extends AbstractTestCase
{
    public function testInvalidPeriodDateException(): void
    {
        $exception = new InvalidPeriodDateException($message = 'message');

        $this->assertSame($message, $exception->getMessage());
        $this->assertSame(0, $exception->getCode());
        $this->assertNull($exception->getPrevious());
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

/**
 * This file is part of the Carbon package.
 *
 * (c) Brian Nesbitt <[email protected]>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Tests\Carbon\Exceptions;

use Carbon\Exceptions\InvalidPeriodDateException;
use Tests\AbstractTestCase;

class InvalidPeriodDateExceptionTest extends AbstractTestCase
{
    public function testInvalidPeriodDateException(): void
    {
        $exception = new InvalidPeriodDateException($message = 'message');

        $this->assertSame($message, $exception->getMessage());
        $this->assertSame(0, $exception->getCode());
        $this->assertNull($exception->getPrevious());
    }
}

Function Calls

None

Variables

None

Stats

MD5 1ce8878acd3a246de9deedeb74b2aae7
Eval Count 0
Decode Time 103 ms