以下哪个更好:
function it_should_return_number_of_string_provided()
{
$this->add(1)->shouldReturn(1);
$this->add(1)->shouldNotReturn(2);
}
function it_should_return_number_of_string_provided()
{
$this->add(1)->shouldReturn(1);
}
即我应该同时测试阳性和阴性结果吗?