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 18
18
"require-dev" : {
19
19
"composer/composer" : " ^1.1" ,
20
20
"php-parallel-lint/php-parallel-lint" : " ~1.1.0" ,
21
- "phpunit/phpunit" : " ^8.5" ,
21
+ "phpunit/phpunit" : " ^8.5||^9.0 " ,
22
22
"squizlabs/php_codesniffer" : " ~3.5.4"
23
23
},
24
24
"autoload" : {
Original file line number Diff line number Diff line change @@ -529,10 +529,15 @@ function ($args) use ($that) {
529
529
$ that ->assertEquals (2 , count ($ repos ));
530
530
$ prependedRepo = $ repos [0 ];
531
531
$ 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 (
533
539
'https://github.com/furgas/composer-merge-plugin.git ' ,
534
- 'url ' ,
535
- $ prependedRepo
540
+ $ url ->getValue ($ prependedRepo )
536
541
);
537
542
}
538
543
);
You can’t perform that action at this time.
0 commit comments