[BUGFIX] Fix "Call to undefined method ...::getPrototype()"
When injecting dependencies that take prototype-scoped objects as
constructor parameter, the ``ProxyClassBuilder`` class tries to
instantiate these objects using the ``getPrototype`` method. This method
is apparently supposed to be implemented by the proxy class, but never
This results in a fatal error when the owning object is instantiated:
Fatal error: Call to undefined method My\Class::getPrototype() in ...
This commit fixes this behaviour by replacing the ``getPrototype`` call
with a simple constructor call and adds a (kind-of) simple functional test
for this behaviour.
Releases: master, 3.0, 2.3, 2.2