/** * Wrapper for VarAtPath utility. * * @see Hw\BasicsBundle\Util\VarAtPath::get() * @param mixed $var * @param string $path * @return mixed */ public static function getVarAtPath($var, $path) { return VarAtPath::get($var, $path); }
/** * Checks to throw an exception if the array key doesn't exist. * * @expectedException \OutOfBoundsException */ public function testArrayInvalidKeyException() { $object = new TestObject(); VarAtPath::get($object, 'getPrivateProperty.invalidKey'); }