martin-helmich/phpunit-json-assert

Drop the phpunit dependency

mdeboer opened this issue ยท 5 comments

With Symfony 4 there is no hardcoded phpunit dependency when using the phpunit bridge. Installing this package automatically installs phpunit as none is detected.

Using provide in the composer.json file doesn't work either to fake the phpunit installation.

This package depends on specific versions of PHPUnit (see the compatibility section in the README.md). Removing the PHPUnit dependency at this point would completely break version resolution (for example, without an explicit PHPUnit dependency, users of PHPUnit 5 would have this package upgrade to version 2.* on composer update, which actually requires PHPUnit >= 6 to work).

To sum up, that's a regretful "no" on this issue. I'm open to backwards-compatible suggestions, however.

@martin-helmich shouldn't conflict be used for such constraint? Define that 1.x branch conflicts with phpunit/phpunit >=6.0 and 2.x conflicts with <6.0.

@eXtreme That might just work; thanks for the suggestion. ๐Ÿ‘ I'm going to fool around a little bit with that as soon as I find the time.

Hi @martin-helmich ,

You library is really useful. However when used with Symfony solving this issue would highly be appreciated. The referenced fix by @mlazze could do the trick?!

De you still plan to maintain your library?

Cheers

Fixed in #16. Sorry for the delay. Using conflict as suggested by @eXtreme seems to work just fine.