ã¯ããã« jestã®ãã¹ããæ¸ãã¦ãããã¡ã«ãã±ã¼ã¹ãå¢ãã¦ãã¦è¦ã¥ãããªã£ã¦ãã¾ã£ãã®ã§PHPUnitã®DataProviderçãªã®ãæ¸ããªãã調ã¹ãã¨ãããã£ãã®ã§åå¿é²ã¨ãã¦æ®ãã¦ããã¾ãã ãã¹ã対象ã®é¢æ° ä¸è¨ã®ãããªè¶³ãç®ãããé¢æ°ãããã¨ãã¾ããã§ã¯ãã®é¢æ°ã®ãã¹ããæ¸ãã¦ã¿ã¾ãããï¼ export const addition = ( firstNumber: number, secondNumber: number ): number => { return firstNumber + secondNumber; }; ããæ¸ãæ¸ãæ¹ test.eachã使ãå ´åã¯ãããããããã£ãæ¸ãæ¹ãããã¨æãã¾ãã ããããã®æ¸¡ãã¦ããé åé¡ããããè¦ã¦ãã©ããä½ã®ãã©ã¡ã¼ã¿ã¼ãåããã¥ããã§ããã... ããã§ä»åã¯PHPUnitã®DataProviderã¿ãããªå½¢ã§æ¸ãç´ã
{{#tags}}- {{label}}
{{/tags}}