{"id":4493,"date":"2016-10-01T08:29:41","date_gmt":"2016-09-30T23:29:41","guid":{"rendered":"http:\/\/akimoto.jp\/blog\/?p=4493"},"modified":"2016-10-01T08:31:32","modified_gmt":"2016-09-30T23:31:32","slug":"two-different-versions-of-phpunit-collision","status":"publish","type":"post","link":"https:\/\/akimoto.jp\/blog\/2016\/10\/01\/two-different-versions-of-phpunit-collision\/","title":{"rendered":"global\u3068local\u306ephpunit\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u9055\u3046\u6642\u306b\u51fa\u305f\u30a8\u30e9\u30fc"},"content":{"rendered":"<p>phpunit \u306e\u5b9f\u884c\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u51fa\u305f\u5834\u5408\u3001<\/p>\n<p><code><br \/>\nPHPUnit 4.5.1 by Sebastian Bergmann and contributors.<\/p>\n<p>PHP Fatal error:  Call to undefined method PHPUnit_Framework_TestResult::warningCount() in ~akky\\AppData\\Roaming\\Composer\\vendor\\phpunit\\phpunit\\src\\TextUI\\ResultPrinter.php on line 185<\/p>\n<p>Fatal error: Call to undefined method PHPUnit_Framework_TestResult::warningCount() in ~\\akky\\AppData\\Roaming\\Composer\\vendor\\phpunit\\phpunit\\src\\TextUI\\ResultPrinter.php on line 185<br \/>\n<\/code><\/p>\n<p>\u3053\u308c\u306f\u3001composer\u3067\u5b9a\u7fa9\u3055\u308c\u305flocal\u306b\u3042\u308bphpunit(.\/vendor\/bin\/phpunit)\u3092\u547c\u3076\u3064\u3082\u308a\u3067\u3001global\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305fphpunit(version 5.1.6)\u3092\u547c\u3093\u3067\u3044\u308b\u305f\u3081\u306b\u767a\u751f\u3057\u3066\u3044\u308b\u30a8\u30e9\u30fc\u306e\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>phpunit\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u8868\u8a18\u304c\u3001\u306a\u305c\u304blocal\u5074\u306e4.5.1\u3067\u51fa\u3066\u304f\u308b\u306e\u3067\u3061\u3087\u3063\u3068\u6c17\u3065\u304b\u306a\u304b\u3063\u305f\u306e\u3067\u3059\u304c\u3001<\/p>\n<p><code><br \/>\n$ .\/vendor\/bin\/phpunit<br \/>\n<\/code><\/p>\n<p>\u3068local\u306ephpunit\u3092\u547c\u3076\u3068\u3001\u30a8\u30e9\u30fc\u306f\u8d77\u3053\u3089\u306a\u304f\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>Laravel\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u3082<a href=\"https:\/\/github.com\/laravel\/framework\/issues\/11192\" target=\"_blank\">\u540c\u69d8\u306e\u30a8\u30e9\u30fc\u304c\u5831\u544a\u3055\u308c\u3066\u3044\u307e\u3057\u305f<\/a>\u3002global\u306ephpunit\u3092uninstall\u3059\u308b\u3068\u89e3\u6d88\u3057\u305f\u3001\u3068\u3044\u3046\u30b3\u30e1\u30f3\u30c8\u3082\u3042\u308a\u307e\u3059\u304c\u3064\u307e\u308a\u306f\u305d\u3046\u3044\u3046\u3053\u3068\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>composer.json \u3067\u65b0\u3057\u3044phpunit\u304c\u6307\u5b9a\u3055\u308c\u3066\u3044\u308c\u3070\u3053\u306e\u30c8\u30e9\u30d6\u30eb\u306f\u8d77\u3053\u3089\u306a\u3044\u306e\u3067\u3057\u3087\u3046\u3051\u3069\u3001phpunit\u3092\u66f4\u65b0\u3059\u308b\u3068\u30c6\u30b9\u30c8\u304c\u52d5\u304b\u306a\u304f\u306a\u308b\u3001\u3068\u3044\u3046\u3053\u3068\u3082\u3042\u308b\u306e\u3067\u3001\u4ed6\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u6301\u3063\u3066\u304d\u3066\u30c6\u30b9\u30c8\u3059\u308b\u3068\u3053\u3046\u3044\u3046\u3053\u3068\u3082\u8d77\u3053\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>phpunit \u306e\u5b9f\u884c\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u51fa\u305f\u5834\u5408\u3001 PHPUnit 4.5.1 by Sebastian Bergmann and contributors. PHP Fatal error: Call t &hellip; <a href=\"https:\/\/akimoto.jp\/blog\/2016\/10\/01\/two-different-versions-of-phpunit-collision\/\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">global\u3068local\u306ephpunit\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u9055\u3046\u6642\u306b\u51fa\u305f\u30a8\u30e9\u30fc<\/span><\/a><\/p>\n","protected":false},"author":17,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[121],"tags":[2067,1809],"class_list":["post-4493","post","type-post","status-publish","format-standard","hentry","category-php","tag-error","tag-phpunit"],"_links":{"self":[{"href":"https:\/\/akimoto.jp\/blog\/wp-json\/wp\/v2\/posts\/4493","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/akimoto.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/akimoto.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/akimoto.jp\/blog\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/akimoto.jp\/blog\/wp-json\/wp\/v2\/comments?post=4493"}],"version-history":[{"count":3,"href":"https:\/\/akimoto.jp\/blog\/wp-json\/wp\/v2\/posts\/4493\/revisions"}],"predecessor-version":[{"id":4496,"href":"https:\/\/akimoto.jp\/blog\/wp-json\/wp\/v2\/posts\/4493\/revisions\/4496"}],"wp:attachment":[{"href":"https:\/\/akimoto.jp\/blog\/wp-json\/wp\/v2\/media?parent=4493"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/akimoto.jp\/blog\/wp-json\/wp\/v2\/categories?post=4493"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/akimoto.jp\/blog\/wp-json\/wp\/v2\/tags?post=4493"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}