jubianchi / atoum

The modern, simple and intuitive PHP 5.3+ unit testing framework.
Other
1 stars 1 forks source link

Bug with datetime #13

Open chanmix51 opened 10 years ago

chanmix51 commented 10 years ago
            ->datetime($this->newTestedInstance()->fromPg('2014-09-27 18:51:35.678406+00'))
            ->hasDateAndTime(2014, 09, 27, 18, 51, 35.678406)

fails. If I change the month from int 09 to int 9, it works. The failing message is: failed: Datetime is 2014-09-27 18:51:35 instead of 2014-00-27 18:51:35

Hywan commented 10 years ago

Hello :-),

Could you open the same issue on https://github.com/atoum/atoum please? This one is a fork.