Youshido\Tests\Library\Utilities\TypeUtilitiesTest::testGetPropertyValue PHP Метод

testGetPropertyValue() публичный Метод

    public function testGetPropertyValue()
    {
        $arrayData = (new TestObjectType())->getData();
        $this->assertEquals('John', TypeService::getPropertyValue($arrayData, 'name'));
        $this->assertEquals('John', TypeService::getPropertyValue((object) $arrayData, 'name'));
    }