{"id":4159,"date":"2014-03-30T08:45:54","date_gmt":"2014-03-30T08:45:54","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/phpunit-throws-uncaught-exception-phpunit_framework_exception-collection-of-common-programming-errors-2\/"},"modified":"2022-08-30T15:47:10","modified_gmt":"2022-08-30T15:47:10","slug":"phpunit-throws-uncaught-exception-phpunit_framework_exception-collection-of-common-programming-errors-2","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/phpunit-throws-uncaught-exception-phpunit_framework_exception-collection-of-common-programming-errors-2\/","title":{"rendered":"phpunit throws Uncaught exception &#39;PHPUnit_Framework_Exception-Collection of common programming errors"},"content":{"rendered":"<p>I have a Zend Framework project, and want to using unit testing to test it.<\/p>\n<p>In tests folder, I have the <code>phpunit.xml<\/code> as following;<\/p>\n<pre><code>\n\n    .\/\n\n\n\n    \n        ..\/application\/\n        \n            ..\/application\/\n            ..\/application\/Bootstrap.php\n            ..\/application\/controllers\/ErrorController.php\n        \n    \n\n\n\n    \n    \n\n<\/code><\/pre>\n<p>And I have <code>bootstrap.php<\/code> in \/tests\/application folder as follows:<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have a Zend Framework project, and want to using unit testing to test it. In tests folder, I have the phpunit.xml as following; .\/ ..\/application\/ ..\/application\/ ..\/application\/Bootstrap.php ..\/application\/controllers\/ErrorController.php And I have bootstrap.php in \/tests\/application folder as follows:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,8],"tags":[],"class_list":["post-4159","post","type-post","status-publish","format-standard","hentry","category-uncategorized","category-zend-framework"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4159","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=4159"}],"version-history":[{"count":1,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4159\/revisions"}],"predecessor-version":[{"id":8894,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4159\/revisions\/8894"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=4159"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=4159"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=4159"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}