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 PhpCsFixer\Tests\Fixer\PhpUnit;use PhpCsFixer\Conf..

Decoded Output download

<?php declare(strict_types=1);namespace PhpCsFixer\Tests\Fixer\PhpUnit;use PhpCsFixer\ConfigurationException\InvalidFixerConfigurationException;use PhpCsFixer\Fixer\PhpUnit\PhpUnitTestCaseStaticMethodCallsFixer;use PhpCsFixer\Tests\Test\AbstractFixerTestCase;use PHPUnit\Framework\TestCase;/**
 * @author Filippo Tessarotto <[email protected]>
 *
 * @internal
 *
 * @covers \PhpCsFixer\Fixer\PhpUnit\PhpUnitTestCaseStaticMethodCallsFixer
 */ final class cuce8 extends pwnl9{public function rsyb0():void{$llqia=new afmb(TestCase::class);$jxpnc=$llqia->ttvwd(\ReflectionMethod::IS_PUBLIC);$zbooe=(new afmb(PhpUnitTestCaseStaticMethodCallsFixer::class))->fednf(base64_decode('U1RBVElDX01FVEhPRFM='));$vgwa10=[];foreach($jxpnc as $vila11){if($vila11->xfxj12()&&!isset($zbooe[$vila11->$qudr13])){$vgwa10[]=$vila11->$qudr13;}}self::quam14([],$vgwa10,sprintf(base64_decode('VGhlIGZvbGxvd2luZyBzdGF0aWMgbWV0aG9kcyBmcm9tICIlcyIgYXJlIG1pc3NpbmcgZnJvbSAiJXM6OiRzdGF0aWNNZXRob2RzIg=='),TestCase::class,PhpUnitTestCaseStaticMethodCallsFixer::class));}public function dulb1():void{$this->ejli15(InvalidFixerConfigurationException::class);$this->cggk16(base64_decode('L1VuZXhwZWN0ZWQgIm1ldGhvZHMiIGtleSwgZXhwZWN0ZWQgYW55IG9mICIuKiIsIGdvdCAiaW50ZWdlciMxMjMiXC4kLw=='));$this->$buql17->idum18([base64_decode('bWV0aG9kcw==')=>[123=>1]]);}public function zhax2():void{$this->ejli15(InvalidFixerConfigurationException::class);$this->cggk16(base64_decode('L1VuZXhwZWN0ZWQgdmFsdWUgZm9yIG1ldGhvZCAiYXNzZXJ0U2FtZSIsIGV4cGVjdGVkIGFueSBvZiAiLioiLCBnb3QgImludGVnZXIjMTIzIlwuJC8='));$this->$buql17->idum18([base64_decode('bWV0aG9kcw==')=>[base64_decode('YXNzZXJ0U2FtZQ==')=>123]]);}/**
     * @param array<string, mixed> $config
     *
     * @dataProvider provideFixCases
     */ public function afgn3(string $fcsw19,?string $xgve1a=null,array$ixfy1b=[]):void{$this->$buql17->idum18($ixfy1b);$this->dkpn1c($fcsw19,$xgve1a);}public static function gxxx4():iterable{yield[<<<'EOF'
                <?php
                class MyTest extends \PHPUnit_Framework_TestCase
                {
                    public function testBaseCase()
                    {
                        static::assertSame(1, 2);
                        static::markTestIncomplete('foo');
                        static::fail('foo');
                    }
                }
                EOF,<<<'EOF'
                <?php
                class MyTest extends \PHPUnit_Framework_TestCase
                {
                    public function testBaseCase()
                    {
                        $this->assertSame(1, 2);
                        $this->markTestIncomplete('foo');
                        $this->fail('foo');
                    }
                }
                EOF,];yield[<<<'EOF'
                <?php
                class MyTest extends \PHPUnit_Framework_TestCase
                {
                    public function testMocks()
                    {
                        $mock = $this->createMock(MyInterface::class);
                        $mock
                            ->expects(static::once())
                            ->method('run')
                            ->with(
                                static::identicalTo(1),
                                static::stringContains('foo')
                            )
                            ->will(static::onConsecutiveCalls(
                                static::returnSelf(),
                                static::throwException(new \Exception())
                            ))
                        ;
                    }
                }
                EOF,<<<'EOF'
                <?php
                class MyTest extends \PHPUnit_Framework_TestCase
                {
                    public function testMocks()
                    {
                        $mock = $this->createMock(MyInterface::class);
                        $mock
                            ->expects($this->once())
                            ->method('run')
                            ->with(
                                $this->identicalTo(1),
                                $this->stringContains('foo')
                            )
                            ->will($this->onConsecutiveCalls(
                                $this->returnSelf(),
                                $this->throwException(new \Exception())
                            ))
                        ;
                    }
                }
                EOF,];yield[<<<'EOF'
                <?php
                class MyTest extends \PHPUnit_Framework_TestCase
                {
                    public function testWeirdIndentation()
                    {
                        static
                        // @TODO
                            ::
                        assertSame
                        (1, 2);
                        // $this->markTestIncomplete('foo');
                        /*
                        $this->fail('foo');
                        */
                    }
                }
                EOF,<<<'EOF'
                <?php
                class MyTest extends \PHPUnit_Framework_TestCase
                {
                    public function testWeirdIndentation()
                    {
                        $this
                        // @TODO
                            ->
                        assertSame
                        (1, 2);
                        // $this->markTestIncomplete('foo');
                        /*
                        $this->fail('foo');
                        */
                    }
                }
                EOF,];yield[<<<'EOF'
                <?php
                class MyTest extends \PHPUnit_Framework_TestCase
                {
                    public function testBaseCase()
                    {
                        $this->assertSame(1, 2);
                        $this->markTestIncomplete('foo');
                        $this->fail('foo');

                        $lambda = function () {
                            $this->assertSame(1, 23);
                            self::assertSame(1, 23);
                            static::assertSame(1, 23);
                        };
                    }
                }
                EOF,<<<'EOF'
                <?php
                class MyTest extends \PHPUnit_Framework_TestCase
                {
                    public function testBaseCase()
                    {
                        $this->assertSame(1, 2);
                        self::markTestIncomplete('foo');
                        static::fail('foo');

                        $lambda = function () {
                            $this->assertSame(1, 23);
                            self::assertSame(1, 23);
                            static::assertSame(1, 23);
                        };
                    }
                }
                EOF,[base64_decode('Y2FsbF90eXBl')=>PhpUnitTestCaseStaticMethodCallsFixer::CALL_TYPE_THIS],];yield[<<<'EOF'
                <?php
                class MyTest extends \PHPUnit_Framework_TestCase
                {
                    public function testBaseCase()
                    {
                        self::assertSame(1, 2);
                        self::markTestIncomplete('foo');
                        self::fail('foo');
                    }
                }
                EOF,<<<'EOF'
                <?php
                class MyTest extends \PHPUnit_Framework_TestCase
                {
                    public function testBaseCase()
                    {
                        $this->assertSame(1, 2);
                        self::markTestIncomplete('foo');
                        static::fail('foo');
                    }
                }
                EOF,[base64_decode('Y2FsbF90eXBl')=>PhpUnitTestCaseStaticMethodCallsFixer::CALL_TYPE_SELF],];yield[<<<'EOF'
                <?php
                class MyTest extends \PHPUnit_Framework_TestCase
                {
                    public function testBaseCase()
                    {
                        $this->assertSame(1, 2);
                        $this->assertSame(1, 2);

                        static::setUpBeforeClass();
                        static::setUpBeforeClass();

                        $otherTest->setUpBeforeClass();
                        OtherTest::setUpBeforeClass();
                    }
                }
                EOF,<<<'EOF'
                <?php
                class MyTest extends \PHPUnit_Framework_TestCase
                {
                    public function testBaseCase()
                    {
                        static::assertSame(1, 2);
                        $this->assertSame(1, 2);

                        static::setUpBeforeClass();
                        $this->setUpBeforeClass();

                        $otherTest->setUpBeforeClass();
                        OtherTest::setUpBeforeClass();
                    }
                }
                EOF,[base64_decode('Y2FsbF90eXBl')=>PhpUnitTestCaseStaticMethodCallsFixer::CALL_TYPE_THIS,base64_decode('bWV0aG9kcw==')=>[base64_decode('c2V0VXBCZWZvcmVDbGFzcw==')=>PhpUnitTestCaseStaticMethodCallsFixer::CALL_TYPE_STATIC],],];yield[<<<'EOF'
                <?php
                class MyTest extends \PHPUnit_Framework_TestCase
                {
                    public static function foo()
                    {
                        $this->assertSame(1, 2);
                        self::assertSame(1, 2);
                        static::assertSame(1, 2);

                        $lambda = function () {
                            $this->assertSame(1, 2);
                            self::assertSame(1, 2);
                            static::assertSame(1, 2);
                        };
                    }

                    public function bar()
                    {
                        $lambda = static function () {
                            $this->assertSame(1, 2);
                            self::assertSame(1, 2);
                            static::assertSame(1, 2);
                        };

                        $myProphecy->setCount(0)->will(function () {
                            $this->getCount()->willReturn(0);
                        });
                    }

                    static public function baz()
                    {
                        $this->assertSame(1, 2);
                        self::assertSame(1, 2);
                        static::assertSame(1, 2);

                        $lambda = function () {
                            $this->assertSame(1, 2);
                            self::assertSame(1, 2);
                            static::assertSame(1, 2);
                        };
                    }

                    static final protected function xyz()
                    {
                        static::assertSame(1, 2);
                    }
                }
                EOF,null,[base64_decode('Y2FsbF90eXBl')=>PhpUnitTestCaseStaticMethodCallsFixer::CALL_TYPE_THIS,],];yield[<<<'EOF'
                <?php
                class MyTest extends \PHPUnit_Framework_TestCase
                {
                    public function foo()
                    {
                        $this->assertSame(1, 2);
                        $this->assertSame(1, 2);
                        $this->assertSame(1, 2);
                    }

                    public function bar()
                    {
                        $lambdaOne = static function () {
                            $this->assertSame(1, 21);
                            self::assertSame(1, 21);
                            static::assertSame(1, 21);
                        };

                        $lambdaTwo = function () {
                            $this->assertSame(1, 21);
                            self::assertSame(1, 21);
                            static::assertSame(1, 21);
                        };
                    }

                    public function baz2()
                    {
                        $this->assertSame(1, 22);
                        $this->assertSame(1, 22);
                        $this->assertSame(1, 22);
                        $this->assertSame(1, 23);
                    }

                }
                EOF,<<<'EOF'
                <?php
                class MyTest extends \PHPUnit_Framework_TestCase
                {
                    public function foo()
                    {
                        $this->assertSame(1, 2);
                        self::assertSame(1, 2);
                        static::assertSame(1, 2);
                    }

                    public function bar()
                    {
                        $lambdaOne = static function () {
                            $this->assertSame(1, 21);
                            self::assertSame(1, 21);
                            static::assertSame(1, 21);
                        };

                        $lambdaTwo = function () {
                            $this->assertSame(1, 21);
                            self::assertSame(1, 21);
                            static::assertSame(1, 21);
                        };
                    }

                    public function baz2()
                    {
                        $this->assertSame(1, 22);
                        self::assertSame(1, 22);
                        static::assertSame(1, 22);
                        STATIC::assertSame(1, 23);
                    }

                }
                EOF,[base64_decode('Y2FsbF90eXBl')=>PhpUnitTestCaseStaticMethodCallsFixer::CALL_TYPE_THIS,],];yield base64_decode('ZG8gbm90IGNoYW5nZSBjbGFzcyBwcm9wZXJ0eSBhbmQgbWV0aG9kIHNpZ25hdHVyZQ==')=>[<<<'EOF'
                <?php
                class FooTest extends TestCase
                {
                    public function foo()
                    {
                        $this->assertSame = 42;
                    }

                    public function assertSame($foo, $bar){}
                }
                EOF,];yield base64_decode('ZG8gbm90IGNoYW5nZSB3aGVuIG9ubHkgY2FzZSBpcyBkaWZmZXJlbnQ=')=>[<<<'EOF'
                <?php
                class FooTest extends TestCase
                {
                    public function foo()
                    {
                        STATIC::assertSame(1, 1);
                    }
                }
                EOF,];yield base64_decode('ZG8gbm90IGNyYXNoIG9uIGFic3RyYWN0IHN0YXRpYyBmdW5jdGlvbg==')=>[<<<'EOF'
                <?php
                abstract class FooTest extends TestCase
                {
                    abstract public static function dataProvider();
                }
                EOF,null,[base64_decode('Y2FsbF90eXBl')=>PhpUnitTestCaseStaticMethodCallsFixer::CALL_TYPE_THIS,],];yield base64_decode('aGFuZGxlICR0aGlzIHdpdGggZG91YmxlIGNvbG9uIGZvbGxvd2luZw==')=>[base64_decode('PD9waHAKICAgICAgICAgICAgICAgIGNsYXNzIEZvb1Rlc3QgZXh0ZW5kcyBUZXN0Q2FzZQogICAgICAgICAgICAgICAgewogICAgICAgICAgICAgICAgICAgIHB1YmxpYyBmdW5jdGlvbiB0ZXN0Rm9vKCkKICAgICAgICAgICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAgICAgICAgIHN0YXRpYzo6YXNzZXJ0VHJ1ZSh0cnVlKTsKICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICB9'),base64_decode('PD9waHAKICAgICAgICAgICAgICAgIGNsYXNzIEZvb1Rlc3QgZXh0ZW5kcyBUZXN0Q2FzZQogICAgICAgICAgICAgICAgewogICAgICAgICAgICAgICAgICAgIHB1YmxpYyBmdW5jdGlvbiB0ZXN0Rm9vKCkKICAgICAgICAgICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAgICAgICAgICR0aGlzOjphc3NlcnRUcnVlKHRydWUpOwogICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgIH0='),];}public function ejff5():void{$this->dkpn1c(base64_decode('PD9waHAKY2xhc3MgTXlUZXN0IGV4dGVuZHMgXFBIUFVuaXRfRnJhbWV3b3JrX1Rlc3RDYXNlCnsKICAgIHB1YmxpYyBmdW5jdGlvbiB0ZXN0QmFzZUNhc2UoKQogICAgewogICAgICAgIHN0YXRpYzo6YXNzZXJ0U2FtZSgxLCAyKTsKCiAgICAgICAgJGZvbyA9IG5ldyBjbGFzcygpIHsKICAgICAgICAgICAgcHVibGljIGZ1bmN0aW9uIGFzc2VydFNhbWUoJGEsICRiKQogICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAkdGhpcy0+YXNzZXJ0U2FtZSgxLCAyKTsKICAgICAgICAgICAgfQogICAgICAgIH07CiAgICB9Cn0='),base64_decode('PD9waHAKY2xhc3MgTXlUZXN0IGV4dGVuZHMgXFBIUFVuaXRfRnJhbWV3b3JrX1Rlc3RDYXNlCnsKICAgIHB1YmxpYyBmdW5jdGlvbiB0ZXN0QmFzZUNhc2UoKQogICAgewogICAgICAgICR0aGlzLT5hc3NlcnRTYW1lKDEsIDIpOwoKICAgICAgICAkZm9vID0gbmV3IGNsYXNzKCkgewogICAgICAgICAgICBwdWJsaWMgZnVuY3Rpb24gYXNzZXJ0U2FtZSgkYSwgJGIpCiAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgICR0aGlzLT5hc3NlcnRTYW1lKDEsIDIpOwogICAgICAgICAgICB9CiAgICAgICAgfTsKICAgIH0KfQ=='));}/**
     * @dataProvider provideFix81Cases
     *
     * @requires PHP 8.1
     */ public function bvtb6(string $fcsw19,?string $xgve1a=null):void{$this->dkpn1c($fcsw19,$xgve1a);}public static function idbl7():iterable{yield[base64_decode('PD9waHAKICAgICAgICAgICAgICAgIGNsYXNzIEZvb1Rlc3QgZXh0ZW5kcyBUZXN0Q2FzZQogICAgICAgICAgICAgICAgewogICAgICAgICAgICAgICAgICAgIHB1YmxpYyBmdW5jdGlvbiB0ZXN0Rm9vKCkKICAgICAgICAgICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAgICAgICAgICRhID0gJHRoaXM6OmFzc2VydFRydWUoLi4uKTsKICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIA=='),];}}?>

