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 Sabre\DAV\FSExt; class DirectoryTest extends \..

Decoded Output download

<?php

declare(strict_types=1);

namespace Sabre\DAV\FSExt;

class DirectoryTest extends \PHPUnit\Framework\TestCase
{
    public function create()
    {
        return new Directory(\Sabre\TestUtil::SABRE_TEMPDIR);
    }

    public function testCreate()
    {
        $dir = $this->create();
        self::assertEquals(basename(\Sabre\TestUtil::SABRE_TEMPDIR), $dir->getName());
    }

    public function testChildExistDot()
    {
        $this->expectException('Sabre\DAV\Exception\Forbidden');
        $dir = $this->create();
        $dir->childExists('..');
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

declare(strict_types=1);

namespace Sabre\DAV\FSExt;

class DirectoryTest extends \PHPUnit\Framework\TestCase
{
    public function create()
    {
        return new Directory(\Sabre\TestUtil::SABRE_TEMPDIR);
    }

    public function testCreate()
    {
        $dir = $this->create();
        self::assertEquals(basename(\Sabre\TestUtil::SABRE_TEMPDIR), $dir->getName());
    }

    public function testChildExistDot()
    {
        $this->expectException('Sabre\DAV\Exception\Forbidden');
        $dir = $this->create();
        $dir->childExists('..');
    }
}

Function Calls

None

Variables

None

Stats

MD5 2557b8c5c4b6a4183c96d5b54b259c7d
Eval Count 0
Decode Time 109 ms