{"id":117,"date":"2013-06-26T08:22:37","date_gmt":"2013-06-26T08:22:37","guid":{"rendered":"http:\/\/blog.chen-hongyi.com\/?p=117"},"modified":"2013-06-26T08:22:37","modified_gmt":"2013-06-26T08:22:37","slug":"install-phpunit-under-mac-os-10-6-snow-leopord","status":"publish","type":"post","link":"https:\/\/chen-hongyi.com\/?p=117","title":{"rendered":"install PHPUnit under Mac OS 10.6 Snow Leopord"},"content":{"rendered":"<p>first, read the following Link:<\/p>\n<p><a title=\"http:\/\/kubyshkin.ru\/posts\/phpunit-on-mac-os-x-snow-leopard-10-6.html\" href=\"http:\/\/kubyshkin.ru\/posts\/phpunit-on-mac-os-x-snow-leopard-10-6.html\" target=\"_blank\">http:\/\/kubyshkin.ru\/posts\/phpunit-on-mac-os-x-snow-leopard-10-6.html<\/a><\/p>\n<p>Then if you get problem with symfony\/YAML version conflict \u00a0like:<\/p>\n<blockquote><p>phpunit\/PHPUnit requires package &#8220;symfony\/YAML&#8221; (version &gt;= 1.0.2, version &lt;= 1.0.2), installed version is 1.0.6<br \/>\nNo valid packages found<br \/>\ninstall failed<\/p><\/blockquote>\n<p>Just uninstall it with:<\/p>\n<blockquote><p>sudo pear uninstall symfony\/YAML<br \/>\nuninstall ok: channel:\/\/pear.symfony-project.com\/YAML-1.0.6<\/p><\/blockquote>\n<p>then install old version like this:<\/p>\n<blockquote><p>sudo pear install symfony\/YAML-1.0.2<br \/>\ndownloading YAML-1.0.2.tgz &#8230;<br \/>\nStarting to download YAML-1.0.2.tgz (9,299 bytes)<br \/>\n&#8230;..done: 9,299 bytes<br \/>\ninstall ok: channel:\/\/pear.symfony-project.com\/YAML-1.0.2<\/p><\/blockquote>\n<p>Now you can install PHPUnit :<\/p>\n<blockquote><p>sudo pear install phpunit\/PHPUnit<br \/>\ndownloading PHPUnit-3.6.12.tgz &#8230;<br \/>\nStarting to download PHPUnit-3.6.12.tgz (120,240 bytes)<br \/>\n&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..done: 120,240 bytes<br \/>\ninstall ok: channel:\/\/pear.phpunit.de\/PHPUnit-3.6.12<\/p>\n<p>&nbsp;<\/p><\/blockquote>\n<p>Now to check phpunit<\/p>\n<blockquote><p>phpunit &#8211;version<br \/>\nPHPUnit 3.6.12 by Sebastian Bergmann.<\/p><\/blockquote>\n<p>Done!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>first, read the following Link: http:\/\/k &hellip; <a href=\"https:\/\/chen-hongyi.com\/?p=117\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[34],"class_list":["post-117","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-phpunit"],"_links":{"self":[{"href":"https:\/\/chen-hongyi.com\/index.php?rest_route=\/wp\/v2\/posts\/117","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chen-hongyi.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chen-hongyi.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chen-hongyi.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chen-hongyi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=117"}],"version-history":[{"count":1,"href":"https:\/\/chen-hongyi.com\/index.php?rest_route=\/wp\/v2\/posts\/117\/revisions"}],"predecessor-version":[{"id":118,"href":"https:\/\/chen-hongyi.com\/index.php?rest_route=\/wp\/v2\/posts\/117\/revisions\/118"}],"wp:attachment":[{"href":"https:\/\/chen-hongyi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=117"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chen-hongyi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=117"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chen-hongyi.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=117"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}