Closed jubianchi closed 9 years ago
Is it a bug? What about other asserters of the same group/family?
@Hywan as we discussed on IRC, this is a bug but we won't fix it because:
testedClass
asserterThis is a won't fix... I think
It's not a bug, it's a feature… More seriously, this behavior is the wanted behavior, because any other implementation/solution is too complex regards to value added.
Did other asserters behave like this also?
@Hywan some asserters are chainable, some other (like hasConstant
) are not.
Is it a lack of consistency?
@Hywan nop, it's a choice made to KISS see https://github.com/atoum/atoum/issues/388#issuecomment-66607966 and https://github.com/atoum/atoum/issues/388#issuecomment-66611281
Thanks :-).
Example:
This produces the following error:
If I comment the second
hasConstant
assertion, I get the following error:BTW, there is a workaround: