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\DAVACL\Xml\Property; use Sabre\DAV; cla..
Decoded Output download
<?php
declare(strict_types=1);
namespace Sabre\DAVACL\Xml\Property;
use Sabre\DAV;
class AclRestrictionsTest extends \PHPUnit\Framework\TestCase
{
public function testConstruct()
{
$prop = new AclRestrictions();
self::assertInstanceOf('Sabre\DAVACL\Xml\Property\AclRestrictions', $prop);
}
public function testSerialize()
{
$prop = new AclRestrictions();
$xml = (new DAV\Server())->xml->write('{DAV:}root', $prop);
$expected = '<?xml version="1.0"?>
<d:root xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns"><d:grant-only/><d:no-invert/></d:root>';
self::assertXmlStringEqualsXmlString($expected, $xml);
}
}
Did this file decode correctly?
Original Code
<?php
declare(strict_types=1);
namespace Sabre\DAVACL\Xml\Property;
use Sabre\DAV;
class AclRestrictionsTest extends \PHPUnit\Framework\TestCase
{
public function testConstruct()
{
$prop = new AclRestrictions();
self::assertInstanceOf('Sabre\DAVACL\Xml\Property\AclRestrictions', $prop);
}
public function testSerialize()
{
$prop = new AclRestrictions();
$xml = (new DAV\Server())->xml->write('{DAV:}root', $prop);
$expected = '<?xml version="1.0"?>
<d:root xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns"><d:grant-only/><d:no-invert/></d:root>';
self::assertXmlStringEqualsXmlString($expected, $xml);
}
}
Function Calls
None |
Stats
MD5 | eb6d8c10343f2c34e377b12ee8a851d9 |
Eval Count | 0 |
Decode Time | 120 ms |