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); /* * This file is part of PHPUnit. * * (c) Sebastian Ber..
Decoded Output download
<?php declare(strict_types=1);
/*
* This file is part of PHPUnit.
*
* (c) Sebastian Bergmann <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\Framework\Constraint;
use function acos;
use function log;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\Small;
use PHPUnit\Framework\TestCase;
#[CoversClass(IsInfinite::class)]
#[CoversClass(Constraint::class)]
#[Small]
final class IsInfiniteTest extends TestCase
{
public function testCanBeEvaluated(): void
{
$constraint = new IsInfinite;
$this->assertTrue($constraint->evaluate(log(0), returnResult: true));
$this->assertFalse($constraint->evaluate(1, returnResult: true));
$this->assertFalse($constraint->evaluate(acos(2), returnResult: true));
}
public function testCanBeRepresentedAsString(): void
{
$this->assertSame('is infinite', (new IsInfinite)->toString());
}
public function testIsCountable(): void
{
$this->assertCount(1, (new IsInfinite));
}
}
?>
Did this file decode correctly?
Original Code
<?php declare(strict_types=1);
/*
* This file is part of PHPUnit.
*
* (c) Sebastian Bergmann <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\Framework\Constraint;
use function acos;
use function log;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\Small;
use PHPUnit\Framework\TestCase;
#[CoversClass(IsInfinite::class)]
#[CoversClass(Constraint::class)]
#[Small]
final class IsInfiniteTest extends TestCase
{
public function testCanBeEvaluated(): void
{
$constraint = new IsInfinite;
$this->assertTrue($constraint->evaluate(log(0), returnResult: true));
$this->assertFalse($constraint->evaluate(1, returnResult: true));
$this->assertFalse($constraint->evaluate(acos(2), returnResult: true));
}
public function testCanBeRepresentedAsString(): void
{
$this->assertSame('is infinite', (new IsInfinite)->toString());
}
public function testIsCountable(): void
{
$this->assertCount(1, (new IsInfinite));
}
}
Function Calls
None |
Stats
MD5 | e4a719eb46df250d90618b43b821f4a3 |
Eval Count | 0 |
Decode Time | 77 ms |