File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 1818 "require-dev" : {
1919 "composer/composer" : " ^1.1" ,
2020 "php-parallel-lint/php-parallel-lint" : " ~1.1.0" ,
21- "phpunit/phpunit" : " ^8.5" ,
21+ "phpunit/phpunit" : " ^8.5||^9.0 " ,
2222 "squizlabs/php_codesniffer" : " ~3.5.4"
2323 },
2424 "autoload" : {
Original file line number Diff line number Diff line change @@ -529,10 +529,15 @@ function ($args) use ($that) {
529529 $ that ->assertEquals (2 , count ($ repos ));
530530 $ prependedRepo = $ repos [0 ];
531531 $ that ->assertInstanceOf ('Composer\Repository\VcsRepository ' , $ prependedRepo );
532- $ that ->assertAttributeEquals (
532+ // Ugly, be we need to check a protected member variable and
533+ // PHPUnit decided that having the assertAttributeEquals
534+ // assertion to make that easy was a code smell.
535+ $ clazz = new \ReflectionClass ($ prependedRepo );
536+ $ url = $ clazz ->getProperty ('url ' );
537+ $ url ->setAccessible (true );
538+ $ that ->assertEquals (
533539 'https://github.com/furgas/composer-merge-plugin.git ' ,
534- 'url ' ,
535- $ prependedRepo
540+ $ url ->getValue ($ prependedRepo )
536541 );
537542 }
538543 );
You can’t perform that action at this time.
0 commit comments