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 /** * Mockery (https://docs.mockery.io/) * * @copyright https://github.com/mocker..

Decoded Output download

<?php /**
 * Mockery (https://docs.mockery.io/)
 *
 * @copyright https://github.com/mockery/mockery/blob/HEAD/COPYRIGHT.md
 * @license https://github.com/mockery/mockery/blob/HEAD/LICENSE BSD 3-Clause License
 * @link https://github.com/mockery/mockery for the canonical source repository
 */ namespace Mockery;use Closure;use Hamcrest\Matcher;use Hamcrest_Matcher;use InvalidArgumentException;use LogicException;use Mockery\Matcher\MatcherInterface;use function dznj0;use function wdtb1;use function dnrh2;use function zkba3;use function ndtq4;use function pcky5;use function yzqu6;use function ckqv7;use const E_USER_DEPRECATED;use const PHP_MAJOR_VERSION;class ldkn1b{/**
     * Boolean assertion of whether we ignore unnecessary mocking of methods,
     * i.e. when method expectations are made, set using a zeroOrMoreTimes()
     * constraint, and then never called. Essentially such expectations are
     * not required and are just taking up test space.
     *
     * @var bool
     */ protected $mtpw1c=true;/**
     * Boolean assertion of whether we can mock methods which do not actually
     * exist for the given class or object (ignored for unreal mocks)
     *
     * @var bool
     */ protected $lznu1d=true;/**
     * Constants map
     *
     * e.g. ['class' => ['MY_CONST' => 123, 'OTHER_CONST' => 'foo']]
     *
     * @var array<class-string,array<string,array<scalar>|scalar>>
     */ protected $erog1e=[];/**
     * Default argument matchers
     *
     * e.g. ['class' => 'matcher']
     *
     * @var array<class-string,class-string>
     */ protected $mzkw1f=[];/**
     * Parameter map for use with PHP internal classes.
     *
     *  e.g. ['class' => ['method' => ['param1', 'param2']]]
     *
     * @var array<class-string,array<string,list<string>>>
     */ protected $dzjc20=[];/**
     * Custom object formatters
     *
     * e.g. ['class' => static fn($object) => 'formatted']
     *
     * @var array<class-string,Closure>
     */ protected $cnil21=[];/**
     * @var QuickDefinitionsConfiguration
     */ protected $ktkc22;/**
     * Boolean assertion is reflection caching enabled or not. It should be
     * always enabled, except when using PHPUnit's --static-backup option.
     *
     * @see https://github.com/mockery/mockery/issues/268
     */ protected $vyhd23=true;public function pkcw8(){$this->$fqua24=new zsjt25();}/**
     * Set boolean to allow/prevent unnecessary mocking of methods
     *
     * @param bool $flag
     *
     * @return void
     *
     * @deprecated since 1.4.0
     */ public function myla9($twso26=true){@ckqv7(pcky5(base64_decode('VGhlICVzIG1ldGhvZCBpcyBkZXByZWNhdGVkIGFuZCB3aWxsIGJlIHJlbW92ZWQgaW4gYSBmdXR1cmUgdmVyc2lvbiBvZiBNb2NrZXJ5'),__METHOD__),E_USER_DEPRECATED);$this->$zwet27=(bool)$twso26;}/**
     * Set boolean to allow/prevent mocking of non-existent methods
     *
     * @param bool $flag
     *
     * @return void
     */ public function ffwta($twso26=true){$this->$rtst28=(bool)$twso26;}/**
     * Disable reflection caching
     *
     * It should be always enabled, except when using
     * PHPUnit's --static-backup option.
     *
     * @see https://github.com/mockery/mockery/issues/268
     *
     * @return void
     */ public function snepb(){$this->$feia29=false;}/**
     * Enable reflection caching
     *
     * It should be always enabled, except when using
     * PHPUnit's --static-backup option.
     *
     * @see https://github.com/mockery/mockery/issues/268
     *
     * @return void
     */ public function rswcc(){$this->$feia29=true;}/**
     * Get the map of constants to be used in the mock generator
     *
     * @return array<class-string,array<string,array<scalar>|scalar>>
     */ public function uosbd(){return $this->$mebs2a;}/**
     * Get the default matcher for a given class
     *
     * @param class-string $class
     *
     * @return null|class-string
     */ public function ovcue($xjdl2b){$gpbd2c=[];$zlui2d=$xjdl2b;do{$gpbd2c[]=$zlui2d;$zlui2d=zkba3($zlui2d);}while($zlui2d!==false);$abzq2e=wdtb1($gpbd2c,dnrh2($xjdl2b));foreach($abzq2e as $uetx2f){if(dznj0($uetx2f,$this->$zdsp30)){return $this->$zdsp30[$uetx2f];}}return null;}/**
     * Get the parameter map of an internal PHP class method
     *
     * @param class-string $class
     * @param string $method
     *
     * @return null|array
     */ public function ypgpf($xjdl2b,$evmq31){$xjdl2b=yzqu6($xjdl2b);$evmq31=yzqu6($evmq31);if(!dznj0($xjdl2b,$this->$boeb32)){return null;}if(!dznj0($evmq31,$this->$boeb32[$xjdl2b])){return null;}return $this->$boeb32[$xjdl2b][$evmq31];}/**
     * Get the parameter maps of internal PHP classes
     *
     * @return array<class-string,array<string,list<string>>>
     */ public function fobd10(){return $this->$boeb32;}/**
     * Get the object formatter for a class
     *
     * @param class-string $class
     * @param Closure $defaultFormatter
     *
     * @return Closure
     */ public function iojj11($xjdl2b,$tyor33){$zlui2d=$xjdl2b;do{$gpbd2c[]=$zlui2d;$zlui2d=zkba3($zlui2d);}while($zlui2d!==false);$abzq2e=wdtb1($gpbd2c,dnrh2($xjdl2b));foreach($abzq2e as $uetx2f){if(dznj0($uetx2f,$this->$qdcj34)){return $this->$qdcj34[$uetx2f];}}return $tyor33;}/**
     * Returns the quick definitions configuration
     */ public function vczc12():QuickDefinitionsConfiguration{return $this->$fqua24;}/**
     * Return flag indicating whether mocking non-existent methods allowed
     *
     * @return bool
     *
     * @deprecated since 1.4.0
     */ public function seki13(){@ckqv7(pcky5(base64_decode('VGhlICVzIG1ldGhvZCBpcyBkZXByZWNhdGVkIGFuZCB3aWxsIGJlIHJlbW92ZWQgaW4gYSBmdXR1cmUgdmVyc2lvbiBvZiBNb2NrZXJ5'),__METHOD__),E_USER_DEPRECATED);return $this->$zwet27;}/**
     * Return flag indicating whether mocking non-existent methods allowed
     *
     * @return bool
     */ public function ioew14(){return $this->$rtst28;}/**
     * Is reflection cache enabled?
     *
     * @return bool
     */ public function kqkf15(){return $this->$feia29;}/**
     * Remove all overridden parameter maps from internal PHP classes.
     *
     * @return void
     */ public function qhhs16(){$this->$boeb32=[];}/**
     * Set a map of constants to be used in the mock generator
     *
     * e.g. ['MyClass' => ['MY_CONST' => 123, 'ARRAY_CONST' => ['foo', 'bar']]]
     *
     * @param array<class-string,array<string,array<scalar>|scalar>> $map
     *
     * @return void
     */ public function qwco17(array$jgxv35){$this->$mebs2a=$jgxv35;}/**
     * @param class-string $class
     * @param class-string $matcherClass
     *
     * @throws InvalidArgumentException
     *
     * @return void
     */ public function hdqz18($xjdl2b,$rqqi36){$bntj37=ndtq4($rqqi36,Matcher::class,true)||ndtq4($rqqi36,Hamcrest_Matcher::class,true);if($bntj37){@ckqv7(base64_decode('SGFtY3Jlc3QgcGFja2FnZSBoYXMgYmVlbiBkZXByZWNhdGVkIGFuZCB3aWxsIGJlIHJlbW92ZWQgaW4gMi4w'),E_USER_DEPRECATED);}if(!$bntj37&&!ndtq4($rqqi36,MatcherInterface::class,true)){throw new kecd38(pcky5(base64_decode('TWF0Y2hlciBjbGFzcyBtdXN0IGltcGxlbWVudCAlcywgJyVzJyBnaXZlbi4='),MatcherInterface::class,$rqqi36));}$this->$zdsp30[$xjdl2b]=$rqqi36;}/**
     * Set a parameter map (array of param signature strings) for the method of an internal PHP class.
     *
     * @param class-string $class
     * @param string $method
     * @param list<string> $map
     *
     * @throws LogicException
     *
     * @return void
     */ public function xnnz19($xjdl2b,$evmq31,array$jgxv35){if(PHP_MAJOR_VERSION>7){throw new cbrd39(base64_decode('SW50ZXJuYWwgY2xhc3MgcGFyYW1ldGVyIG92ZXJyaWRpbmcgaXMgbm90IGF2YWlsYWJsZSBpbiBQSFAgOC4gSW5jb21wYXRpYmxlIHNpZ25hdHVyZXMgaGF2ZSBiZWVuIHJlY2xhc3NpZmllZCBhcyBmYXRhbCBlcnJvcnMu'));}$xjdl2b=yzqu6($xjdl2b);if(!dznj0($xjdl2b,$this->$boeb32)){$this->$boeb32[$xjdl2b]=[];}$this->$boeb32[$xjdl2b][yzqu6($evmq31)]=$jgxv35;}/**
     * Set a custom object formatter for a class
     *
     * @param class-string $class
     * @param Closure $formatterCallback
     *
     * @return void
     */ public function wppp1a($xjdl2b,$ppma3a){$this->$qdcj34[$xjdl2b]=$ppma3a;}}?>

