27 require_once(dirname(dirname(dirname(__DIR__))) .
"/vendor/autoload.php");
32 public static function invokeObjectsMethodnameWith($object, $fun, array $args=array())
36 $method = $reflection->getMethod($fun);
37 $method->setAccessible(
true);
38 return $method->invokeArgs($object,$args);
41 public static function getObjectsProperty($object, $prop)
45 $property = $reflection->getProperty($prop);
46 $property->setAccessible(
true);
47 return $property->getValue($object);
50 public static function setObjectsProperty($object, $prop, $value)
54 $property = $reflection->getProperty($prop);
55 $property->setAccessible(
true);
56 $property->setValue($object, $value);