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 League\Plates\Tests\Template; use League\Plate..
Decoded Output download
<?php
declare(strict_types=1);
namespace League\Plates\Tests\Template;
use League\Plates\Template\FileExtension;
use PHPUnit\Framework\TestCase;
class FileExtensionTest extends TestCase
{
private $fileExtension;
protected function setUp(): void
{
$this->fileExtension = new FileExtension();
}
public function testCanCreateInstance()
{
$this->assertInstanceOf('League\Plates\Template\FileExtension', $this->fileExtension);
}
public function testSetFileExtension()
{
$this->assertInstanceOf('League\Plates\Template\FileExtension', $this->fileExtension->set('tpl'));
$this->assertSame('tpl', $this->fileExtension->get());
}
public function testSetNullFileExtension()
{
$this->assertInstanceOf('League\Plates\Template\FileExtension', $this->fileExtension->set(null));
$this->assertNull($this->fileExtension->get());
}
public function testGetFileExtension()
{
$this->assertSame('php', $this->fileExtension->get());
}
}
?>
Did this file decode correctly?
Original Code
<?php
declare(strict_types=1);
namespace League\Plates\Tests\Template;
use League\Plates\Template\FileExtension;
use PHPUnit\Framework\TestCase;
class FileExtensionTest extends TestCase
{
private $fileExtension;
protected function setUp(): void
{
$this->fileExtension = new FileExtension();
}
public function testCanCreateInstance()
{
$this->assertInstanceOf('League\Plates\Template\FileExtension', $this->fileExtension);
}
public function testSetFileExtension()
{
$this->assertInstanceOf('League\Plates\Template\FileExtension', $this->fileExtension->set('tpl'));
$this->assertSame('tpl', $this->fileExtension->get());
}
public function testSetNullFileExtension()
{
$this->assertInstanceOf('League\Plates\Template\FileExtension', $this->fileExtension->set(null));
$this->assertNull($this->fileExtension->get());
}
public function testGetFileExtension()
{
$this->assertSame('php', $this->fileExtension->get());
}
}
Function Calls
None |
Stats
MD5 | a77d61ce5b68a95f2cc60b47d38127ca |
Eval Count | 0 |
Decode Time | 102 ms |