I\'m writing unit tests for a class that has both of these occurrences:
$eloquentobject->sub_property;
$eloquentobject[\'array item\'];