{"action":"created","issue":{"url":"https://api.github.com/repos/silverstripe/silverstripe-framework/issues/3958","labels_url":"https://api.github.com/repos/silverstripe/silverstripe-framework/issues/3958/labels{/name}","comments_url":"https://api.github.com/repos/silverstripe/silverstripe-framework/issues/3958/comments","events_url":"https://api.github.com/repos/silverstripe/silverstripe-framework/issues/3958/events","html_url":"https://github.com/silverstripe/silverstripe-framework/pull/3958","id":59559696,"number":3958,"title":"Update SapphireTestReporter.php","user":{"login":"azt3k","id":1156443,"avatar_url":"https://avatars.githubusercontent.com/u/1156443?v=3","gravatar_id":"","url":"https://api.github.com/users/azt3k","html_url":"https://github.com/azt3k","followers_url":"https://api.github.com/users/azt3k/followers","following_url":"https://api.github.com/users/azt3k/following{/other_user}","gists_url":"https://api.github.com/users/azt3k/gists{/gist_id}","starred_url":"https://api.github.com/users/azt3k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azt3k/subscriptions","organizations_url":"https://api.github.com/users/azt3k/orgs","repos_url":"https://api.github.com/users/azt3k/repos","events_url":"https://api.github.com/users/azt3k/events{/privacy}","received_events_url":"https://api.github.com/users/azt3k/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-03-02T22:08:59Z","updated_at":"2015-03-09T03:41:53Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/silverstripe/silverstripe-framework/pulls/3958","html_url":"https://github.com/silverstripe/silverstripe-framework/pull/3958","diff_url":"https://github.com/silverstripe/silverstripe-framework/pull/3958.diff","patch_url":"https://github.com/silverstripe/silverstripe-framework/pull/3958.patch"},"body":"- Updates code to be compatible with PHP 5.0.2\r\n- Allows the autoloader to be called so as composer can be used (PHPUnit PEAR install is now deprecated)\r\n\r\nhttp://php.net/manual/en/function.interface-exists.php\r\nhttp://php.net/manual/en/function.class-exists.php\r\nhttps://github.com/sebastianbergmann/phpunit/wiki/End-of-Life-for-PEAR-Installation-Method"},"comment":{"url":"https://api.github.com/repos/silverstripe/silverstripe-framework/issues/comments/77796081","html_url":"https://github.com/silverstripe/silverstripe-framework/pull/3958#issuecomment-77796081","issue_url":"https://api.github.com/repos/silverstripe/silverstripe-framework/issues/3958","id":77796081,"user":{"login":"azt3k","id":1156443,"avatar_url":"https://avatars.githubusercontent.com/u/1156443?v=3","gravatar_id":"","url":"https://api.github.com/users/azt3k","html_url":"https://github.com/azt3k","followers_url":"https://api.github.com/users/azt3k/followers","following_url":"https://api.github.com/users/azt3k/following{/other_user}","gists_url":"https://api.github.com/users/azt3k/gists{/gist_id}","starred_url":"https://api.github.com/users/azt3k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azt3k/subscriptions","organizations_url":"https://api.github.com/users/azt3k/orgs","repos_url":"https://api.github.com/users/azt3k/repos","events_url":"https://api.github.com/users/azt3k/events{/privacy}","received_events_url":"https://api.github.com/users/azt3k/received_events","type":"User","site_admin":false},"created_at":"2015-03-09T03:41:53Z","updated_at":"2015-03-09T03:41:53Z","body":"I tried using https://github.com/BetterBrief/vagrant-skeleton - master branch this was the result\r\n\r\n````bash\r\n[vagrant@localhost test]$ bash framework/sake dev/tests/DataObjectTest\r\nDATAOBJECTTEST\r\n\r\n--------------\r\n\r\n\r\nPHP Warning:  require_once(PHPUnit/Framework/TestResult.php): failed to open stream: No such file or directory in /home/vagrant/test/framework/dev/SapphireTestReporter.php on line 2\r\n\r\nWarning: require_once(PHPUnit/Framework/TestResult.php): failed to open stream: No such file or directory in /home/vagrant/test/framework/dev/SapphireTestReporter.php on line 2\r\nPHP Fatal error:  require_once(): Failed opening required 'PHPUnit/Framework/TestResult.php' (include_path='/home/vagrant/test/vendor/phpunit/php-text-template:/home/vagrant/test/vendor/phpunit/php-timer:/home/vagrant/test/vendor/phpunit/php-file-iterator:.:/home/vagrant/test/framework:/home/vagrant/test/framework/parsers:/home/vagrant/test/framework/thirdparty:.:/usr/share/pear:/usr/share/php') in /home/vagrant/test/framework/dev/SapphireTestReporter.php on line 2\r\n\r\nFatal error: require_once(): Failed opening required 'PHPUnit/Framework/TestResult.php' (include_path='/home/vagrant/test/vendor/phpunit/php-text-template:/home/vagrant/test/vendor/phpunit/php-timer:/home/vagrant/test/vendor/phpunit/php-file-iterator:.:/home/vagrant/test/framework:/home/vagrant/test/framework/parsers:/home/vagrant/test/framework/thirdparty:.:/usr/share/pear:/usr/share/php') in /home/vagrant/test/framework/dev/SapphireTestReporter.php on line 2\r\nPHP Warning:  Cookie 'alternativeDatabaseName' can't be set. The site started outputting content at line 64 in /home/vagrant/test/framework/dev/CliDebugView.php in /home/vagrant/test/framework/control/Cookie.php on line 117\r\n\r\nWarning: Cookie 'alternativeDatabaseName' can't be set. The site started outputting content at line 64 in /home/vagrant/test/framework/dev/CliDebugView.php in /home/vagrant/test/framework/control/Cookie.php on line 117\r\nPHP Warning:  Cookie 'alternativeDatabaseNameIv' can't be set. The site started outputting content at line 64 in /home/vagrant/test/framework/dev/CliDebugView.php in /home/vagrant/test/framework/control/Cookie.php on line 117\r\n\r\nWarning: Cookie 'alternativeDatabaseNameIv' can't be set. The site started outputting content at line 64 in /home/vagrant/test/framework/dev/CliDebugView.php in /home/vagrant/test/framework/control/Cookie.php on line 117\r\n[vagrant@localhost test]$ sed -i \"s/if(\\!class_exists('PHPUnit_Framework_TestResult', false)) require_once 'PHPUnit\\/Framework\\/TestResult.php';/if (\\!class_exists('PHPUnit_Framework_TestResult')) require_once 'PHPUnit\\/Framework\\/TestResult.php';/g\" framework/dev/SapphireTestReporter.php\r\n[vagrant@localhost test]$ sed -i \"s/if(\\!class_exists('PHPUnit_Framework_TestListener', false)) require_once 'PHPUnit\\/Framework\\/TestListener.php';/if (\\!interface_exists('PHPUnit_Framework_TestListener')) require_once 'PHPUnit\\/Framework\\/TestListener.php';/g\" framework/dev/SapphireTestReporter.php\r\n[vagrant@localhost test]$ bash framework/sake dev/tests/DataObjectTest\r\nDATAOBJECTTEST\r\n\r\n--------------\r\n\r\n\r\n..................................................\r\n\r\n ALL TESTS PASS\r\n\r\n50 tests run: 50 passes, 0 failures, and 0 incomplete\r\nMaximum memory usage: 61.2M\r\n\r\n\r\n\r\n\r\nTotal time: 5.54 seconds\r\n[vagrant@localhost test]$\r\n````"}}