Hi.
In a scenario like the one below, where $foo and/or $baz return 00000:
# code
expect($foo)->notToBe('');
# more code
expect($baz)->notToBe('');
The error one gets (as expected) is:
Expected <value>""</value>, but got <value>"00000"</value>. (PhpSpec\Exception\Example\NotEqualException)
The fact that __FILE__ and __LINE__ is missing makes it painful for engineers to figure out where exactly the failure is. One has to resort to using var_dump, etc to get a clue.
This is basic yet fundamental info which should be included in the errors.
Hi. In a scenario like the one below, where
$foo
and/or$baz
return00000
:The error one gets (as expected) is:
The fact that
__FILE__
and__LINE__
is missing makes it painful for engineers to figure out where exactly the failure is. One has to resort to usingvar_dump
, etc to get a clue.This is basic yet fundamental info which should be included in the errors.