Programming Language PHP

Namespace Oro\Component\EntitySerializer

Class ConfigUtil

Method/Function getArrayValue

Total Examples 1

1 code examples of PHP Oro\Component\EntitySerializer\ConfigUtil::getArrayValue extracted from open source projects

Was this example useful?
0
                                                    public function testGetArrayValueWhenConfigValueIsUnexpectedType()
    {
        $this->expectException(\UnexpectedValueException::class);
        $this->expectExceptionMessage('Expected value of type "array, string or nothing", "integer" given.');

        $key = 'testKey';
        $config = [
            $key => 123,
        ];

        ConfigUtil::getArrayValue($config, $key);
    }
                                            
ConfigUtil's Other Methods