{"action":"opened","issue":{"url":"https://api.github.com/repos/bozoh/moodle-mod_simplecertificate/issues/127","labels_url":"https://api.github.com/repos/bozoh/moodle-mod_simplecertificate/issues/127/labels{/name}","comments_url":"https://api.github.com/repos/bozoh/moodle-mod_simplecertificate/issues/127/comments","events_url":"https://api.github.com/repos/bozoh/moodle-mod_simplecertificate/issues/127/events","html_url":"https://github.com/bozoh/moodle-mod_simplecertificate/issues/127","id":89011222,"number":127,"title":"Unit test failure","user":{"login":"NeillM","id":1038050,"avatar_url":"https://avatars.githubusercontent.com/u/1038050?v=3","gravatar_id":"","url":"https://api.github.com/users/NeillM","html_url":"https://github.com/NeillM","followers_url":"https://api.github.com/users/NeillM/followers","following_url":"https://api.github.com/users/NeillM/following{/other_user}","gists_url":"https://api.github.com/users/NeillM/gists{/gist_id}","starred_url":"https://api.github.com/users/NeillM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NeillM/subscriptions","organizations_url":"https://api.github.com/users/NeillM/orgs","repos_url":"https://api.github.com/users/NeillM/repos","events_url":"https://api.github.com/users/NeillM/events{/privacy}","received_events_url":"https://api.github.com/users/NeillM/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-17T13:04:00Z","updated_at":"2015-06-17T13:04:00Z","closed_at":null,"body":"When trying to run all the unit tests for the plugin using the following command:\r\n```\r\nvendor\\bin\\phpunit --testsuite mod_simplecertificate_testsuite\r\n```\r\nI get the following errors, warnings and notices:\r\n\r\n```\r\nMoodle 2.7.8+ (Build: 20150521), mysqli\r\n\r\nNotice: Constant CLI_SCRIPT already defined in C:\\moodlesource\\moodle27\\mod\\simplecertificate\\tests\\restore_test.php on line 3\r\n\r\nWarning: require_once(../../../config.php): failed to open stream: No such file or directory in C:\\moodlesource\\moodle27\\mod\\simplecertificate\\tests\\restore_test.php on line 5\r\n\r\nFatal error: require_once(): Failed opening required '../../../config.php' (include_path='C:\\moodlesource\\moodle27/lib/zend;C:\\moodlesource\\moodle27/lib/pear;C:\\moodlesource\\moodle27\\vendor/phpunit/php-texttemplate;C:\\moodlesource\\moodle27\\vendor/phpunit/phpunit-mockobjects;C:\\moodlesource\\moodle27\\vendor/phpunit/php-timer;C:\\moodlesource\\moodle27\\vendor/phpunit/php-tokenstream;C:\\moodlesource\\moodle27\\vendor/phpunit/php-codecoverage;C:\\moodlesource\\moodle27\\vendor/phpunit/phpunit;C:\\moodlesource\\moodle27\\vendor/symfony/yaml;C:\\moodlesource\\moodle27\\vendor/phpunit/dbunit;C:\\moodlesource\\moodle27\\vendor/symfony/yaml;.;C:\\php\\pear') in C:\\moodlesource\\moodle27\\mod\\simplecertificate\\tests\\restore_test.php on line 5\r\n```\r\n\r\nThe restore_test.php file does not seem to be a phpunit test"}}