![[PHP]ZendFrameworkã§ä½æããControllerãPHPUnitã§ãã¹ããã | ããã°ãç¶ããªããã](https://cdn-ak-scissors.b.st-hatena.com/image/square/2302e44c95c7e474fefb218540004f95dc47a4bb/height=288;version=1;width=512/https%3A%2F%2Fimaging.jugem.jp%2Ftemplate%2Fimg%2Fjugem_og-image.png)
éçºã®å ¨å·¥ç¨ã®ä¸ã§ããã¾ã人æ°ããªãã®ããã¹ãå·¥ç¨ã ãã½ããã¦ã§ã¢ã®å質ã証æããããã®ãã¹ãã¯ããªãä½ãè¦ããã¦ãã¾ãã®ãï¼ç·¨éé¨ï¼ xUnitã¨ããå称ã®ãã¹ãã£ã³ã°ãã¬ã¼ã ã¯ã¼ã¯ 第1åãã¦ããããã¹ãã¯ãªãå¿ è¦ãªã®ï¼ãã§ã¯ãã¦ããããã¹ãã®å¿ è¦æ§ã解説ãã¾ãããä»åã¯å®éã«ãã¹ãã£ã³ã°ãã¬ã¼ã ã¯ã¼ã¯ã使ç¨ãã¦ããã¹ãé§åéçºãé²ãããã®å¿ è¦æ§ã¨éè¦æ§ãä½é¨ãã¦ã¿ã¾ãããã ã¦ããããã¹ããèªååããããã®ãã¹ãã£ã³ã°ãã¬ã¼ã ã¯ã¼ã¯ã¯å¤ãã®è¨èªã§æä¾ããã¦ãããJavaã®JUnitããVisual Basicã®VBUnitãRubyã®RubyUnitãPerlã®PerlUnitãªã©ãè¨èªåãæ¥é è¾ã«ããããUnitãã¨ããå称ã®ãã¹ãã£ã³ã°ãã¬ã¼ã ã¯ã¼ã¯ã主æµã§ãããããã¯ãã¾ãã¾ååãä¼¼ã¦ããã¨ããããã§ã¯ãªããæåã®ã¦ããããã¹ããã¼ã«ã§ããSmallTalkç¨ã®SUnitãåºã«
CakePHPã¯ãã¼ã¸ã§ã³2ç³»ãããã¹ãã¹ã¤ã¼ããSimpleTestããPHPUnitã«å¤æ´ã«ãªã£ãã PHPUnitã¯é常PEARã³ãã³ããå©ç¨ãã¦ã¤ã³ã¹ãã¼ã«ããã®ã§ãroot権éããªãã¨è¥å¹²é¢åã ã£ããããã ãã ããã¹ãã¹ã¤ã¼ãã¯ããã¸ã§ã¯ãã®æåã®ã»ãã§è¨å®ãã¦ããããã¨ããã ãã¨å人çã«ã¯ãCakePHPã®ããã®ãã£ã¬ã¯ããªã ãã§ããã¸ã§ã¯ããªã¼ã«ã¤ã³ã¯ã³ããã±ã¼ã¸ãçãªã¡ãªããã¯ã¯ãããªãã ã¨ããããã§bakeã®åã«ããã¸ã§ã¯ããã£ã¬ã¯ããªå ã«PHPUnitãã¤ã³ã¹ãã¼ã«ãã¦ã¿ãã PHPUnitãCakePHPããã¸ã§ã¯ãå ã«ãã¼ã«ã«ã¤ã³ã¹ãã¼ã«ãã4ã¤ã®ã¹ããã 1.CakePHP2ã®è¨ç½® ãã¤ãã®ããã«ä»»æã®ãã£ã¬ã¯ããªã«CakePHPã®ãã£ã¬ã¯ããªãè¨ç½®ããã¼ã¸ã§ã³2ã«ãªã£ã¦ããã¸ã§ã¯ãã«ã¼ãã«cake/ããªãã¦ãlib/ããã£ãããã¦è¥å¹²æ¸æããã©ãã®ã¾ã¾è¨ç½®
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}