Use newInstanceWithoutConstructor when possible
Use newInstanceWithoutConstructor when possible

Comment says

// We have to use this dirty trick instead of ReflectionClass::newInstanceWithoutConstructor()
// because of https://github.com/sebastianbergmann/phpunit-mock-objects/issues/154

As I see the only reason to use unserialize here is internal classes (or not?). So how about using unserialize for internal classes and newInstanceWithoutConstructor for other?
Darhazer/phpunit-mock-objects,awhale/phpunit-mock-objects,PeeHaa/phpunit-mock-objects,JeroenDeDauw/phpunit-mock-objects,stefk/phpunit-mock-objects