{"id":1132,"date":"2015-05-01T09:21:00","date_gmt":"2015-05-01T02:21:00","guid":{"rendered":"https:\/\/kusumotolab.com\/?p=1132"},"modified":"2015-05-01T09:21:00","modified_gmt":"2015-05-01T02:21:00","slug":"how-to-install-phpunit-with-mamp-and-mamp-pro-on-osx-10-10-4-beta","status":"publish","type":"post","link":"https:\/\/oldblog.kusumotolab.com\/?p=1132","title":{"rendered":"How to install PHPUnit with MAMP and MAMP Pro on OSX 10.10.4 Beta"},"content":{"rendered":"<p>\u0e1e\u0e2d\u0e14\u0e35\u0e1c\u0e21\u0e0a\u0e2d\u0e1a\u0e43\u0e0a\u0e49 MAMP Pro \u0e43\u0e19\u0e01\u0e32\u0e23\u0e17\u0e33\u0e07\u0e32\u0e19\u0e17\u0e35\u0e48\u0e40\u0e01\u0e35\u0e48\u0e22\u0e27\u0e02\u0e49\u0e2d\u0e07\u0e01\u0e31\u0e1a PHP \u0e41\u0e25\u0e30 MySQL \u0e1a\u0e19\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07 Mac \u0e02\u0e2d\u0e07\u0e1c\u0e21\u0e40\u0e1b\u0e47\u0e19\u0e1b\u0e23\u0e30\u0e08\u0e33 \u0e41\u0e25\u0e49\u0e27\u0e27\u0e31\u0e19\u0e19\u0e36\u0e07\u0e1c\u0e21\u0e15\u0e49\u0e2d\u0e07\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 phpunit \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e43\u0e0a\u0e49\u0e43\u0e19\u0e01\u0e32\u0e23\u0e17\u0e33 Unit Test \u0e02\u0e2d\u0e07\u0e20\u0e32\u0e29\u0e32 PHP<\/p>\n<p>\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49\u0e1c\u0e21\u0e08\u0e30\u0e21\u0e32\u0e40\u0e2a\u0e19\u0e2d\u0e27\u0e34\u0e18\u0e35\u0e01\u0e32\u0e23\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 phpunit \u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49 PHP \u0e17\u0e35\u0e48\u0e17\u0e33\u0e07\u0e32\u0e19\u0e1a\u0e19 MAMP \u0e41\u0e25\u0e30 MAMP Pro \u0e01\u0e31\u0e19\u0e04\u0e23\u0e31\u0e1a<\/p>\n<p>\u0e2d\u0e31\u0e19\u0e14\u0e31\u0e1a\u0e41\u0e23\u0e01 \u0e43\u0e2b\u0e49\u0e17\u0e33\u0e01\u0e32\u0e23 Set PATH \u0e43\u0e19 Terminal \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e04\u0e27\u0e32\u0e21\u0e2a\u0e30\u0e14\u0e27\u0e01\u0e43\u0e19\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19 Command \u0e15\u0e48\u0e32\u0e07\u0e46 \u0e17\u0e35\u0e48\u0e08\u0e33\u0e40\u0e1b\u0e47\u0e19\u0e17\u0e35\u0e48\u0e08\u0e30\u0e15\u0e49\u0e2d\u0e07\u0e43\u0e0a\u0e49\u0e43\u0e19\u0e01\u0e32\u0e23\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 phpunit \u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 \u0e14\u0e31\u0e07\u0e19\u0e35\u0e49\u0e04\u0e23\u0e31\u0e1a<\/p>\n<pre lang=\"bash\">PATH=\"\/Applications\/MAMP\/Library\/bin:\/Applications\/MAMP\/bin\/php\/php5.6.7\/bin:$PATH\"<\/pre>\n<p>\u0e2b\u0e25\u0e31\u0e07\u0e08\u0e32\u0e01\u0e17\u0e35\u0e48\u0e04\u0e38\u0e13\u0e17\u0e33\u0e01\u0e32\u0e23 Set PATH \u0e43\u0e19 Terminal \u0e40\u0e23\u0e35\u0e22\u0e1a\u0e23\u0e49\u0e2d\u0e22\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e23\u0e32\u0e01\u0e47\u0e08\u0e30\u0e17\u0e33\u0e01\u0e32\u0e23\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 phpunit \u0e1c\u0e48\u0e32\u0e19 pear \u0e02\u0e2d\u0e07 php \u0e04\u0e23\u0e31\u0e1a \u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e07\u0e48\u0e32\u0e22\u0e46 \u0e43\u0e19\u0e01\u0e32\u0e23\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07\u0e04\u0e23\u0e31\u0e1a<\/p>\n<pre lang=\"bash\">pear install phpunit<\/pre>\n<p>\u0e04\u0e38\u0e13\u0e08\u0e30\u0e40\u0e2b\u0e47\u0e19\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e1b\u0e23\u0e30\u0e21\u0e32\u0e13\u0e19\u0e35\u0e49\u0e04\u0e23\u0e31\u0e1a<\/p>\n<p><a href=\"https:\/\/kusumotolab.com\/wp-content\/uploads\/2015\/05\/2558-05-01-at-8.54-AM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1134\" src=\"https:\/\/kusumotolab.com\/wp-content\/uploads\/2015\/05\/2558-05-01-at-8.54-AM.png\" alt=\"2558-05-01 at 8.54 AM\" width=\"593\" height=\"221\" \/><\/a><\/p>\n<p>\u0e2b\u0e25\u0e31\u0e07\u0e08\u0e32\u0e01\u0e19\u0e31\u0e49\u0e19\u0e01\u0e47\u0e08\u0e30\u0e44\u0e14\u0e49 phpunit \u0e44\u0e27\u0e49\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e41\u0e25\u0e49\u0e27\u0e04\u0e23\u0e31\u0e1a \u0e04\u0e38\u0e13\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e17\u0e14\u0e2a\u0e2d\u0e1a\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 phpunit \u0e44\u0e14\u0e49 \u0e14\u0e49\u0e27\u0e22\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07<\/p>\n<pre lang=\"bash\">phpunit --version<\/pre>\n<p>\u0e04\u0e38\u0e13\u0e08\u0e30\u0e40\u0e2b\u0e47\u0e19\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e2b\u0e19\u0e49\u0e32\u0e15\u0e32\u0e1b\u0e23\u0e30\u0e21\u0e32\u0e13\u0e19\u0e35\u0e49 \u0e41\u0e2a\u0e14\u0e07\u0e27\u0e48\u0e32\u0e01\u0e32\u0e23\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07\u0e40\u0e2a\u0e23\u0e47\u0e08\u0e2a\u0e34\u0e49\u0e19\u0e41\u0e25\u0e49\u0e27\u0e04\u0e23\u0e31\u0e1a<\/p>\n<p><a href=\"https:\/\/kusumotolab.com\/wp-content\/uploads\/2015\/05\/2558-05-01-at-8.58-AM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1137\" src=\"https:\/\/kusumotolab.com\/wp-content\/uploads\/2015\/05\/2558-05-01-at-8.58-AM.png\" alt=\"2558-05-01 at 8.58 AM\" width=\"593\" height=\"408\" \/><\/a><\/p>\n<p>\u0e2b\u0e25\u0e31\u0e07\u0e08\u0e32\u0e01\u0e19\u0e31\u0e49\u0e19 \u0e16\u0e49\u0e32\u0e44\u0e21\u0e48\u0e17\u0e33\u0e01\u0e32\u0e23 Set PATH \u0e15\u0e32\u0e22\u0e15\u0e31\u0e27\u0e40\u0e2d\u0e32\u0e44\u0e27\u0e49 \u0e04\u0e38\u0e13\u0e08\u0e30\u0e15\u0e49\u0e2d\u0e07\u0e43\u0e0a\u0e49\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a Set PATH \u0e15\u0e32\u0e22\u0e15\u0e31\u0e27\u0e17\u0e38\u0e01\u0e04\u0e23\u0e31\u0e49\u0e07\u0e17\u0e35\u0e48\u0e21\u0e35\u0e01\u0e32\u0e23\u0e40\u0e1b\u0e34\u0e14 Terminal \u0e40\u0e2d\u0e32\u0e44\u0e27\u0e49\u0e40\u0e25\u0e22 \u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49\u0e04\u0e33\u0e2a\u0e31\u0e07 vi \u0e43\u0e19\u0e01\u0e32\u0e23\u0e41\u0e01\u0e49\u0e44\u0e02\u0e44\u0e1f\u0e25\u0e4c ~\/.bash_profile (\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e04\u0e19\u0e43\u0e0a\u0e49 bash) ~\/.zshrc (\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e04\u0e19\u0e43\u0e0a\u0e49 zsh)<\/p>\n<h3>bash<\/h3>\n<pre lang=\"bash\">sudo vi ~\/.bash_profile<\/pre>\n<h3>zsh<\/h3>\n<pre lang=\"bash\">sudo vi ~\/.zshrc<\/pre>\n<p>\u0e2a\u0e48\u0e27\u0e19\u0e02\u0e2d\u0e07 bash \u0e43\u0e2b\u0e49\u0e04\u0e38\u0e13\u0e41\u0e01\u0e49\u0e0a\u0e44\u0e02\u0e14\u0e49\u0e27\u0e22\u0e01\u0e32\u0e23\u0e40\u0e1e\u0e34\u0e48\u0e21 Path \u0e25\u0e07\u0e44\u0e1b\u0e43\u0e19\u0e44\u0e1f\u0e25\u0e4c \u0e14\u0e31\u0e07\u0e19\u0e35\u0e49<\/p>\n<pre>PATH=\/Applications\/MAMP\/Library\/bin\r\n<\/pre>\n<p>\u0e2a\u0e48\u0e27\u0e19\u0e02\u0e2d\u0e07 zsh \u0e43\u0e2b\u0e49\u0e04\u0e38\u0e13\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e43\u0e19\u0e2a\u0e48\u0e27\u0e19\u0e02\u0e2d\u0e07 User configuration \u0e14\u0e31\u0e07\u0e19\u0e35\u0e49\u0e04\u0e23\u0e31\u0e1a<\/p>\n<pre>export PATH=\"\/Applications\/MAMP\/Library\/bin\"\r\n<\/pre>\n<p>\u0e2b\u0e23\u0e37\u0e2d\u0e16\u0e49\u0e32\u0e40\u0e01\u0e34\u0e14\u0e21\u0e35\u0e2a\u0e48\u0e27\u0e19\u0e02\u0e2d\u0e07\u0e01\u0e32\u0e23 Set Path \u0e2d\u0e37\u0e48\u0e19\u0e46\u0e40\u0e2d\u0e32\u0e44\u0e27\u0e49 \u0e43\u0e2b\u0e49\u0e40\u0e2d\u0e32\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e2b\u0e21\u0e32\u0e22 : \u0e04\u0e31\u0e48\u0e19\u0e23\u0e30\u0e2b\u0e27\u0e48\u0e32\u0e07 Path \u0e15\u0e48\u0e32\u0e07\u0e46 \u0e14\u0e31\u0e07\u0e19\u0e35\u0e49<\/p>\n<pre>export PATH=\"\/usr\/local\/opt\/ruby193\/bin:\/usr\/local\/bin:\/usr\/local\/sbin:\/usr\/bin:\/bin:\/usr\/sbin:\/sbin:\/usr\/local\/bin:\/opt\/X11\/bin:\/usr\/local\/CrossPack-AVR\/bin:\/Users\/Kusumoto\/.rvm\/bin:\/Applications\/MAMP\/Library\/bin\"\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u0e1e\u0e2d\u0e14\u0e35\u0e1c\u0e21\u0e0a\u0e2d\u0e1a\u0e43\u0e0a\u0e49 MAMP Pro \u0e43\u0e19\u0e01\u0e32\u0e23\u0e17\u0e33\u0e07\u0e32\u0e19\u0e17\u0e35\u0e48\u0e40\u0e01\u0e35\u0e48\u0e22\u0e27\u0e02\u0e49\u0e2d\u0e07\u0e01\u0e31\u0e1a PHP \u0e41\u0e25\u0e30 MySQL \u0e1a\u0e19\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07 Mac \u0e02\u0e2d\u0e07\u0e1c\u0e21\u0e40\u0e1b\u0e47\u0e19\u0e1b\u0e23\u0e30\u0e08\u0e33 \u0e41\u0e25\u0e49\u0e27\u0e27\u0e31\u0e19\u0e19\u0e36\u0e07\u0e1c\u0e21\u0e15\u0e49\u0e2d\u0e07\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 phpunit \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e43\u0e0a\u0e49\u0e43\u0e19\u0e01\u0e32\u0e23\u0e17\u0e33 Unit Test \u0e02\u0e2d\u0e07\u0e20\u0e32\u0e29\u0e32 PHP \u0e27\u0e31\u0e19\u0e19\u0e35\u0e49\u0e1c\u0e21\u0e08\u0e30\u0e21\u0e32\u0e40\u0e2a\u0e19\u0e2d\u0e27\u0e34\u0e18\u0e35\u0e01\u0e32\u0e23\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 phpunit \u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49 PHP \u0e17\u0e35\u0e48\u0e17\u0e33\u0e07\u0e32\u0e19\u0e1a\u0e19 MAMP \u0e41\u0e25\u0e30 MAMP Pro \u0e01\u0e31\u0e19\u0e04\u0e23\u0e31\u0e1a \u0e2d\u0e31\u0e19\u0e14\u0e31\u0e1a\u0e41\u0e23\u0e01 \u0e43\u0e2b\u0e49\u0e17\u0e33\u0e01\u0e32\u0e23 Set PATH \u0e43\u0e19 Terminal \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e04\u0e27\u0e32\u0e21\u0e2a\u0e30\u0e14\u0e27\u0e01\u0e43\u0e19\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19 Command \u0e15\u0e48\u0e32\u0e07\u0e46 \u0e17\u0e35\u0e48\u0e08\u0e33\u0e40\u0e1b\u0e47\u0e19\u0e17\u0e35\u0e48\u0e08\u0e30\u0e15\u0e49\u0e2d\u0e07\u0e43\u0e0a\u0e49\u0e43\u0e19\u0e01\u0e32\u0e23\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 phpunit \u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 \u0e14\u0e31\u0e07\u0e19\u0e35\u0e49\u0e04\u0e23\u0e31\u0e1a PATH=&#8221;\/Applications\/MAMP\/Library\/bin:\/Applications\/MAMP\/bin\/php\/php5.6.7\/bin:$PATH&#8221; \u0e2b\u0e25\u0e31\u0e07\u0e08\u0e32\u0e01\u0e17\u0e35\u0e48\u0e04\u0e38\u0e13\u0e17\u0e33\u0e01\u0e32\u0e23 Set PATH \u0e43\u0e19 Terminal \u0e40\u0e23\u0e35\u0e22\u0e1a\u0e23\u0e49\u0e2d\u0e22\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e23\u0e32\u0e01\u0e47\u0e08\u0e30\u0e17\u0e33\u0e01\u0e32\u0e23\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 phpunit \u0e1c\u0e48\u0e32\u0e19 pear \u0e02\u0e2d\u0e07 php \u0e04\u0e23\u0e31\u0e1a \u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e07\u0e48\u0e32\u0e22\u0e46 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":[]},"categories":[13],"tags":[],"class_list":["post-1132","post","type-post","status-publish","format-standard","hentry","category-php"],"jetpack_publicize_connections":[],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p3OMEb-ig","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/oldblog.kusumotolab.com\/index.php?rest_route=\/wp\/v2\/posts\/1132","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oldblog.kusumotolab.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/oldblog.kusumotolab.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/oldblog.kusumotolab.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oldblog.kusumotolab.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1132"}],"version-history":[{"count":7,"href":"https:\/\/oldblog.kusumotolab.com\/index.php?rest_route=\/wp\/v2\/posts\/1132\/revisions"}],"predecessor-version":[{"id":1141,"href":"https:\/\/oldblog.kusumotolab.com\/index.php?rest_route=\/wp\/v2\/posts\/1132\/revisions\/1141"}],"wp:attachment":[{"href":"https:\/\/oldblog.kusumotolab.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1132"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oldblog.kusumotolab.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1132"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oldblog.kusumotolab.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}