properly build mocks with current phpunit to avoid problems with constructor

this will fix https://github.com/phpcr/phpcr-utils/pull/95#issuecomment-31371244