You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$t->is($option->getDefault(), array(), '->getDefault() returns an empty array if option is an array');
What should we do with bugs like this? Fix it in 1.5.x or we wait for 1.6.x and after I finish the integration of phpunit we fix it and backport to 1.5.x?
The text was updated successfully, but these errors were encountered:
PHPUnit brings up the errors nicely. The first assert fails because of an
acceptParameter
method bug.Description of
acceptParameter
describes how it should work, but the implementation doesn't do that:https://github.com/FriendsOfSymfony1/symfony1/blob/master/lib/command/sfCommandOption.class.php#L105-L110
I guess the implementation should something like this:
The
sfCommandOptionTest
test it, but because of[] == false
is true, the test don't fail.symfony1/test/unit/command/sfCommandOptionTest.php
Lines 89 to 90 in d9a1684
What should we do with bugs like this? Fix it in 1.5.x or we wait for 1.6.x and after I finish the integration of phpunit we fix it and backport to 1.5.x?
The text was updated successfully, but these errors were encountered: