phpat
phpat copied to clipboard
[0.10] canOnlyDependOn
Hi!
Great job on 0.10!
Most of my tests included the canOnlyDependOn
assertion, which I guess is removed in 0.10
. Was this done on purpose and do you maybe have an alternative way of writing these rules? :)
Edit:
Ah. I guess I can nest it like this?
return PHPat::rule()
->classes(Selector::haveClassName('...'))
->shouldNotDependOn()
->classes(
Selector::NOT(
Selector::classname('...')
)
)