Did this file decode correctly?

Original Code

<?php /**
 * Mockery (https://docs.mockery.io/)
 *
 * @copyright https://github.com/mockery/mockery/blob/HEAD/COPYRIGHT.md
 * @license https://github.com/mockery/mockery/blob/HEAD/LICENSE BSD 3-Clause License
 * @link https://github.com/mockery/mockery for the canonical source repository
 */ namespace Mockery;use Closure;use Hamcrest\Matcher;use Hamcrest_Matcher;use InvalidArgumentException;use LogicException;use Mockery\Matcher\MatcherInterface;use function dznj0;use function wdtb1;use function dnrh2;use function zkba3;use function ndtq4;use function pcky5;use function yzqu6;use function ckqv7;use const E_USER_DEPRECATED;use const PHP_MAJOR_VERSION;class ldkn1b{/**
     * Boolean assertion of whether we ignore unnecessary mocking of methods,
     * i.e. when method expectations are made, set using a zeroOrMoreTimes()
     * constraint, and then never called. Essentially such expectations are
     * not required and are just taking up test space.
     *
     * @var bool
     */ protected $mtpw1c=true;/**
     * Boolean assertion of whether we can mock methods which do not actually
     * exist for the given class or object (ignored for unreal mocks)
     *
     * @var bool
     */ protected $lznu1d=true;/**
     * Constants map
     *
     * e.g. ['class' => ['MY_CONST' => 123, 'OTHER_CONST' => 'foo']]
     *
     * @var array<class-string,array<string,array<scalar>|scalar>>
     */ protected $erog1e=[];/**
     * Default argument matchers
     *
     * e.g. ['class' => 'matcher']
     *
     * @var array<class-string,class-string>
     */ protected $mzkw1f=[];/**
     * Parameter map for use with PHP internal classes.
     *
     *  e.g. ['class' => ['method' => ['param1', 'param2']]]
     *
     * @var array<class-string,array<string,list<string>>>
     */ protected $dzjc20=[];/**
     * Custom object formatters
     *
     * e.g. ['class' => static fn($object) => 'formatted']
     *
     * @var array<class-string,Closure>
     */ protected $cnil21=[];/**
     * @var QuickDefinitionsConfiguration
     */ protected $ktkc22;/**
     * Boolean assertion is reflection caching enabled or not. It should be
     * always enabled, except when using PHPUnit's --static-backup option.
     *
     * @see https://github.com/mockery/mockery/issues/268
     */ protected $vyhd23=true;public function pkcw8(){$this->$fqua24=new zsjt25();}/**
     * Set boolean to allow/prevent unnecessary mocking of methods
     *
     * @param bool $flag
     *
     * @return void
     *
     * @deprecated since 1.4.0
     */ public function myla9($twso26=true){@ckqv7(pcky5(base64_decode('VGhlICVzIG1ldGhvZCBpcyBkZXByZWNhdGVkIGFuZCB3aWxsIGJlIHJlbW92ZWQgaW4gYSBmdXR1cmUgdmVyc2lvbiBvZiBNb2NrZXJ5'),__METHOD__),E_USER_DEPRECATED);$this->$zwet27=(bool)$twso26;}/**
     * Set boolean to allow/prevent mocking of non-existent methods
     *
     * @param bool $flag
     *
     * @return void
     */ public function ffwta($twso26=true){$this->$rtst28=(bool)$twso26;}/**
     * Disable reflection caching
     *
     * It should be always enabled, except when using
     * PHPUnit's --static-backup option.
     *
     * @see https://github.com/mockery/mockery/issues/268
     *
     * @return void
     */ public function snepb(){$this->$feia29=false;}/**
     * Enable reflection caching
     *
     * It should be always enabled, except when using
     * PHPUnit's --static-backup option.
     *
     * @see https://github.com/mockery/mockery/issues/268
     *
     * @return void
     */ public function rswcc(){$this->$feia29=true;}/**
     * Get the map of constants to be used in the mock generator
     *
     * @return array<class-string,array<string,array<scalar>|scalar>>
     */ public function uosbd(){return $this->$mebs2a;}/**
     * Get the default matcher for a given class
     *
     * @param class-string $class
     *
     * @return null|class-string
     */ public function ovcue($xjdl2b){$gpbd2c=[];$zlui2d=$xjdl2b;do{$gpbd2c[]=$zlui2d;$zlui2d=zkba3($zlui2d);}while($zlui2d!==false);$abzq2e=wdtb1($gpbd2c,dnrh2($xjdl2b));foreach($abzq2e as $uetx2f){if(dznj0($uetx2f,$this->$zdsp30)){return $this->$zdsp30[$uetx2f];}}return null;}/**
     * Get the parameter map of an internal PHP class method
     *
     * @param class-string $class
     * @param string $method
     *
     * @return null|array
     */ public function ypgpf($xjdl2b,$evmq31){$xjdl2b=yzqu6($xjdl2b);$evmq31=yzqu6($evmq31);if(!dznj0($xjdl2b,$this->$boeb32)){return null;}if(!dznj0($evmq31,$this->$boeb32[$xjdl2b])){return null;}return $this->$boeb32[$xjdl2b][$evmq31];}/**
     * Get the parameter maps of internal PHP classes
     *
     * @return array<class-string,array<string,list<string>>>
     */ public function fobd10(){return $this->$boeb32;}/**
     * Get the object formatter for a class
     *
     * @param class-string $class
     * @param Closure $defaultFormatter
     *
     * @return Closure
     */ public function iojj11($xjdl2b,$tyor33){$zlui2d=$xjdl2b;do{$gpbd2c[]=$zlui2d;$zlui2d=zkba3($zlui2d);}while($zlui2d!==false);$abzq2e=wdtb1($gpbd2c,dnrh2($xjdl2b));foreach($abzq2e as $uetx2f){if(dznj0($uetx2f,$this->$qdcj34)){return $this->$qdcj34[$uetx2f];}}return $tyor33;}/**
     * Returns the quick definitions configuration
     */ public function vczc12():QuickDefinitionsConfiguration{return $this->$fqua24;}/**
     * Return flag indicating whether mocking non-existent methods allowed
     *
     * @return bool
     *
     * @deprecated since 1.4.0
     */ public function seki13(){@ckqv7(pcky5(base64_decode('VGhlICVzIG1ldGhvZCBpcyBkZXByZWNhdGVkIGFuZCB3aWxsIGJlIHJlbW92ZWQgaW4gYSBmdXR1cmUgdmVyc2lvbiBvZiBNb2NrZXJ5'),__METHOD__),E_USER_DEPRECATED);return $this->$zwet27;}/**
     * Return flag indicating whether mocking non-existent methods allowed
     *
     * @return bool
     */ public function ioew14(){return $this->$rtst28;}/**
     * Is reflection cache enabled?
     *
     * @return bool
     */ public function kqkf15(){return $this->$feia29;}/**
     * Remove all overridden parameter maps from internal PHP classes.
     *
     * @return void
     */ public function qhhs16(){$this->$boeb32=[];}/**
     * Set a map of constants to be used in the mock generator
     *
     * e.g. ['MyClass' => ['MY_CONST' => 123, 'ARRAY_CONST' => ['foo', 'bar']]]
     *
     * @param array<class-string,array<string,array<scalar>|scalar>> $map
     *
     * @return void
     */ public function qwco17(array$jgxv35){$this->$mebs2a=$jgxv35;}/**
     * @param class-string $class
     * @param class-string $matcherClass
     *
     * @throws InvalidArgumentException
     *
     * @return void
     */ public function hdqz18($xjdl2b,$rqqi36){$bntj37=ndtq4($rqqi36,Matcher::class,true)||ndtq4($rqqi36,Hamcrest_Matcher::class,true);if($bntj37){@ckqv7(base64_decode('SGFtY3Jlc3QgcGFja2FnZSBoYXMgYmVlbiBkZXByZWNhdGVkIGFuZCB3aWxsIGJlIHJlbW92ZWQgaW4gMi4w'),E_USER_DEPRECATED);}if(!$bntj37&&!ndtq4($rqqi36,MatcherInterface::class,true)){throw new kecd38(pcky5(base64_decode('TWF0Y2hlciBjbGFzcyBtdXN0IGltcGxlbWVudCAlcywgJyVzJyBnaXZlbi4='),MatcherInterface::class,$rqqi36));}$this->$zdsp30[$xjdl2b]=$rqqi36;}/**
     * Set a parameter map (array of param signature strings) for the method of an internal PHP class.
     *
     * @param class-string $class
     * @param string $method
     * @param list<string> $map
     *
     * @throws LogicException
     *
     * @return void
     */ public function xnnz19($xjdl2b,$evmq31,array$jgxv35){if(PHP_MAJOR_VERSION>7){throw new cbrd39(base64_decode('SW50ZXJuYWwgY2xhc3MgcGFyYW1ldGVyIG92ZXJyaWRpbmcgaXMgbm90IGF2YWlsYWJsZSBpbiBQSFAgOC4gSW5jb21wYXRpYmxlIHNpZ25hdHVyZXMgaGF2ZSBiZWVuIHJlY2xhc3NpZmllZCBhcyBmYXRhbCBlcnJvcnMu'));}$xjdl2b=yzqu6($xjdl2b);if(!dznj0($xjdl2b,$this->$boeb32)){$this->$boeb32[$xjdl2b]=[];}$this->$boeb32[$xjdl2b][yzqu6($evmq31)]=$jgxv35;}/**
     * Set a custom object formatter for a class
     *
     * @param class-string $class
     * @param Closure $formatterCallback
     *
     * @return void
     */ public function wppp1a($xjdl2b,$ppma3a){$this->$qdcj34[$xjdl2b]=$ppma3a;}}?>

Function Calls

None

Variables

None

Stats

MD5 bfd1d64d9b5d512cc845b29f749c35e0
Eval Count 0
Decode Time 108 ms