ååæºåãããPHPUnitãã®ãµã³ãã«ãããªãã¸ã§ã¯ãå¶æ¥½é¨ãã§ç´¹ä»ããã¦ãããè»çªããã®TDDã(PDF)ã¨ããè¨äºãåèã«ãTDD(Test Driven Development / ãã¹ãé§åéçº)ã¨ãã¢ããã°ã©ãã³ã°ã®æ¼ç¿è¨äºãPHPUnitã§ãªãã£ã¦ã¿ããæ®å¿µãªããèªå® ã§ç¬ãã§æ¸ããã®ã§ããã¢ããã®ãµã³ãã«ã«ã¯ãªããªããã ä½ãã®ã¯ã¹ã¿ãã¯ã¯ã©ã¹ãä»æ§ã¯â¦ isEmpty()ã§ã¹ã¿ãã¯ã空ã®å ´åãtrueããã以å¤false ãè¿ãã boolean isEmpty()size()ã§ã¹ã¿ãã¯ã®ãµã¤ãºãåå¾ããã int size()push()ã§å¼æ°ã®å¤ãã¹ã¿ãã¯ã®ä¸çªä¸ã«ç©ãã void push(int value)pop()ã§ã¹ã¿ãã¯ã®ä¸çªä¸ã®å¤ãåãé¤ãã void pop() ã¹ã¿ãã¯ã空ã®å ´åãjava.util.EmptyStackException ãçºçããt
{{#tags}}- {{label}}
{{/tags}}