Did this file decode correctly?

Original Code

<?php declare(strict_types=1);namespace PhpCsFixer\Tests\Fixer\PhpUnit;use PhpCsFixer\ConfigurationException\InvalidFixerConfigurationException;use PhpCsFixer\Fixer\PhpUnit\PhpUnitTestCaseStaticMethodCallsFixer;use PhpCsFixer\Tests\Test\AbstractFixerTestCase;use PHPUnit\Framework\TestCase;/**
 * @author Filippo Tessarotto <[email protected]>
 *
 * @internal
 *
 * @covers \PhpCsFixer\Fixer\PhpUnit\PhpUnitTestCaseStaticMethodCallsFixer
 */ final class cuce8 extends pwnl9{public function rsyb0():void{$llqia=new \bafmb(TestCase::class);$jxpnc=$llqia->ttvwd(\ReflectionMethod::IS_PUBLIC);$zbooe=(new \bafmb(PhpUnitTestCaseStaticMethodCallsFixer::class))->fednf(base64_decode('U1RBVElDX01FVEhPRFM='));$vgwa10=[];foreach($jxpnc as $vila11){if($vila11->xfxj12()&&!isset($zbooe[$vila11->$qudr13])){$vgwa10[]=$vila11->$qudr13;}}self::quam14([],$vgwa10,sprintf(base64_decode('VGhlIGZvbGxvd2luZyBzdGF0aWMgbWV0aG9kcyBmcm9tICIlcyIgYXJlIG1pc3NpbmcgZnJvbSAiJXM6OiRzdGF0aWNNZXRob2RzIg=='),TestCase::class,PhpUnitTestCaseStaticMethodCallsFixer::class));}public function dulb1():void{$this->ejli15(InvalidFixerConfigurationException::class);$this->cggk16(base64_decode('L1VuZXhwZWN0ZWQgIm1ldGhvZHMiIGtleSwgZXhwZWN0ZWQgYW55IG9mICIuKiIsIGdvdCAiaW50ZWdlciMxMjMiXC4kLw=='));$this->$buql17->idum18([base64_decode('bWV0aG9kcw==')=>[123=>1]]);}public function zhax2():void{$this->ejli15(InvalidFixerConfigurationException::class);$this->cggk16(base64_decode('L1VuZXhwZWN0ZWQgdmFsdWUgZm9yIG1ldGhvZCAiYXNzZXJ0U2FtZSIsIGV4cGVjdGVkIGFueSBvZiAiLioiLCBnb3QgImludGVnZXIjMTIzIlwuJC8='));$this->$buql17->idum18([base64_decode('bWV0aG9kcw==')=>[base64_decode('YXNzZXJ0U2FtZQ==')=>123]]);}/**
     * @param array<string, mixed> $config
     *
     * @dataProvider provideFixCases
     */ public function afgn3(string $fcsw19,?string $xgve1a=null,array$ixfy1b=[]):void{$this->$buql17->idum18($ixfy1b);$this->dkpn1c($fcsw19,$xgve1a);}public static function gxxx4():iterable{yield[<<<'EOF'
                <?php
                class MyTest extends \PHPUnit_Framework_TestCase
                {
                    public function testBaseCase()
                    {
                        static::assertSame(1, 2);
                        static::markTestIncomplete('foo');
                        static::fail('foo');
                    }
                }
                EOF,<<<'EOF'
                <?php
                class MyTest extends \PHPUnit_Framework_TestCase
                {
                    public function testBaseCase()
                    {
                        $this->assertSame(1, 2);
                        $this->markTestIncomplete('foo');
                        $this->fail('foo');
                    }
                }
                EOF,];yield[<<<'EOF'
                <?php
                class MyTest extends \PHPUnit_Framework_TestCase
                {
                    public function testMocks()
                    {
                        $mock = $this->createMock(MyInterface::class);
                        $mock
                            ->expects(static::once())
                            ->method('run')
                            ->with(
                                static::identicalTo(1),
                                static::stringContains('foo')
                            )
                            ->will(static::onConsecutiveCalls(
                                static::returnSelf(),
                                static::throwException(new \Exception())
                            ))
                        ;
                    }
                }
                EOF,<<<'EOF'
                <?php
                class MyTest extends \PHPUnit_Framework_TestCase
                {
                    public function testMocks()
                    {
                        $mock = $this->createMock(MyInterface::class);
                        $mock
                            ->expects($this->once())
                            ->method('run')
                            ->with(
                                $this->identicalTo(1),
                                $this->stringContains('foo')
                            )
                            ->will($this->onConsecutiveCalls(
                                $this->returnSelf(),
                                $this->throwException(new \Exception())
                            ))
                        ;
                    }
                }
                EOF,];yield[<<<'EOF'
                <?php
                class MyTest extends \PHPUnit_Framework_TestCase
                {
                    public function testWeirdIndentation()
                    {
                        static
                        // @TODO
                            ::
                        assertSame
                        (1, 2);
                        // $this->markTestIncomplete('foo');
                        /*
                        $this->fail('foo');
                        */
                    }
                }
                EOF,<<<'EOF'
                <?php
                class MyTest extends \PHPUnit_Framework_TestCase
                {
                    public function testWeirdIndentation()
                    {
                        $this
                        // @TODO
                            ->
                        assertSame
                        (1, 2);
                        // $this->markTestIncomplete('foo');
                        /*
                        $this->fail('foo');
                        */
                    }
                }
                EOF,];yield[<<<'EOF'
                <?php
                class MyTest extends \PHPUnit_Framework_TestCase
                {
                    public function testBaseCase()
                    {
                        $this->assertSame(1, 2);
                        $this->markTestIncomplete('foo');
                        $this->fail('foo');

                        $lambda = function () {
                            $this->assertSame(1, 23);
                            self::assertSame(1, 23);
                            static::assertSame(1, 23);
                        };
                    }
                }
                EOF,<<<'EOF'
                <?php
                class MyTest extends \PHPUnit_Framework_TestCase
                {
                    public function testBaseCase()
                    {
                        $this->assertSame(1, 2);
                        self::markTestIncomplete('foo');
                        static::fail('foo');

                        $lambda = function () {
                            $this->assertSame(1, 23);
                            self::assertSame(1, 23);
                            static::assertSame(1, 23);
                        };
                    }
                }
                EOF,[base64_decode('Y2FsbF90eXBl')=>PhpUnitTestCaseStaticMethodCallsFixer::CALL_TYPE_THIS],];yield[<<<'EOF'
                <?php
                class MyTest extends \PHPUnit_Framework_TestCase
                {
                    public function testBaseCase()
                    {
                        self::assertSame(1, 2);
                        self::markTestIncomplete('foo');
                        self::fail('foo');
                    }
                }
                EOF,<<<'EOF'
                <?php
                class MyTest extends \PHPUnit_Framework_TestCase
                {
                    public function testBaseCase()
                    {
                        $this->assertSame(1, 2);
                        self::markTestIncomplete('foo');
                        static::fail('foo');
                    }
                }
                EOF,[base64_decode('Y2FsbF90eXBl')=>PhpUnitTestCaseStaticMethodCallsFixer::CALL_TYPE_SELF],];yield[<<<'EOF'
                <?php
                class MyTest extends \PHPUnit_Framework_TestCase
                {
                    public function testBaseCase()
                    {
                        $this->assertSame(1, 2);
                        $this->assertSame(1, 2);

                        static::setUpBeforeClass();
                        static::setUpBeforeClass();

                        $otherTest->setUpBeforeClass();
                        OtherTest::setUpBeforeClass();
                    }
                }
                EOF,<<<'EOF'
                <?php
                class MyTest extends \PHPUnit_Framework_TestCase
                {
                    public function testBaseCase()
                    {
                        static::assertSame(1, 2);
                        $this->assertSame(1, 2);

                        static::setUpBeforeClass();
                        $this->setUpBeforeClass();

                        $otherTest->setUpBeforeClass();
                        OtherTest::setUpBeforeClass();
                    }
                }
                EOF,[base64_decode('Y2FsbF90eXBl')=>PhpUnitTestCaseStaticMethodCallsFixer::CALL_TYPE_THIS,base64_decode('bWV0aG9kcw==')=>[base64_decode('c2V0VXBCZWZvcmVDbGFzcw==')=>PhpUnitTestCaseStaticMethodCallsFixer::CALL_TYPE_STATIC],],];yield[<<<'EOF'
                <?php
                class MyTest extends \PHPUnit_Framework_TestCase
                {
                    public static function foo()
                    {
                        $this->assertSame(1, 2);
                        self::assertSame(1, 2);
                        static::assertSame(1, 2);

                        $lambda = function () {
                            $this->assertSame(1, 2);
                            self::assertSame(1, 2);
                            static::assertSame(1, 2);
                        };
                    }

                    public function bar()
                    {
                        $lambda = static function () {
                            $this->assertSame(1, 2);
                            self::assertSame(1, 2);
                            static::assertSame(1, 2);
                        };

                        $myProphecy->setCount(0)->will(function () {
                            $this->getCount()->willReturn(0);
                        });
                    }

                    static public function baz()
                    {
                        $this->assertSame(1, 2);
                        self::assertSame(1, 2);
                        static::assertSame(1, 2);

                        $lambda = function () {
                            $this->assertSame(1, 2);
                            self::assertSame(1, 2);
                            static::assertSame(1, 2);
                        };
                    }

                    static final protected function xyz()
                    {
                        static::assertSame(1, 2);
                    }
                }
                EOF,null,[base64_decode('Y2FsbF90eXBl')=>PhpUnitTestCaseStaticMethodCallsFixer::CALL_TYPE_THIS,],];yield[<<<'EOF'
                <?php
                class MyTest extends \PHPUnit_Framework_TestCase
                {
                    public function foo()
                    {
                        $this->assertSame(1, 2);
                        $this->assertSame(1, 2);
                        $this->assertSame(1, 2);
                    }

                    public function bar()
                    {
                        $lambdaOne = static function () {
                            $this->assertSame(1, 21);
                            self::assertSame(1, 21);
                            static::assertSame(1, 21);
                        };

                        $lambdaTwo = function () {
                            $this->assertSame(1, 21);
                            self::assertSame(1, 21);
                            static::assertSame(1, 21);
                        };
                    }

                    public function baz2()
                    {
                        $this->assertSame(1, 22);
                        $this->assertSame(1, 22);
                        $this->assertSame(1, 22);
                        $this->assertSame(1, 23);
                    }

                }
                EOF,<<<'EOF'
                <?php
                class MyTest extends \PHPUnit_Framework_TestCase
                {
                    public function foo()
                    {
                        $this->assertSame(1, 2);
                        self::assertSame(1, 2);
                        static::assertSame(1, 2);
                    }

                    public function bar()
                    {
                        $lambdaOne = static function () {
                            $this->assertSame(1, 21);
                            self::assertSame(1, 21);
                            static::assertSame(1, 21);
                        };

                        $lambdaTwo = function () {
                            $this->assertSame(1, 21);
                            self::assertSame(1, 21);
                            static::assertSame(1, 21);
                        };
                    }

                    public function baz2()
                    {
                        $this->assertSame(1, 22);
                        self::assertSame(1, 22);
                        static::assertSame(1, 22);
                        STATIC::assertSame(1, 23);
                    }

                }
                EOF,[base64_decode('Y2FsbF90eXBl')=>PhpUnitTestCaseStaticMethodCallsFixer::CALL_TYPE_THIS,],];yield base64_decode('ZG8gbm90IGNoYW5nZSBjbGFzcyBwcm9wZXJ0eSBhbmQgbWV0aG9kIHNpZ25hdHVyZQ==')=>[<<<'EOF'
                <?php
                class FooTest extends TestCase
                {
                    public function foo()
                    {
                        $this->assertSame = 42;
                    }

                    public function assertSame($foo, $bar){}
                }
                EOF,];yield base64_decode('ZG8gbm90IGNoYW5nZSB3aGVuIG9ubHkgY2FzZSBpcyBkaWZmZXJlbnQ=')=>[<<<'EOF'
                <?php
                class FooTest extends TestCase
                {
                    public function foo()
                    {
                        STATIC::assertSame(1, 1);
                    }
                }
                EOF,];yield base64_decode('ZG8gbm90IGNyYXNoIG9uIGFic3RyYWN0IHN0YXRpYyBmdW5jdGlvbg==')=>[<<<'EOF'
                <?php
                abstract class FooTest extends TestCase
                {
                    abstract public static function dataProvider();
                }
                EOF,null,[base64_decode('Y2FsbF90eXBl')=>PhpUnitTestCaseStaticMethodCallsFixer::CALL_TYPE_THIS,],];yield base64_decode('aGFuZGxlICR0aGlzIHdpdGggZG91YmxlIGNvbG9uIGZvbGxvd2luZw==')=>[base64_decode('PD9waHAKICAgICAgICAgICAgICAgIGNsYXNzIEZvb1Rlc3QgZXh0ZW5kcyBUZXN0Q2FzZQogICAgICAgICAgICAgICAgewogICAgICAgICAgICAgICAgICAgIHB1YmxpYyBmdW5jdGlvbiB0ZXN0Rm9vKCkKICAgICAgICAgICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAgICAgICAgIHN0YXRpYzo6YXNzZXJ0VHJ1ZSh0cnVlKTsKICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICB9'),base64_decode('PD9waHAKICAgICAgICAgICAgICAgIGNsYXNzIEZvb1Rlc3QgZXh0ZW5kcyBUZXN0Q2FzZQogICAgICAgICAgICAgICAgewogICAgICAgICAgICAgICAgICAgIHB1YmxpYyBmdW5jdGlvbiB0ZXN0Rm9vKCkKICAgICAgICAgICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAgICAgICAgICR0aGlzOjphc3NlcnRUcnVlKHRydWUpOwogICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgIH0='),];}public function ejff5():void{$this->dkpn1c(base64_decode('PD9waHAKY2xhc3MgTXlUZXN0IGV4dGVuZHMgXFBIUFVuaXRfRnJhbWV3b3JrX1Rlc3RDYXNlCnsKICAgIHB1YmxpYyBmdW5jdGlvbiB0ZXN0QmFzZUNhc2UoKQogICAgewogICAgICAgIHN0YXRpYzo6YXNzZXJ0U2FtZSgxLCAyKTsKCiAgICAgICAgJGZvbyA9IG5ldyBjbGFzcygpIHsKICAgICAgICAgICAgcHVibGljIGZ1bmN0aW9uIGFzc2VydFNhbWUoJGEsICRiKQogICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAkdGhpcy0+YXNzZXJ0U2FtZSgxLCAyKTsKICAgICAgICAgICAgfQogICAgICAgIH07CiAgICB9Cn0='),base64_decode('PD9waHAKY2xhc3MgTXlUZXN0IGV4dGVuZHMgXFBIUFVuaXRfRnJhbWV3b3JrX1Rlc3RDYXNlCnsKICAgIHB1YmxpYyBmdW5jdGlvbiB0ZXN0QmFzZUNhc2UoKQogICAgewogICAgICAgICR0aGlzLT5hc3NlcnRTYW1lKDEsIDIpOwoKICAgICAgICAkZm9vID0gbmV3IGNsYXNzKCkgewogICAgICAgICAgICBwdWJsaWMgZnVuY3Rpb24gYXNzZXJ0U2FtZSgkYSwgJGIpCiAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgICR0aGlzLT5hc3NlcnRTYW1lKDEsIDIpOwogICAgICAgICAgICB9CiAgICAgICAgfTsKICAgIH0KfQ=='));}/**
     * @dataProvider provideFix81Cases
     *
     * @requires PHP 8.1
     */ public function bvtb6(string $fcsw19,?string $xgve1a=null):void{$this->dkpn1c($fcsw19,$xgve1a);}public static function idbl7():iterable{yield[base64_decode('PD9waHAKICAgICAgICAgICAgICAgIGNsYXNzIEZvb1Rlc3QgZXh0ZW5kcyBUZXN0Q2FzZQogICAgICAgICAgICAgICAgewogICAgICAgICAgICAgICAgICAgIHB1YmxpYyBmdW5jdGlvbiB0ZXN0Rm9vKCkKICAgICAgICAgICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAgICAgICAgICRhID0gJHRoaXM6OmFzc2VydFRydWUoLi4uKTsKICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIA=='),];}}?>

Function Calls

None

Variables

None

Stats

MD5 0b3a1ee90cc4646004921a6d3fed1375
Eval Count 0
Decode Time 116 ms