Halleck45 / MutaTesting

mutation testing tool for PHP
MIT License
65 stars 10 forks source link

Exception : Failed to parse time string #16

Open eXorus opened 10 years ago

eXorus commented 10 years ago

I try to launch MutaTesting but it doesn't work : php mutatesting.phar phpunit /home/xxx/php-mime-mail-parser/vendor/bin/phpunit /home/xxx/php-mime-mail-parser/test/eXorus/PhpMimeMailParser/ --report-html=/home/xxx/php-mime-mail-parser/file.html --options="-c phpunit.xml" Mutation testing tool for PHP, by Jean-François Lépine http://www.lepine.pro

Executing test suite... 5 tests executed (1520 assertions) OK Extracting tested files...

...

[Exception]
DateTime::__construct(): Failed to parse time string (1406641396) at position 8 (9): Unexpected character

mutate [--options="..."] [--processes="..."] [-rt|--report-text[="..."]] [-rh|--report-html[="..."]] [-bl|--bugs[="..."]] tool binary path

Halleck45 commented 10 years ago

Can you copy paste the details of exception please ?

vonglasow commented 8 years ago

Hello, I have the same error on my tests with

$ ../muta/vendor/bin/mutatesting phpunit ./vendor/bin/phpunit tests/phpunit -v
Mutation testing tool for PHP, by Jean-François Lépine <http://www.lepine.pro>

Executing test suite...
  4 tests executed (43 assertions)
  OK
Extracting tested files...

...

  [Exception]                                                                                                
  DateTime::__construct(): Failed to parse time string (1469203341) at position 7 (3): Unexpected character  

Exception trace:
 () at /var/www/dev/muta/vendor/halleck45/mutatesting/src/Hal/MutaTesting/Cache/UnitInfo.php:42
 DateTime->__construct() at /var/www/dev/muta/vendor/halleck45/mutatesting/src/Hal/MutaTesting/Cache/UnitInfo.php:42
 Hal\MutaTesting\Cache\UnitInfo->has() at /var/www/dev/muta/vendor/halleck45/mutatesting/src/Hal/MutaTesting/Command/RunMutatingCommand.php:130
 Hal\MutaTesting\Command\RunMutatingCommand->execute() at /var/www/dev/muta/vendor/symfony/console/Command/Command.php:259
 Symfony\Component\Console\Command\Command->run() at /var/www/dev/muta/vendor/symfony/console/Application.php:844
 Symfony\Component\Console\Application->doRunCommand() at /var/www/dev/muta/vendor/symfony/console/Application.php:192
 Symfony\Component\Console\Application->doRun() at /var/www/dev/muta/vendor/symfony/console/Application.php:123
 Symfony\Component\Console\Application->run() at /var/www/dev/muta/vendor/halleck45/mutatesting/bin/mutatesting:24

mutate [--options OPTIONS] [--processes PROCESSES] [-rt|--report-text [REPORT-TEXT]] [-rh|--report-html [REPORT-HTML]] [-bl|--bugs [BUGS]] [--] <tool> <binary> <path>