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
The getting started page (http://phpunit.de/getting-started.html) actually shows a test failure because $amount is null when the test is run. I fixed this when I was testing it by simply adding a constructor in the Money class that set the $amount variable correctly.
The text was updated successfully, but these errors were encountered:
My assertion is simply that as a phpunit example, it should be a complete, yet small example. Adding the constructor would make it such a sample. I knew that the comments meant other code was supposed to be there, however I assumed that it would have enough code to actually test it. After all, it is on the getting started page. I don't want to grab the entire code if I can just test it with that little bitty bit.
The getting started page (http://phpunit.de/getting-started.html) actually shows a test failure because
$amount
isnull
when the test is run. I fixed this when I was testing it by simply adding a constructor in theMoney
class that set the$amount
variable correctly.The text was updated successfully, but these errors were encountered: