{"id":1477,"date":"2016-06-23T07:03:33","date_gmt":"2016-06-23T07:03:33","guid":{"rendered":"http:\/\/elbsolutions.com\/projects\/?p=1477"},"modified":"2022-02-03T11:24:33","modified_gmt":"2022-02-03T17:24:33","slug":"upgrading-phpunit-bit-headache-got-working","status":"publish","type":"post","link":"https:\/\/elbsolutions.com\/projects\/upgrading-phpunit-bit-headache-got-working\/","title":{"rendered":"Upgrading phpunit &#8230; a bit of a headache &#8211; here is how I got it working"},"content":{"rendered":"<p>I started <a href=\"http:\/\/superuser.com\/questions\/55055\/how-to-install-an-updated-version-of-pear-phpunit-on-ubuntu\">here <\/a>&#8211; this gave most the tips . This command<\/p>\n<p>sudo pear channel-discover pear.phpunit.de<\/p>\n<p>fails though &#8230; so <a href=\"http:\/\/stackoverflow.com\/a\/33377859\">Tamra on another site mentioned<\/a> to install that part another way. Then finish the above commands.<\/p>\n<ul>\n<li>wget https:\/\/phar.phpunit.de\/phpunit.phar<\/li>\n<li>chmod +x phpunit.phar<\/li>\n<li>sudo mv phpunit.phar \/usr\/local\/bin\/phpunit<\/li>\n<li>phpunit &#8211;version<\/li>\n<\/ul>\n<p><!--more--><\/p>\n<p>There was another curve ball &#8211; a message took the whole screen and said &#8230;<\/p>\n<ul>\n<li>This PPA is deprecated!<\/li>\n<li>Please note that this PPA is deprecated and it&#8217;s being replaced with ppa:ondrej\/php that contains co-installable versions of PHP 5.5, PHP 5.6 and PHP 7.0.<br \/>\nThis PPA will reach end of life at the end of June 2016, and you have to replace it with the new centralized PHP PPA.<\/li>\n<li>To add the new PPA, do:\n<ul>\n<li>sudo LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej\/php<\/li>\n<li>sudo apt-get update<\/li>\n<\/ul>\n<\/li>\n<li>And the install correct PHP version:\n<ul>\n<li>sudo apt-get install php7.0 # for PHP 7.0<\/li>\n<li>sudo apt-get install php5.6 # for PHP 5.6<\/li>\n<li>sudo apt-get install php5.5 # for PHP 5.5<\/li>\n<\/ul>\n<\/li>\n<li>The packages for extensions contain modules for all supported PHP versions and can be installed with (f.e. xdebug and APCu):\n<ul>\n<li>sudo apt-get install php-xdebug php-apcu<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>So I followed the instructions for php 6.5 and started again at the top of this article.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I started here &#8211; this gave most the tips . This command sudo pear channel-discover pear.phpunit.de fails though &#8230; so Tamra on another site mentioned to install that part another way. Then finish the above commands. wget https:\/\/phar.phpunit.de\/phpunit.phar chmod +x phpunit.phar sudo mv phpunit.phar \/usr\/local\/bin\/phpunit phpunit &#8211;version<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1477","post","type-post","status-publish","format-standard","hentry","category-general"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Upgrading phpunit ... a bit of a headache - here is how I got it working - ELB Solutions.com Inc.<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/elbsolutions.com\/projects\/upgrading-phpunit-bit-headache-got-working\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Upgrading phpunit ... a bit of a headache - here is how I got it working - ELB Solutions.com Inc.\" \/>\n<meta property=\"og:description\" content=\"I started here &#8211; this gave most the tips . This command sudo pear channel-discover pear.phpunit.de fails though &#8230; so Tamra on another site mentioned to install that part another way. Then finish the above commands. wget https:\/\/phar.phpunit.de\/phpunit.phar chmod +x phpunit.phar sudo mv phpunit.phar \/usr\/local\/bin\/phpunit phpunit &#8211;version\" \/>\n<meta property=\"og:url\" content=\"https:\/\/elbsolutions.com\/projects\/upgrading-phpunit-bit-headache-got-working\/\" \/>\n<meta property=\"og:site_name\" content=\"ELB Solutions.com Inc.\" \/>\n<meta property=\"article:published_time\" content=\"2016-06-23T07:03:33+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-02-03T17:24:33+00:00\" \/>\n<meta name=\"author\" content=\"Etienne Bley\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Etienne Bley\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/upgrading-phpunit-bit-headache-got-working\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/upgrading-phpunit-bit-headache-got-working\\\/\"},\"author\":{\"name\":\"Etienne Bley\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#\\\/schema\\\/person\\\/51e717c68f4f5917c63baf88f0896c39\"},\"headline\":\"Upgrading phpunit &#8230; a bit of a headache &#8211; here is how I got it working\",\"datePublished\":\"2016-06-23T07:03:33+00:00\",\"dateModified\":\"2022-02-03T17:24:33+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/upgrading-phpunit-bit-headache-got-working\\\/\"},\"wordCount\":223,\"articleSection\":[\"General\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/upgrading-phpunit-bit-headache-got-working\\\/\",\"url\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/upgrading-phpunit-bit-headache-got-working\\\/\",\"name\":\"Upgrading phpunit ... a bit of a headache - here is how I got it working - ELB Solutions.com Inc.\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#website\"},\"datePublished\":\"2016-06-23T07:03:33+00:00\",\"dateModified\":\"2022-02-03T17:24:33+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#\\\/schema\\\/person\\\/51e717c68f4f5917c63baf88f0896c39\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/upgrading-phpunit-bit-headache-got-working\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/upgrading-phpunit-bit-headache-got-working\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/upgrading-phpunit-bit-headache-got-working\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Upgrading phpunit &#8230; a bit of a headache &#8211; here is how I got it working\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#website\",\"url\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/\",\"name\":\"ELB Solutions.com Inc.\",\"description\":\"Bringing all your IT Pieces together\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#\\\/schema\\\/person\\\/51e717c68f4f5917c63baf88f0896c39\",\"name\":\"Etienne Bley\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g\",\"caption\":\"Etienne Bley\"},\"url\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/author\\\/etienne-bley\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Upgrading phpunit ... a bit of a headache - here is how I got it working - ELB Solutions.com Inc.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/elbsolutions.com\/projects\/upgrading-phpunit-bit-headache-got-working\/","og_locale":"en_US","og_type":"article","og_title":"Upgrading phpunit ... a bit of a headache - here is how I got it working - ELB Solutions.com Inc.","og_description":"I started here &#8211; this gave most the tips . This command sudo pear channel-discover pear.phpunit.de fails though &#8230; so Tamra on another site mentioned to install that part another way. Then finish the above commands. wget https:\/\/phar.phpunit.de\/phpunit.phar chmod +x phpunit.phar sudo mv phpunit.phar \/usr\/local\/bin\/phpunit phpunit &#8211;version","og_url":"https:\/\/elbsolutions.com\/projects\/upgrading-phpunit-bit-headache-got-working\/","og_site_name":"ELB Solutions.com Inc.","article_published_time":"2016-06-23T07:03:33+00:00","article_modified_time":"2022-02-03T17:24:33+00:00","author":"Etienne Bley","twitter_misc":{"Written by":"Etienne Bley","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/elbsolutions.com\/projects\/upgrading-phpunit-bit-headache-got-working\/#article","isPartOf":{"@id":"https:\/\/elbsolutions.com\/projects\/upgrading-phpunit-bit-headache-got-working\/"},"author":{"name":"Etienne Bley","@id":"https:\/\/elbsolutions.com\/projects\/#\/schema\/person\/51e717c68f4f5917c63baf88f0896c39"},"headline":"Upgrading phpunit &#8230; a bit of a headache &#8211; here is how I got it working","datePublished":"2016-06-23T07:03:33+00:00","dateModified":"2022-02-03T17:24:33+00:00","mainEntityOfPage":{"@id":"https:\/\/elbsolutions.com\/projects\/upgrading-phpunit-bit-headache-got-working\/"},"wordCount":223,"articleSection":["General"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/elbsolutions.com\/projects\/upgrading-phpunit-bit-headache-got-working\/","url":"https:\/\/elbsolutions.com\/projects\/upgrading-phpunit-bit-headache-got-working\/","name":"Upgrading phpunit ... a bit of a headache - here is how I got it working - ELB Solutions.com Inc.","isPartOf":{"@id":"https:\/\/elbsolutions.com\/projects\/#website"},"datePublished":"2016-06-23T07:03:33+00:00","dateModified":"2022-02-03T17:24:33+00:00","author":{"@id":"https:\/\/elbsolutions.com\/projects\/#\/schema\/person\/51e717c68f4f5917c63baf88f0896c39"},"breadcrumb":{"@id":"https:\/\/elbsolutions.com\/projects\/upgrading-phpunit-bit-headache-got-working\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/elbsolutions.com\/projects\/upgrading-phpunit-bit-headache-got-working\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/elbsolutions.com\/projects\/upgrading-phpunit-bit-headache-got-working\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/elbsolutions.com\/projects\/"},{"@type":"ListItem","position":2,"name":"Upgrading phpunit &#8230; a bit of a headache &#8211; here is how I got it working"}]},{"@type":"WebSite","@id":"https:\/\/elbsolutions.com\/projects\/#website","url":"https:\/\/elbsolutions.com\/projects\/","name":"ELB Solutions.com Inc.","description":"Bringing all your IT Pieces together","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/elbsolutions.com\/projects\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/elbsolutions.com\/projects\/#\/schema\/person\/51e717c68f4f5917c63baf88f0896c39","name":"Etienne Bley","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g","caption":"Etienne Bley"},"url":"https:\/\/elbsolutions.com\/projects\/author\/etienne-bley\/"}]}},"_links":{"self":[{"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/posts\/1477","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/comments?post=1477"}],"version-history":[{"count":2,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/posts\/1477\/revisions"}],"predecessor-version":[{"id":1479,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/posts\/1477\/revisions\/1479"}],"wp:attachment":[{"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/media?parent=1477"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/categories?post=1477"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/tags?post=1477"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}