{"id":766,"date":"2007-08-10T01:00:00","date_gmt":"2007-08-09T16:00:00","guid":{"rendered":"https:\/\/ecoop.net\/memo\/2007-08-10-1.html"},"modified":"2007-08-10T01:00:00","modified_gmt":"2007-08-09T16:00:00","slug":"2007-08-10-1","status":"publish","type":"post","link":"https:\/\/www.ecoop.net\/memo\/archives\/2007-08-10-1.html","title":{"rendered":"symfony \u3067\u306e\u30c6\u30b9\u30c8(\u5358\u4f53\u30c6\u30b9\u30c8\/\u6a5f\u80fd\u30c6\u30b9\u30c8)"},"content":{"rendered":"<p>\nsymfony \u3067\u306e\u30c6\u30b9\u30c8\u306f\u6a5f\u80fd\u30c6\u30b9\u30c8(functional test)\u3001\u5358\u4f53\u30c6\u30b9\u30c8(unit test)\u304c\u6a19\u6e96\u3067\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u304a\u308a\u3001\u305d\u308c\u305e\u308c\u4ee5\u4e0b\u306e\u7279\u5fb4\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n&nbsp;<br \/>\n\u25a1\u6a5f\u80fd\u30c6\u30b9\u30c8<br \/>\n&#8211; \u30e2\u30b8\u30e5\u30fc\u30eb\u751f\u6210\u6642\u306b test\/functional \u306b\u81ea\u52d5\u751f\u6210\u3055\u308c\u308b\u3002<br \/>\n&#8211; test\/{$app}\/{$module}ActionsTest.php \u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u540d($app,$module \u306f\u305d\u308c\u305e\u308c\u30c6\u30b9\u30c8\u5bfe\u8c61\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u540d\u3068\u30e2\u30b8\u30e5\u30fc\u30eb\u540d)<br \/>\n&#8211; \u30c6\u30b9\u30c8\u7528\u4eee\u60f3 symfony \u30b5\u30a4\u30c8\u30d6\u30e9\u30a6\u30b6 \u30af\u30e9\u30b9\u306e sfTestBrowser \u3092\u4f7f\u3063\u305f\u30e2\u30b8\u30e5\u30fc\u30eb\u5358\u4f4d\u306e\u30c6\u30b9\u30c8\u304c\u4e2d\u5fc3\u3002<br \/>\n&#8211; \u6700\u521d\u304b\u3089\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30c6\u30b9\u30c8\u5b9f\u88c5\u304c\u3042\u308b<br \/>\n&nbsp;&nbsp;(ver 1.0.6 \u6642\u70b9\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u30c6\u30b9\u30c8\u5b9f\u88c5\u306f\u3001\u30e2\u30b8\u30e5\u30fc\u30eb\u306e index \u30a2\u30af\u30b7\u30e7\u30f3\u304c\u521d\u671f\u306e\u307e\u307e\u3067\u306f\u306a\u3044\u304b\u3092\u30c6\u30b9\u30c8\u3059\u308b\u3068\u3044\u3046\u3082\u306e)<br \/>\n&#8211; \u30c6\u30b9\u30c8\u5b9f\u884c\u306f \n<\/p>\n<blockquote><p>symfony test-functional &lt;appname> \n<\/p><\/blockquote>\n<p>&nbsp;&nbsp;\u3082\u3057\u304f\u306f \n<\/p>\n<blockquote><p>symfony test-all\n<\/p><\/blockquote>\n<p>&nbsp;&nbsp;\u3067\u884c\u3046<br \/>\n&nbsp;<br \/>\n\u25a1\u5358\u4f53\u30c6\u30b9\u30c8<br \/>\n&#8211; \u6a5f\u80fd\u30c6\u30b9\u30c8\u306e\u3088\u3046\u306a\u81ea\u52d5\u751f\u6210\u306f\u3055\u308c\u306a\u3044\u304c\u3001test\/bootstrap\/unit.php \u3092\u30a4\u30f3\u30af\u30eb\u30fc\u30c9\u3059\u308b\u3053\u3068\u3067\u5bb9\u6613\u306b\u30c6\u30b9\u30c8\u3092\u4f5c\u6210\u53ef\u80fd\u3002<br \/>\n&#8211; test\/unit\/{$testName}Test.php \u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u540d($testName \u306f\u4efb\u610f\u306e\u540d\u524d)<br \/>\n&#8211; \u6c4e\u7528\u5358\u4f53\u30c6\u30b9\u30c8\u30af\u30e9\u30b9 lime_test \u3092\u4f7f\u3063\u305f\u3001\u30e9\u30a4\u30d6\u30e9\u30ea\u7b49\u306e\u30af\u30e9\u30b9\u3092\u5bfe\u8c61\u306b\u3057\u305f\u500b\u5225\u306e\u30c6\u30b9\u30c8\u304c\u4e2d\u5fc3\u3002<br \/>\n&#8211; \u30c6\u30b9\u30c8\u5b9f\u884c\u306f \n<\/p>\n<blockquote><p>symfony test-unit \n<\/p><\/blockquote>\n<p>&nbsp;&nbsp;\u3082\u3057\u304f\u306f \n<\/p>\n<blockquote><p>symfony test-all \n<\/p><\/blockquote>\n<p>&nbsp;&nbsp;\u3067\u884c\u3046<br \/>\n&nbsp;<br \/>\n\u306a\u304a\u3001\u5358\u4f53\u3001\u6a5f\u80fd\u3069\u3061\u3089\u306e\u30c6\u30b9\u30c8\u3082\n<\/p>\n<blockquote><p>php test\/functional\/appname\/fooActionsTest.php\n<\/p><\/blockquote>\n<p>\u306e\u3088\u3046\u306b PHP \u30b9\u30af\u30ea\u30d7\u30c8\u3068\u3057\u3066\u5b9f\u884c\u3059\u308b\u3068\u3001\u305d\u306e\u30c6\u30b9\u30c8\u3060\u3051\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\u3053\u306e\u3088\u3046\u306b\u3059\u308b\u3053\u3068\u3067\u3001\u5931\u6557\u3057\u305f\u30c6\u30b9\u30c8\u304c\u3069\u306e\u9805\u76ee\u3067\u5931\u6557\u3057\u305f\u304b\u3092\u8abf\u3079\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n&nbsp;<br \/>\n\u25a0sfTestBrowser \u30af\u30e9\u30b9<br \/>\nsfBrowser \u30af\u30e9\u30b9\u306e\u30c6\u30b9\u30c8\u7528\u5b9f\u88c5\u7248(sfBrowser \u306e\u5b50\u30af\u30e9\u30b9)\u3002<br \/>\nsfBrowser \u30af\u30e9\u30b9\u306fTCP \u7b49\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u901a\u4fe1\u3092\u4f34\u308f\u305a\u306b symfony \u30b5\u30a4\u30c8\u5185\u30da\u30fc\u30b8\u306e\u30d6\u30e9\u30a6\u30b8\u30f3\u30b0\u53ef\u80fd\u306a\u4eee\u60f3\u30d6\u30e9\u30a6\u30b6\u5b9f\u88c5\u3067\u3059\u3002<br \/>\n&nbsp;<br \/>\n\u25a0lime_test \u30af\u30e9\u30b9<br \/>\nlime \u306e\u6c4e\u7528\u5358\u4f53\u30c6\u30b9\u30c8\u30af\u30e9\u30b9\u3002<br \/>\nlime \u306f symfony \u30c1\u30fc\u30e0\u958b\u767a\u306e\u30e6\u30cb\u30c3\u30c8\u30c6\u30b9\u30c8\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u3067\u3059\u3002<br \/>\n&nbsp;<br \/>\n\u5099\u8003:<br \/>\n&nbsp;\u3069\u3061\u3089\u306e\u30af\u30e9\u30b9\u306b\u3064\u3044\u3066\u3082\u3001\u30e1\u30bd\u30c3\u30c9\u306e\u623b\u308a\u5024\u3044\u304c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u81ea\u8eab\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u8fd4\u3057\u3066\u304f\u308c\u308b\u306e\u3067 \n<\/p>\n<blockquote><p>$t->get(&#8230;)->is&#8230;(&#8230;)->is&#8230;(&#8230;) \n<\/p><\/blockquote>\n<p>\u306e\u3088\u3046\u306b\u30c6\u30b9\u30c8\u306e\u30c1\u30a7\u30a4\u30f3\u304c\u3067\u304d\u308b\u305f\u3081\u3001SimpleTest \u306a\u3069\u306e xUnit \u4e92\u63db\u306e\u3082\u306e\u3088\u308a\u8a18\u8ff0\u304c\u5bb9\u6613\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\n\u53c2\u8003:<br \/>\n&#8211; <a href=\"http:\/\/www.symfony-project.com\/api\/symfony\/test\/sfTestBrowser.html\">sfTestBrowser<\/a> (symfony API)<br \/>\n&#8211; <a href=\"http:\/\/www.symfony-project.com\/api\/symfony\/util\/sfBrowser.html\">sfBrowser<\/a> (symfony API)<br \/>\n&#8211; <a href=\"http:\/\/cpr.in-berlin.de\/mirror\/symfony-project.com\/api-1.0.0beta4\/df\/d28\/classlime__test.htm\">lime_test class<\/a><br \/>\n&nbsp;(lime_test \u30af\u30e9\u30b9\u306e phpdoc \u30c9\u30ad\u30e5\u30e1\u30f3\u30c8)<br \/>\n&#8211; <a href=\"http:\/\/blog.symfony.jp\/2006\/12\/12\/lime-without-symfony-1\/\">\u65b0\u3057\u304f\u63a1\u7528\u3055\u308c\u305f\u30c6\u30b9\u30c6\u30a3\u30f3\u30b0\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30aflime\u306e\u7d39\u4ecb<\/a>(symfony \u3067\u958b\u767a\u65e5\u8a18)<br \/>\n&nbsp;lime_test \u30af\u30e9\u30b9\u30e1\u30bd\u30c3\u30c9\u306e\u65e5\u672c\u8a9e\u8aac\u660e\u306a\u3069\u3002<br \/>\n&#8211; <a href=\"http:\/\/www.symfony-project.com\/book\/trunk\/15-Unit-and-Functional-Testing\">Chapter 15 &#8211; Unit And Fanctional Testing<\/a>(The Definitive Guide to symfony)<br \/>\n&#8211; <a href=\"http:\/\/symfony.xrea.jp\/definitive\/15.html\">15\u7ae0 \u5358\u4f53\u30c6\u30b9\u30c8\u3068\u6a5f\u80fd\u30c6\u30b9\u30c8<\/a>(\u4e0a\u306e\u30ea\u30f3\u30af\u306e\u65e5\u672c\u8a9e\u8a33\u7248)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>symfony \u3067\u306e\u30c6\u30b9\u30c8\u306f\u6a5f\u80fd\u30c6\u30b9\u30c8(functional test)\u3001\u5358\u4f53\u30c6\u30b9\u30c8(unit test)\u304c\u6a19\u6e96\u3067\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u304a\u308a\u3001\u305d\u308c\u305e\u308c\u4ee5\u4e0b\u306e\u7279\u5fb4\u304c\u3042\u308a\u307e\u3059\u3002 &nbsp; \u25a1\u6a5f\u80fd\u30c6\u30b9\u30c8 &#8211; \u30e2\u30b8\u30e5\u30fc\u30eb &hellip; <a href=\"https:\/\/www.ecoop.net\/memo\/archives\/2007-08-10-1.html\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">symfony \u3067\u306e\u30c6\u30b9\u30c8(\u5358\u4f53\u30c6\u30b9\u30c8\/\u6a5f\u80fd\u30c6\u30b9\u30c8)<\/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":[],"tags":[32],"class_list":["post-766","post","type-post","status-publish","format-standard","hentry","tag-php"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts\/766","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/comments?post=766"}],"version-history":[{"count":0,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts\/766\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/media?parent=766"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/categories?post=766"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/tags?post=766"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}