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 Symfony package. * * (c) Fabien Potencier <fabien@..
Decoded Output download
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Console\Tests\Formatter;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Console\Formatter\NullOutputFormatterStyle;
/**
* @author Tien Xuan Vo <[email protected]>
*/
class NullOutputFormatterStyleTest extends TestCase
{
public function testApply()
{
$style = new NullOutputFormatterStyle();
$this->assertSame('foo', $style->apply('foo'));
}
public function testSetForeground()
{
$style = new NullOutputFormatterStyle();
$style->setForeground('black');
$this->assertSame('foo', $style->apply('foo'));
}
public function testSetBackground()
{
$style = new NullOutputFormatterStyle();
$style->setBackground('blue');
$this->assertSame('foo', $style->apply('foo'));
}
public function testOptions()
{
$style = new NullOutputFormatterStyle();
$style->setOptions(['reverse', 'conceal']);
$this->assertSame('foo', $style->apply('foo'));
$style->setOption('bold');
$this->assertSame('foo', $style->apply('foo'));
$style->unsetOption('reverse');
$this->assertSame('foo', $style->apply('foo'));
}
}
?>
Did this file decode correctly?
Original Code
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Console\Tests\Formatter;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Console\Formatter\NullOutputFormatterStyle;
/**
* @author Tien Xuan Vo <[email protected]>
*/
class NullOutputFormatterStyleTest extends TestCase
{
public function testApply()
{
$style = new NullOutputFormatterStyle();
$this->assertSame('foo', $style->apply('foo'));
}
public function testSetForeground()
{
$style = new NullOutputFormatterStyle();
$style->setForeground('black');
$this->assertSame('foo', $style->apply('foo'));
}
public function testSetBackground()
{
$style = new NullOutputFormatterStyle();
$style->setBackground('blue');
$this->assertSame('foo', $style->apply('foo'));
}
public function testOptions()
{
$style = new NullOutputFormatterStyle();
$style->setOptions(['reverse', 'conceal']);
$this->assertSame('foo', $style->apply('foo'));
$style->setOption('bold');
$this->assertSame('foo', $style->apply('foo'));
$style->unsetOption('reverse');
$this->assertSame('foo', $style->apply('foo'));
}
}
Function Calls
None |
Stats
MD5 | eeaad293958d7b55280eff611ea3400a |
Eval Count | 0 |
Decode Time | 87 ms |