phpdoc, phpunit, null injection throws exception