fixed PEAR config / installation
closes https://github.com/padraic/mutagenesis/issues/4
After successfully installing Mutagenesis, this error appears (caused by the WIP refactoring?):
All initial checks successful! The mutagenic slime has been activated.
>
> Parse error: syntax error, unexpected ':' in - on line 6
>
Stand by...Mutation Testing commencing.
PHP Fatal error: Uncaught exception 'Exception' with message 'Log file could not be read' in /usr/local/Cellar/php/5.3.6/lib/php/Mutagenesis/Utility/TestTimeAnalyser.php:32
Stack trace:
#0 /usr/local/Cellar/php/5.3.6/lib/php/Mutagenesis/Runner/Base.php(66): Mutagenesis\Utility\TestTimeAnalyser->__construct('/var/folders/32...')
#1 /usr/local/Cellar/php/5.3.6/lib/php/Mutagenesis/Console.php(77): Mutagenesis\Runner\Base->execute()
#2 /usr/local/Cellar/php/5.3.6/bin/mutagenesis(13): Mutagenesis\Console::main()
#3 {main}
thrown in /usr/local/Cellar/php/5.3.6/lib/php/Mutagenesis/Utility/TestTimeAnalyser.php on line 32
Fatal error: Uncaught exception 'Exception' with message 'Log file could not be read' in /usr/local/Cellar/php/5.3.6/lib/php/Mutagenesis/Utility/TestTimeAnalyser.php on line 32
Exception: Log file could not be read in /usr/local/Cellar/php/5.3.6/lib/php/Mutagenesis/Utility/TestTimeAnalyser.php on line 32
Call Stack:
0.0023 631552 1. {main}() /usr/local/Cellar/php/5.3.6/bin/mutagenesis:0
0.0031 729424 2. Mutagenesis\Console::main(???, ???) /usr/local/Cellar/php/5.3.6/bin/mutagenesis:13
0.0042 945560 3. Mutagenesis\Runner\Base->execute() /usr/local/Cellar/php/5.3.6/lib/php/Mutagenesis/Console.php:77
0.0598 1405664 4. Mutagenesis\Utility\TestTimeAnalyser->__construct(string(64)) /usr/local/Cellar/php/5.3.6/lib/php/Mutagenesis/Runner/Base.php:66
Refactoring error ;). Ran out of time to finish a change. Usually fix them quickly but we're having a debate in Zend Framework land. I should have master operational at the weekend.
Paddy
On 9 Aug 2011, at 09:04, pminnieur [email protected] wrote:
closes https://github.com/padraic/mutagenesis/issues/4
After successfully installing Mutagenesis, this error appears (caused by the WIP refactoring?):
All initial checks successful! The mutagenic slime has been activated.
Parse error: syntax error, unexpected ':' in - on line 6
Stand by...Mutation Testing commencing.
PHP Fatal error: Uncaught exception 'Exception' with message 'Log file could not be read' in /usr/local/Cellar/php/5.3.6/lib/php/Mutagenesis/Utility/TestTimeAnalyser.php:32 Stack trace: #0 /usr/local/Cellar/php/5.3.6/lib/php/Mutagenesis/Runner/Base.php(66): Mutagenesis\Utility\TestTimeAnalyser->__construct('/var/folders/32...') #1 /usr/local/Cellar/php/5.3.6/lib/php/Mutagenesis/Console.php(77): Mutagenesis\Runner\Base->execute() #2 /usr/local/Cellar/php/5.3.6/bin/mutagenesis(13): Mutagenesis\Console::main() #3 {main} thrown in /usr/local/Cellar/php/5.3.6/lib/php/Mutagenesis/Utility/TestTimeAnalyser.php on line 32
Fatal error: Uncaught exception 'Exception' with message 'Log file could not be read' in /usr/local/Cellar/php/5.3.6/lib/php/Mutagenesis/Utility/TestTimeAnalyser.php on line 32
Exception: Log file could not be read in /usr/local/Cellar/php/5.3.6/lib/php/Mutagenesis/Utility/TestTimeAnalyser.php on line 32
Call Stack: 0.0023 631552 1. {main}() /usr/local/Cellar/php/5.3.6/bin/mutagenesis:0 0.0031 729424 2. Mutagenesis\Console::main(???, ???) /usr/local/Cellar/php/5.3.6/bin/mutagenesis:13 0.0042 945560 3. Mutagenesis\Runner\Base->execute() /usr/local/Cellar/php/5.3.6/lib/php/Mutagenesis/Console.php:77 0.0598 1405664 4. Mutagenesis\Utility\TestTimeAnalyser->__construct(string(64)) /usr/local/Cellar/php/5.3.6/lib/php/Mutagenesis/Runner/Base.php:66
Reply to this email directly or view it on GitHub: https://github.com/padraic/mutagenesis/pull/5
If I could help you with some refactorings, just let me know what's left over, maybe I could help ;-)
Any update on getting this to work again?
Hi Sebastian,
Mutagenesis is being refitted so to speak - once Zend Framework land is in better shape. I'll have it back up and running properly in a few weeks.
Pádraic Brady
http://blog.astrumfutura.com http://www.survivethedeepend.com Zend Framework Community Review Team
From: sebastianbergmann [email protected] To: [email protected] Sent: Tuesday, September 6, 2011 8:27 PM Subject: Re: [mutagenesis] fixed PEAR config / installation (#5)
Even with these changes I cannot get mutagenesis to work:
➜ bankaccount git:(master) mutagenesis Mutagenesis: Mutation Testing for PHP
Notice: Undefined offset: 1 in /usr/local/php-5.4/lib/php/Mutagenesis/Utility/Process.php on line 126
Call Stack: 0.0004 280232 1. {main}() /usr/local/php-5.4/bin/mutagenesis:0 0.0016 351824 2. Mutagenesis\Console::main() /usr/local/php-5.4/bin/mutagenesis:13 0.0037 516008 3. Mutagenesis\Runner\Base->execute() /usr/local/php-5.4/lib/php/Mutagenesis/Console.php:77 0.0079 753776 4. Mutagenesis\Adapter\Phpunit->runTests() /usr/local/php-5.4/lib/php/Mutagenesis/Runner/Base.php:48 0.0083 766936 5. Mutagenesis\Adapter\Phpunit::execute() /usr/local/php-5.4/lib/php/Mutagenesis/Adapter/Phpunit.php:91 0.0087 791392 6. Mutagenesis\Utility\Process::run() /usr/local/php-5.4/lib/php/Mutagenesis/Adapter/Phpunit.php:107 0.0087 791592 7. Mutagenesis\Utility\Process::_getPhpBinary() /usr/local/php-5.4/lib/php/Mutagenesis/Utility/Process.php:82
All initial checks successful! The mutagenic slime has been activated.
> > Parse error: syntax error, unexpected ':' in - on line 6 > >
Stand by...Mutation Testing commencing.
Fatal error: Uncaught exception 'Exception' with message 'Log file could not be read' in /usr/local/php-5.4/lib/php/Mutagenesis/Utility/TestTimeAnalyser.php on line 32
Exception: Log file could not be read in /usr/local/php-5.4/lib/php/Mutagenesis/Utility/TestTimeAnalyser.php on line 32
Call Stack: 0.0004 280232 1. {main}() /usr/local/php-5.4/bin/mutagenesis:0 0.0016 351824 2. Mutagenesis\Console::main() /usr/local/php-5.4/bin/mutagenesis:13 0.0037 516008 3. Mutagenesis\Runner\Base->execute() /usr/local/php-5.4/lib/php/Mutagenesis/Console.php:77 0.0292 803832 4. Mutagenesis\Utility\TestTimeAnalyser->__construct() /usr/local/php-5.4/lib/php/Mutagenesis/Runner/Base.php:66
Reply to this email directly or view it on GitHub: https://github.com/padraic/mutagenesis/pull/5#issuecomment-2021291
Wish I read this sooner, I think I just did the same fix & pull request :-/.
When can we get one of these pull requests in?
Also can a tag be done, so in future there is a stable version for people to use if something is incomplete?
Thanks, E.