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 reliforp/reli-prof package. * * (c) sji <sji@sj-i..
Decoded Output download
<?php
/**
* This file is part of the reliforp/reli-prof package.
*
* (c) sji <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Reli\Inspector\Daemon\Reader\Context;
use Mockery;
use Reli\BaseTestCase;
use Reli\Inspector\Daemon\AutoContextRecovering;
use Reli\Inspector\Daemon\Reader\Controller\PhpReaderControllerInterface;
use Reli\Inspector\Daemon\Reader\Controller\PhpReaderControllerProtocol;
use Reli\Inspector\Daemon\Reader\Worker\PhpReaderEntryPoint;
use Reli\Inspector\Daemon\Reader\Worker\PhpReaderWorkerProtocol;
use Reli\Lib\Amphp\ContextCreatorInterface;
use Reli\Lib\Amphp\ContextInterface;
class PhpReaderContextCreatorTest extends BaseTestCase
{
public function testCreate()
{
$context = Mockery::mock(ContextInterface::class);
$context_creator = Mockery::mock(ContextCreatorInterface::class);
$context_creator->expects()
->create(
PhpReaderEntryPoint::class,
PhpReaderWorkerProtocol::class,
PhpReaderControllerProtocol::class
)
->andReturns($context)
;
$context->expects()->start();
$php_reader_context_creator = new PhpReaderContextCreator($context_creator);
$php_reader_controller = $php_reader_context_creator->create();
$php_reader_controller->start();
}
}
?>
Did this file decode correctly?
Original Code
<?php
/**
* This file is part of the reliforp/reli-prof package.
*
* (c) sji <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Reli\Inspector\Daemon\Reader\Context;
use Mockery;
use Reli\BaseTestCase;
use Reli\Inspector\Daemon\AutoContextRecovering;
use Reli\Inspector\Daemon\Reader\Controller\PhpReaderControllerInterface;
use Reli\Inspector\Daemon\Reader\Controller\PhpReaderControllerProtocol;
use Reli\Inspector\Daemon\Reader\Worker\PhpReaderEntryPoint;
use Reli\Inspector\Daemon\Reader\Worker\PhpReaderWorkerProtocol;
use Reli\Lib\Amphp\ContextCreatorInterface;
use Reli\Lib\Amphp\ContextInterface;
class PhpReaderContextCreatorTest extends BaseTestCase
{
public function testCreate()
{
$context = Mockery::mock(ContextInterface::class);
$context_creator = Mockery::mock(ContextCreatorInterface::class);
$context_creator->expects()
->create(
PhpReaderEntryPoint::class,
PhpReaderWorkerProtocol::class,
PhpReaderControllerProtocol::class
)
->andReturns($context)
;
$context->expects()->start();
$php_reader_context_creator = new PhpReaderContextCreator($context_creator);
$php_reader_controller = $php_reader_context_creator->create();
$php_reader_controller->start();
}
}
Function Calls
None |
Stats
MD5 | 4c9420c28c955377969e3c109b8d523b |
Eval Count | 0 |
Decode Time | 566 ms |