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 class TestCase extends \PHPUnit_Framework_TestCase { protected function invoke(..
Decoded Output download
<?php
class TestCase extends \PHPUnit_Framework_TestCase
{
protected function invoke(&$object, $methodName, array $parameters = [])
{
$reflection = new \ReflectionClass(get_class($object));
$method = $reflection->getMethod($methodName);
$method->setAccessible(true);
return $method->invokeArgs($object, $parameters);
}
protected function getProperty(&$object, $propertyName)
{
$reflection = new \ReflectionClass(get_class($object));
$property = $reflection->getProperty($propertyName);
$property->setAccessible(true);
return $property->getValue($object);
}
protected function setPropertyValue(&$object, $propertyName, $value)
{
$reflection = new \ReflectionClass(get_class($object));
$property = $reflection->getProperty($propertyName);
$property->setAccessible(true);
return $property->setValue($object, $value);
}
}
?>
Did this file decode correctly?
Original Code
<?php
class TestCase extends \PHPUnit_Framework_TestCase
{
protected function invoke(&$object, $methodName, array $parameters = [])
{
$reflection = new \ReflectionClass(get_class($object));
$method = $reflection->getMethod($methodName);
$method->setAccessible(true);
return $method->invokeArgs($object, $parameters);
}
protected function getProperty(&$object, $propertyName)
{
$reflection = new \ReflectionClass(get_class($object));
$property = $reflection->getProperty($propertyName);
$property->setAccessible(true);
return $property->getValue($object);
}
protected function setPropertyValue(&$object, $propertyName, $value)
{
$reflection = new \ReflectionClass(get_class($object));
$property = $reflection->getProperty($propertyName);
$property->setAccessible(true);
return $property->setValue($object, $value);
}
}
Function Calls
None |
Stats
MD5 | 4274884e25540f381a68694416b3aa2d |
Eval Count | 0 |
Decode Time | 118 ms |