jDateTime icon indicating copy to clipboard operation
jDateTime copied to clipboard

Complete unit tests

Open afshinm opened this issue 11 years ago • 2 comments

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

afshinm avatar Jan 25 '13 10:01 afshinm

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.

sallar avatar Jan 25 '13 10:01 sallar

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.

afshinm avatar Jan 25 '13 10:01 afshinm