padraic/mutagenesis — Issue #7: PHP Fatal error:  Call to a member function generate() on a non-object in /usr/share/php/Mutagenesis/Runner/Base.php on line 102
Author: bayandin
Created: 2012-03-05 10:00:04+00:00
State: open

I'm installed the Mutagenesis, tried to launch

$ mutagenesis --src="./" --tests="./protected/tests"

And got the message:

Stand by...Mutation Testing commencing.

PHP Warning: require(Mutagenesis/Utility/TestTimeAnalyser.php): failed to open stream: No such file or directory in /usr/share/php/Mutagenesis/Loader.php on line 135
PHP Stack trace:
PHP 1. {main}() /usr/bin/mutagenesis:0
PHP 2. Mutagenesis\Console::main() /usr/bin/mutagenesis:13
PHP 3. Mutagenesis\Runner\Base->execute() /usr/share/php/Mutagenesis/Console.php:77
PHP 4. Mutagenesis\Loader->loadClass() /usr/share/php/Mutagenesis/Console.php:0
PHP Fatal error: require(): Failed opening required 'Mutagenesis/Utility/TestTimeAnalyser.php' (include_path='.:/usr/share/php:/usr/share/pear') in /usr/share/php/Mutagenesis/Loader.php on line 135
PHP Stack trace:
PHP 1. {main}() /usr/bin/mutagenesis:0
PHP 2. Mutagenesis\Console::main() /usr/bin/mutagenesis:13
PHP 3. Mutagenesis\Runner\Base->execute() /usr/share/php/Mutagenesis/Console.php:77
PHP 4. Mutagenesis\Loader->loadClass() /usr/share/php/Mutagenesis/Console.php:0

$ ls -lA /usr/share/php/Mutagenesis/Utility/
total 32
-rw-r--r-- 1 root root 8818 2012-03-05 16:26 Diff.php
-rw-r--r-- 1 root root 2099 2012-03-05 16:26 Job.php
-rw-r--r-- 1 root root 4422 2012-03-05 16:26 Process.php
-rw-r--r-- 1 root root 4695 2012-03-05 16:26 Runkit.php

File 'TestTimeAnalyser.php' is realy absent.
Ok, copied TestTimeAnalyser.php from source dir of Mutagenesis:

$ cp ~/mutagenesis/library/Mutagenesis/Utility/TestTimeAnalyser.php /usr/share/php/Mutagenesis/Utility/

Tried one more time:

$ mutagenesis --src="./" --tests="./protected/tests"

Got a lot of notices and one fatal error:
Stand by...Mutation Testing commencing.

