sallar / jDateTime

[UNMAINTAINED] Jalali DateTime Class for PHP
http://sallar.me/projects/jdatetime/
180 stars 61 forks source link

Complete unit tests #8

Open afshinm opened 11 years ago

afshinm commented 11 years ago

We should write unit tests for project, as far as you know there's only one unit test in the project that really do nothing: https://github.com/sallar/jDateTime/blob/master/Tests/JDateTimeTest.php#L19

sallar commented 11 years ago

Yes indeed. Unit tests are too important for this project because every merge or change can possibly break the whole script. But I'm so dumb when it comes to unit testing.

afshinm commented 11 years ago

Keep it simple, I think we could declare a local variable with a sample Gregorian datetime in setUp function and do all tests (e.g. Convert to Jalali date) in the JDateTimeTest.php file.