sebastianbergmann on 9.3
Closes #4417 (compare)
sebastianbergmann on master
Closes #4417 Merge branch '9.3' (compare)
Hi. 8.3.4 -> 8.3.5 broke a whole bunch of tests. I've got this method to create a mock guzzle client which will expect a sequence of requests and return a related sequence of responses.
Works fine in 8.3.4. However, 8.3.5 throws this error:-
PHPUnit\Framework\InvalidParameterGroupException: Parameter group #0 must be an array or Traversable, got object /Users/paul_court/devel/hotelmap/hm-tps/src/tests/Infrastructure/OAuth/OktaClientTest.php:39 /Users/paul_court/devel/hotelmap/hm-tps/src/tests/Infrastructure/OAuth/OktaClientTest.php:51
enableProxyingToOriginalMethods()in the first place is that I'm trying to mock a class whose parent implements magic methods, and I need those to work.
Hi! Recently we updated our php version from 7.0.x to 7.3.9 and I'm struggling to get the Dockerfile to run tests in CI to work without warnings/errors.
I keep seeing the following warnings no matter what I try:
Warning: DOMDocument::schemaValidate(): Invalid Schema in /***/***/***/vendor/phpunit/phpunit/src/Util/Configuration.php on line 945
Warning - The configuration file did not pass validation!
failed to load external entity "/***/***/***/vendor/phpunit/phpunit/phpunit.xsd"
Failed to locate the main schema resource at '/***/***/***/vendor/phpunit/phpunit/phpunit.xsd'.
It worked fine before using php 7.0.x & phpunit 4.8.26, we now use php 7.3.9 & phpunit 8.3.5.
It also works fine on our own development machines...
Does anyone have an idea what could be going on?
php -mto this gist: https://gist.github.com/gevalo1/de30abd6856a4bd52ad88b3d9bd03d6e
I have a method that accepts a param, like
public function foo($param) and I had a test that checked if the param was
false, expecting an exception.
Now, with new typed PHP I can set my
public function foo(MyClass $param) and my test now shows me in my IDE that I'm not sending the right param type.
false? That will help keep checking in the future to see if by any chance the function changes to
public function foo(?MyClass $param)