{"id":30581,"date":"2023-06-16T17:02:26","date_gmt":"2023-12-24T12:34:58","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%9d%e8%af%95%e5%ae%89%e8%a3%85php-test_helpers%e4%bb%a5%e4%bd%bf%e7%94%a8php5-4\/"},"modified":"2025-08-12T19:51:54","modified_gmt":"2025-08-12T11:51:54","slug":"%e5%b0%9d%e8%af%95%e5%ae%89%e8%a3%85php-test_helpers%e4%bb%a5%e4%bd%bf%e7%94%a8php5-4","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%9d%e8%af%95%e5%ae%89%e8%a3%85php-test_helpers%e4%bb%a5%e4%bd%bf%e7%94%a8php5-4\/","title":{"rendered":"\u5c1d\u8bd5\u5b89\u88c5php-test_helpers\u4ee5\u4f7f\u7528php5.4"},"content":{"rendered":"<p>\u73b0\u5728\u5fc5\u987b\u5b89\u88c5\u4e00\u4e2a\u540d\u4e3aphp-test_helpers\u7684\u4e1c\u897f\u3002<br \/>\n\u8fd9\u662f\u4ece[PHP][PECL]test_helpers\u6269\u5c55\u6a21\u5757\u5f15\u7528\u7684\u3002<\/p>\n<blockquote><p>\u4f5c\u4e3a\u4e00\u4e2a\u6982\u5ff5\uff0c\u5b83\u7c7b\u4f3c\u4e8e\u4e00\u4e2a\u6269\u5c55\u6a21\u5757\uff0c\u7528\u4e8e\u5728\u4e0d\u80fd\u7f16\u5199\u5355\u5143\u6d4b\u8bd5\u7684\u9057\u7559\u4ee3\u7801\u4e2d\u8f7b\u677e\u7f16\u5199\u5355\u5143\u6d4b\u8bd5\u3002\u603b\u7ed3\u4e00\u4e0b\u5176\u4e3b\u8981\u529f\u80fd\uff1a<\/p>\n<p>* \u53ef\u4ee5\u7981\u7528exit\/die\u51fd\u6570\uff0c\u5e76\u6307\u5b9a\u56de\u8c03\u51fd\u6570<br \/>\n* \u53ef\u4ee5\u5728\u6267\u884cnew\u8fd0\u7b97\u7b26\u65f6\u6307\u5b9a\u56de\u8c03\u51fd\u6570<br \/>\n* \u53ef\u4ee5\u91cd\u547d\u540d\u51fd\u6570<\/p><\/blockquote>\n<p>\u8c8c\u4f3c\u53ef\u4ee5\u505a\u5230\u3002<br \/>\n\u4f46\u662f\uff0c\u5728\u5c1d\u8bd5\u4f7f\u7528phpenv\u5b89\u88c5PHP5.4.11\u65f6\u51fa\u73b0\u4e86\u9519\u8bef\uff0c\u8fd9\u662f\u5f53\u65f6\u7684\u8bb0\u5f55\u3002<\/p>\n<h2>\u73af\u5883<\/h2>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">centos6.3\uff08\u30b2\u30b9\u30c8OS\uff09<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">macosx10.8(\u30db\u30b9\u30c8OS)<\/ul>\n<h2>\u6240\u9700\u7684\u51c6\u5907\u5de5\u4f5c<\/h2>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">php5.4\u4ee5\u4e0a<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">git<\/ul>\n<h2>\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u7f51\u7ad9\u4f5c\u4e3a\u53c2\u8003<\/h2>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">sebastianbergmann \/ php-test-helpers<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">[PHP][PECL]test_helpers\u62e1\u5f35\u30e2\u30b8\u30e5\u30fc\u30eb<\/ul>\n<h2>\u5982\u679c\u4f60\u4e0d\u4ecegit\u4e0a\u62c9\u53d6\u6700\u65b0\u7248\u672c\uff0c\u4f1a\u51fa\u73b0\u9519\u8bef\u54e6\uff01\uff01<\/h2>\n<p>\u4ecepecl\u7684tgz\u6587\u4ef6\u4e0b\u8f7d\u540e\uff0c\u4f7f\u7528make\u547d\u4ee4\u9047\u5230\u4e86\u8fd9\u4e2a\u9519\u8bef\uff0c\u8ba9\u4eba\u82e6\u607c\u4e0d\u5df2\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"nv\">$make<\/span>\r\n\r\n\r\n\/bin\/sh \/tmp\/test_helpers-1.0.0\/libtool <span class=\"nt\">--mode<\/span><span class=\"o\">=<\/span>compile cc  <span class=\"nt\">-I<\/span><span class=\"nb\">.<\/span> <span class=\"nt\">-I<\/span>\/tmp\/test_helpers-1.0.0 <span class=\"nt\">-DPHP_ATOM_INC<\/span> <span class=\"nt\">-I<\/span>\/tmp\/test_helpers-1.0.0\/include <span class=\"nt\">-I<\/span>\/tmp\/test_helpers-1.0.0\/main <span class=\"nt\">-I<\/span>\/tmp\/test_helpers-1.0.0 <span class=\"nt\">-I<\/span>\/root\/.phpenv\/versions\/5.4.11\/include\/php <span class=\"nt\">-I<\/span>\/root\/.phpenv\/versions\/5.4.11\/include\/php\/main <span class=\"nt\">-I<\/span>\/root\/.phpenv\/versions\/5.4.11\/include\/php\/TSRM <span class=\"nt\">-I<\/span>\/root\/.phpenv\/versions\/5.4.11\/include\/php\/Zend <span class=\"nt\">-I<\/span>\/root\/.phpenv\/versions\/5.4.11\/include\/php\/ext <span class=\"nt\">-I<\/span>\/root\/.phpenv\/versions\/5.4.11\/include\/php\/ext\/date\/lib  <span class=\"nt\">-DHAVE_CONFIG_H<\/span>  <span class=\"nt\">-g<\/span> <span class=\"nt\">-O2<\/span>   <span class=\"nt\">-c<\/span> \/tmp\/test_helpers-1.0.0\/test_helpers.c <span class=\"nt\">-o<\/span> test_helpers.lo \r\n<span class=\"nb\">mkdir<\/span> .libs\r\n cc <span class=\"nt\">-I<\/span><span class=\"nb\">.<\/span> <span class=\"nt\">-I<\/span>\/tmp\/test_helpers-1.0.0 <span class=\"nt\">-DPHP_ATOM_INC<\/span> <span class=\"nt\">-I<\/span>\/tmp\/test_helpers-1.0.0\/include <span class=\"nt\">-I<\/span>\/tmp\/test_helpers-1.0.0\/main <span class=\"nt\">-I<\/span>\/tmp\/test_helpers-1.0.0 <span class=\"nt\">-I<\/span>\/root\/.phpenv\/versions\/5.4.11\/include\/php <span class=\"nt\">-I<\/span>\/root\/.phpenv\/versions\/5.4.11\/include\/php\/main <span class=\"nt\">-I<\/span>\/root\/.phpenv\/versions\/5.4.11\/include\/php\/TSRM <span class=\"nt\">-I<\/span>\/root\/.phpenv\/versions\/5.4.11\/include\/php\/Zend <span class=\"nt\">-I<\/span>\/root\/.phpenv\/versions\/5.4.11\/include\/php\/ext <span class=\"nt\">-I<\/span>\/root\/.phpenv\/versions\/5.4.11\/include\/php\/ext\/date\/lib <span class=\"nt\">-DHAVE_CONFIG_H<\/span> <span class=\"nt\">-g<\/span> <span class=\"nt\">-O2<\/span> <span class=\"nt\">-c<\/span> \/tmp\/test_helpers-1.0.0\/test_helpers.c  <span class=\"nt\">-fPIC<\/span> <span class=\"nt\">-DPIC<\/span> <span class=\"nt\">-o<\/span> .libs\/test_helpers.o\r\n\/tmp\/test_helpers-1.0.0\/test_helpers.c: In <span class=\"k\">function<\/span> \u2018new_handler\u2019:\r\n\/tmp\/test_helpers-1.0.0\/test_helpers.c:87: error: \u2018znode_op\u2019 has no member named \u2018u\u2019\r\n<\/code><\/pre>\n<p>C\u4e0d\u80fd\u8bfb\u3002\u3002\u3002\u3002<\/p>\n<h2>Google for 2 hours. \u8bf7\u5728 Google \u4e0a\u641c\u7d22 2 \u5c0f\u65f6\u3002<\/h2>\n<p>\u6ce8\u610f\u5230\u6709git\u5b58\u5728\uff01\uff01<\/p>\n<h2>\u5b89\u88c5<\/h2>\n<pre class=\"post-pre\"><code><span class=\"nb\">cd<\/span> \/tmp\r\ngit clone https:\/\/github.com\/sebastianbergmann\/php-test-helpers.git\r\n<span class=\"nb\">cd <\/span>php-test-helpers\r\nphpize\r\n.\/configure\r\nmake\r\nmake <span class=\"nb\">test\r\n<\/span>make <span class=\"nb\">install<\/span> \r\n<\/code><\/pre>\n<h2>\u8bbe\u5b9a<\/h2>\n<p>\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u304c\u3001Zend\u62e1\u5f35\u304c\u8aad\u307f\u8fbc\u307e\u308c\u3066\u3044\u308bPHP\u306e\u5834\u5408\u3001\u305d\u308c\u3088\u308a\u3082\u4e0b\u306b\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u30ed\u30fc\u30c9\u3057\u306a\u3044\u3068\u30a8\u30e9\u30fc\u306b\u306a\u308b\u3068\u8a00\u308f\u308c\u3066\u3044\u307e\u3059\u3002\u516c\u5f0f\u306b\u66f8\u304b\u308c\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u6c17\u3065\u304b\u305a\u306b\u7d0420\u5206\u9593\u8a70\u307e\u308a\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"post-pre\"><code> <span class=\"n\">zend_extension<\/span><span class=\"o\">=<\/span><span class=\"s2\">\"\/root\/.phpenv\/versions\/5.4.11\/lib\/php\/extensions\/no-debug-non-zts-20100525\/xdebug.so\"<\/span>\r\n <span class=\"n\">html_errors<\/span><span class=\"o\">=<\/span><span class=\"n\">on<\/span>\r\n<span class=\"c1\"># \u4e0b\u8a18\u3092\u8ffd\u52a0<\/span>\r\n <span class=\"n\">zend_extension<\/span><span class=\"o\">=\/<\/span><span class=\"n\">root<\/span><span class=\"o\">\/.<\/span><span class=\"n\">phpenv<\/span><span class=\"o\">\/<\/span><span class=\"n\">versions<\/span><span class=\"o\">\/<\/span><span class=\"mf\">5.4.11<\/span><span class=\"o\">\/<\/span><span class=\"n\">lib<\/span><span class=\"o\">\/<\/span><span class=\"n\">php<\/span><span class=\"o\">\/<\/span><span class=\"n\">extensions<\/span><span class=\"o\">\/<\/span><span class=\"n\">no<\/span><span class=\"o\">-<\/span><span class=\"n\">debug<\/span><span class=\"o\">-<\/span><span class=\"n\">non<\/span><span class=\"o\">-<\/span><span class=\"n\">zts<\/span><span class=\"o\">-<\/span><span class=\"mi\">20100525<\/span><span class=\"o\">\/<\/span><span class=\"n\">test_helpers<\/span><span class=\"mf\">.<\/span><span class=\"n\">so<\/span>\r\n<span class=\"o\">~<\/span>\r\n<\/code><\/pre>\n<p>\u8bf7\u6839\u636e\u60a8\u81ea\u5df1\u7684\u73af\u5883\u9002\u65f6\u66ff\u6362PATH\u7b49\u5185\u5bb9\u3002\u7531\u4e8e\u6211\u5b89\u88c5\u4e86phpenv\uff0c\u6240\u4ee5\u6211\u5c06\u6269\u5c55\u6a21\u5757\u653e\u5728\u4e86\/root\/.phpenv\/versions\/5.4.11\/lib\/php\/extensions\/no-debug-non-zts-20100525\/\u76ee\u5f55\u4e0b\u3002\u53ea\u8981\u6307\u5b9aphp\u6269\u5c55\u6a21\u5757\u7684\u6587\u4ef6\u8def\u5f84\uff0c\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n<p>\u6211\u6b63\u5728\u7f16\u8f91xdebug.ini\u6587\u4ef6\uff0c\u4f46\u5982\u679c\u6ca1\u6709\u5b89\u88c5xdebug\u7684\u8bdd\uff0c\u6211\u60f3\u65b0\u5efa\u4e00\u4e2a\u5e94\u8be5\u4e5f\u6ca1\u6709\u95ee\u9898\u3002<\/p>\n<h2>\u91cd\u65b0\u542f\u52a8Nginx\u6216Apache\u3002<\/h2>\n<p>\u8ba9\u6211\u4eec\u91cd\u65b0\u542f\u52a8web\u670d\u52a1\u5668\u3002<\/p>\n<h2>\u91cd\u65b0\u542f\u52a8php-fpm\u3002<\/h2>\n<p>\u5982\u679c\u60a8\u4f7f\u7528php-fpm\uff0c\u8bf7\u91cd\u65b0\u542f\u52a8\u3002<\/p>\n<h2>\u786e\u8ba4\u52a8\u4f5c<\/h2>\n<p>\u6211\u4eb2\u81ea\u8bd5\u7528\u4e00\u4e0b\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"cp\">&lt;?php<\/span>\r\n<span class=\"nf\">set_exit_overload<\/span><span class=\"p\">(<\/span><span class=\"k\">function<\/span><span class=\"p\">()<\/span> <span class=\"p\">{<\/span> <span class=\"k\">return<\/span> <span class=\"kc\">FALSE<\/span><span class=\"p\">;<\/span> <span class=\"p\">});<\/span>\r\n<span class=\"k\">exit<\/span><span class=\"p\">;<\/span>\r\n<span class=\"k\">print<\/span> <span class=\"s1\">'We did not exit.'<\/span><span class=\"p\">;<\/span>\r\n<span class=\"nf\">unset_exit_overload<\/span><span class=\"p\">();<\/span>\r\n<span class=\"k\">exit<\/span><span class=\"p\">;<\/span>\r\n<span class=\"k\">print<\/span> <span class=\"s1\">'We exited and this will not be printed.'<\/span><span class=\"p\">;<\/span>\r\n<\/code><\/pre>\n<p>\u5982\u679c\u663e\u793a\u7684\u662f&#8221;We did not exit&#8221;\uff0c\u5219\u8868\u793a\u6211\u4eec\u6ca1\u6709\u9000\u51fa\u3002<\/p>\n<p>\u8bf7\u6ce8\u610f\uff0ctest_helpers\u5df2\u7ecf\u8fc1\u79fb\u5230\u4e86git\uff0c\u800cpecl\u7b49\u5df2\u7ecf\u8fc7\u65f6\u4e86\u3002\u6211\u9047\u5230\u4e86\u5f88\u591a\u95ee\u9898\u3002\u3002\u3002\u3002\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u73b0\u5728\u5fc5\u987b\u5b89\u88c5\u4e00\u4e2a\u540d\u4e3aphp-test_helpers\u7684\u4e1c\u897f\u3002 \u8fd9\u662f\u4ece[PHP][PECL]test_helpe [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[227],"class_list":["post-30581","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-227"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5c1d\u8bd5\u5b89\u88c5php-test_helpers\u4ee5\u4f7f\u7528php5.4 - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"\u5173\u4e8e\u5c1d\u8bd5\u5b89\u88c5php-test_helpers\u4ee5\u4f7f\u7528php5.4\u7684\u6280\u672f\u6587\u7ae0\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5c1d\u8bd5\u5b89\u88c5php-test_helpers\u4ee5\u4f7f\u7528php5-4\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5c1d\u8bd5\u5b89\u88c5php-test_helpers\u4ee5\u4f7f\u7528php5.4\" \/>\n<meta property=\"og:description\" content=\"\u5173\u4e8e\u5c1d\u8bd5\u5b89\u88c5php-test_helpers\u4ee5\u4f7f\u7528php5.4\u7684\u6280\u672f\u6587\u7ae0\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5c1d\u8bd5\u5b89\u88c5php-test_helpers\u4ee5\u4f7f\u7528php5-4\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-12-24T12:34:58+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-08-12T11:51:54+00:00\" \/>\n<meta name=\"author\" content=\"\u65b0, \u97f5\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u65b0, \u97f5\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%9d%e8%af%95%e5%ae%89%e8%a3%85php-test_helpers%e4%bb%a5%e4%bd%bf%e7%94%a8php5-4\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%9d%e8%af%95%e5%ae%89%e8%a3%85php-test_helpers%e4%bb%a5%e4%bd%bf%e7%94%a8php5-4\/\",\"name\":\"\u5c1d\u8bd5\u5b89\u88c5php-test_helpers\u4ee5\u4f7f\u7528php5.4 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-12-24T12:34:58+00:00\",\"dateModified\":\"2025-08-12T11:51:54+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9\"},\"description\":\"\u5173\u4e8e\u5c1d\u8bd5\u5b89\u88c5php-test_helpers\u4ee5\u4f7f\u7528php5.4\u7684\u6280\u672f\u6587\u7ae0\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%9d%e8%af%95%e5%ae%89%e8%a3%85php-test_helpers%e4%bb%a5%e4%bd%bf%e7%94%a8php5-4\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%9d%e8%af%95%e5%ae%89%e8%a3%85php-test_helpers%e4%bb%a5%e4%bd%bf%e7%94%a8php5-4\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%9d%e8%af%95%e5%ae%89%e8%a3%85php-test_helpers%e4%bb%a5%e4%bd%bf%e7%94%a8php5-4\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5c1d\u8bd5\u5b89\u88c5php-test_helpers\u4ee5\u4f7f\u7528php5.4\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9\",\"name\":\"\u65b0, \u97f5\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g\",\"caption\":\"\u65b0, \u97f5\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunxin\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%9d%e8%af%95%e5%ae%89%e8%a3%85php-test_helpers%e4%bb%a5%e4%bd%bf%e7%94%a8php5-4\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u5c1d\u8bd5\u5b89\u88c5php-test_helpers\u4ee5\u4f7f\u7528php5.4 - Blog - Silicon Cloud","description":"\u5173\u4e8e\u5c1d\u8bd5\u5b89\u88c5php-test_helpers\u4ee5\u4f7f\u7528php5.4\u7684\u6280\u672f\u6587\u7ae0","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:\/\/www.silicloud.com\/zh\/blog\/\u5c1d\u8bd5\u5b89\u88c5php-test_helpers\u4ee5\u4f7f\u7528php5-4\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5c1d\u8bd5\u5b89\u88c5php-test_helpers\u4ee5\u4f7f\u7528php5.4","og_description":"\u5173\u4e8e\u5c1d\u8bd5\u5b89\u88c5php-test_helpers\u4ee5\u4f7f\u7528php5.4\u7684\u6280\u672f\u6587\u7ae0","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u5c1d\u8bd5\u5b89\u88c5php-test_helpers\u4ee5\u4f7f\u7528php5-4\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-12-24T12:34:58+00:00","article_modified_time":"2025-08-12T11:51:54+00:00","author":"\u65b0, \u97f5","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u65b0, \u97f5","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%9d%e8%af%95%e5%ae%89%e8%a3%85php-test_helpers%e4%bb%a5%e4%bd%bf%e7%94%a8php5-4\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%9d%e8%af%95%e5%ae%89%e8%a3%85php-test_helpers%e4%bb%a5%e4%bd%bf%e7%94%a8php5-4\/","name":"\u5c1d\u8bd5\u5b89\u88c5php-test_helpers\u4ee5\u4f7f\u7528php5.4 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-12-24T12:34:58+00:00","dateModified":"2025-08-12T11:51:54+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9"},"description":"\u5173\u4e8e\u5c1d\u8bd5\u5b89\u88c5php-test_helpers\u4ee5\u4f7f\u7528php5.4\u7684\u6280\u672f\u6587\u7ae0","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%9d%e8%af%95%e5%ae%89%e8%a3%85php-test_helpers%e4%bb%a5%e4%bd%bf%e7%94%a8php5-4\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%9d%e8%af%95%e5%ae%89%e8%a3%85php-test_helpers%e4%bb%a5%e4%bd%bf%e7%94%a8php5-4\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%9d%e8%af%95%e5%ae%89%e8%a3%85php-test_helpers%e4%bb%a5%e4%bd%bf%e7%94%a8php5-4\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u5c1d\u8bd5\u5b89\u88c5php-test_helpers\u4ee5\u4f7f\u7528php5.4"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9","name":"\u65b0, \u97f5","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g","caption":"\u65b0, \u97f5"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunxin\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%9d%e8%af%95%e5%ae%89%e8%a3%85php-test_helpers%e4%bb%a5%e4%bd%bf%e7%94%a8php5-4\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/30581","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=30581"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/30581\/revisions"}],"predecessor-version":[{"id":91008,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/30581\/revisions\/91008"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=30581"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=30581"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=30581"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}