PHPUnit\Runner\CleverAndSmart\Unit\UtilTest::testGetInvisiblePropertyByMethod PHP Method

testGetInvisiblePropertyByMethod() public method

    public function testGetInvisiblePropertyByMethod()
    {
        $mother = new Mother();
        $child = new Child();
        $this->assertSame('private', Util::getInvisibleProperty($mother, 'invalidProperty', 'getPrivateProperty'));
        $this->assertSame('private', Util::getInvisibleProperty($child, 'invalidProperty', 'getPrivateProperty'));
        $this->assertSame('protected', Util::getInvisibleProperty($child, 'invalidProperty', 'getProtectedProperty'));
        $this->assertSame('public', Util::getInvisibleProperty($mother, 'invalidProperty', 'getPublicProperty'));
        $this->assertSame('public', Util::getInvisibleProperty($child, 'invalidProperty', 'getPublicProperty'));
    }