PHP Notice: Undefined index: class in /usr/share/php/Mutagenesis/Adapter/Phpunit.php on line 69
PHP Stack trace:
PHP 1. {main}() /usr/bin/mutagenesis:0
PHP 2. Mutagenesis\Console::main() /usr/bin/mutagenesis:13
PHP 3. Mutagenesis\Runner\Base->execute() /usr/share/php/Mutagenesis/Console.php:77
PHP 4. Mutagenesis\Adapter\Phpunit->runTests() /usr/share/php/Mutagenesis/Runner/Base.php:99
PHP Notice: Undefined index: class in /usr/share/php/Mutagenesis/Adapter/Phpunit.php on line 69
PHP Stack trace:
PHP 1. {main}() /usr/bin/mutagenesis:0
PHP 2. Mutagenesis\Console::main() /usr/bin/mutagenesis:13
PHP 3. Mutagenesis\Runner\Base->execute() /usr/share/php/Mutagenesis/Console.php:77
PHP 4. Mutagenesis\Adapter\Phpunit->runTests() /usr/share/php/Mutagenesis/Runner/Base.php:99
PHP Notice: Undefined index: class in /usr/share/php/Mutagenesis/Adapter/Phpunit.php on line 69
PHP Stack trace:
PHP 1. {main}() /usr/bin/mutagenesis:0
PHP 2. Mutagenesis\Console::main() /usr/bin/mutagenesis:13
PHP 3. Mutagenesis\Runner\Base->execute() /usr/share/php/Mutagenesis/Console.php:77
PHP 4. Mutagenesis\Adapter\Phpunit->runTests() /usr/share/php/Mutagenesis/Runner/Base.php:99
PHP Notice: Undefined index: class in /usr/share/php/Mutagenesis/Adapter/Phpunit.php on line 69
PHP Stack trace:
PHP 1. {main}() /usr/bin/mutagenesis:0
PHP 2. Mutagenesis\Console::main() /usr/bin/mutagenesis:13
PHP 3. Mutagenesis\Runner\Base->execute() /usr/share/php/Mutagenesis/Console.php:77
PHP 4. Mutagenesis\Adapter\Phpunit->runTests() /usr/share/php/Mutagenesis/Runner/Base.php:99
PHP Notice: Undefined index: class in /usr/share/php/Mutagenesis/Adapter/Phpunit.php on line 69
PHP Stack trace:
PHP 1. {main}() /usr/bin/mutagenesis:0
PHP 2. Mutagenesis\Console::main() /usr/bin/mutagenesis:13
PHP 3. Mutagenesis\Runner\Base->execute() /usr/share/php/Mutagenesis/Console.php:77
PHP 4. Mutagenesis\Adapter\Phpunit->runTests() /usr/share/php/Mutagenesis/Runner/Base.php:99
PHP Notice: Undefined index: class in /usr/share/php/Mutagenesis/Adapter/Phpunit.php on line 69
PHP Stack trace:
PHP 1. {main}() /usr/bin/mutagenesis:0
PHP 2. Mutagenesis\Console::main() /usr/bin/mutagenesis:13
PHP 3. Mutagenesis\Runner\Base->execute() /usr/share/php/Mutagenesis/Console.php:77
PHP 4. Mutagenesis\Adapter\Phpunit->runTests() /usr/share/php/Mutagenesis/Runner/Base.php:99
PHP Notice: Undefined index: class in /usr/share/php/Mutagenesis/Adapter/Phpunit.php on line 69
PHP Stack trace:
PHP 1. {main}() /usr/bin/mutagenesis:0
PHP 2. Mutagenesis\Console::main() /usr/bin/mutagenesis:13
PHP 3. Mutagenesis\Runner\Base->execute() /usr/share/php/Mutagenesis/Console.php:77
PHP 4. Mutagenesis\Adapter\Phpunit->runTests() /usr/share/php/Mutagenesis/Runner/Base.php:99
PHP Notice: Undefined index: class in /usr/share/php/Mutagenesis/Adapter/Phpunit.php on line 69
PHP Stack trace:
PHP 1. {main}() /usr/bin/mutagenesis:0
PHP 2. Mutagenesis\Console::main() /usr/bin/mutagenesis:13
PHP 3. Mutagenesis\Runner\Base->execute() /usr/share/php/Mutagenesis/Console.php:77
PHP 4. Mutagenesis\Adapter\Phpunit->runTests() /usr/share/php/Mutagenesis/Runner/Base.php:99
PHP Notice: Undefined index: class in /usr/share/php/Mutagenesis/Adapter/Phpunit.php on line 69
PHP Stack trace:
PHP 1. {main}() /usr/bin/mutagenesis:0
PHP 2. Mutagenesis\Console::main() /usr/bin/mutagenesis:13
PHP 3. Mutagenesis\Runner\Base->execute() /usr/share/php/Mutagenesis/Console.php:77
PHP 4. Mutagenesis\Adapter\Phpunit->runTests() /usr/share/php/Mutagenesis/Runner/Base.php:99
PHP Notice: Undefined index: class in /usr/share/php/Mutagenesis/Adapter/Phpunit.php on line 69
PHP Stack trace:
PHP 1. {main}() /usr/bin/mutagenesis:0
PHP 2. Mutagenesis\Console::main() /usr/bin/mutagenesis:13
PHP 3. Mutagenesis\Runner\Base->execute() /usr/share/php/Mutagenesis/Console.php:77
PHP 4. Mutagenesis\Adapter\Phpunit->runTests() /usr/share/php/Mutagenesis/Runner/Base.php:99
PHP Notice: Undefined index: class in /usr/share/php/Mutagenesis/Adapter/Phpunit.php on line 69
PHP Stack trace:
PHP 1. {main}() /usr/bin/mutagenesis:0
PHP 2. Mutagenesis\Console::main() /usr/bin/mutagenesis:13
PHP 3. Mutagenesis\Runner\Base->execute() /usr/share/php/Mutagenesis/Console.php:77
PHP 4. Mutagenesis\Adapter\Phpunit->runTests() /usr/share/php/Mutagenesis/Runner/Base.php:99
PHP Notice: Undefined index: class in /usr/share/php/Mutagenesis/Adapter/Phpunit.php on line 69
PHP Stack trace:
PHP 1. {main}() /usr/bin/mutagenesis:0
PHP 2. Mutagenesis\Console::main() /usr/bin/mutagenesis:13
PHP 3. Mutagenesis\Runner\Base->execute() /usr/share/php/Mutagenesis/Console.php:77
PHP 4. Mutagenesis\Adapter\Phpunit->runTests() /usr/share/php/Mutagenesis/Runner/Base.php:99
PHP Notice: Undefined variable: job in /usr/share/php/Mutagenesis/Runner/Base.php on line 102
PHP Stack trace:
PHP 1. {main}() /usr/bin/mutagenesis:0
PHP 2. Mutagenesis\Console::main() /usr/bin/mutagenesis:13
PHP 3. Mutagenesis\Runner\Base->execute() /usr/share/php/Mutagenesis/Console.php:77
PHP Fatal error: Call to a member function generate() on a non-object in /usr/share/php/Mutagenesis/Runner/Base.php on line 102
PHP Stack trace:
PHP 1. {main}() /usr/bin/mutagenesis:0
PHP 2. Mutagenesis\Console::main() /usr/bin/mutagenesis:13
PHP 3. Mutagenesis\Runner\Base->execute() /usr/share/php/Mutagenesis/Console.php:77