LaravelでTDDを体験しよう #phpcon2018

4584c227ef4ea69e789e5f53e0476418?s=47 omoon
December 15, 2018

LaravelでTDDを体験しよう #phpcon2018

PHPカンファレンス2018発表資料です。

4584c227ef4ea69e789e5f53e0476418?s=128

omoon

December 15, 2018
Tweet

Transcript

  1. -BSBWFMͰ5%%Λମݧ͠Α͏ 1)1ΧϯϑΝϨϯε %FD  4PUBSP0.63" !PNPPO

  2. "CPVU.F

  3. "CPVU.F w4PUBSP0.63"

  4. "CPVU.F w4PUBSP0.63" wGSPN0TBLB

  5. "CPVU.F w4PUBSP0.63" wGSPN0TBLB wPNPPOPSH

  6. "CPVU.F w4PUBSP0.63" wGSPN0TBLB wPNPPOPSH w!PNPPO

  7. "CPVU.F w4PUBSP0.63" wGSPN0TBLB wPNPPOPSH w!PNPPO

  8. None
  9. None
  10. XJUI1)1

  11. XJUI1)1 w ZFBST

  12. XJUI1)1 w ZFBST wΦϨΦϨˠ4ZNGPOZˠ'VFM1)1ˠ-BSBWFM

  13. None
  14. None
  15. 5PQJDT wୈষ5%%ͱ͸ wୈষ։ൃ؀ڥ४උ wୈষ5%%͜ͱ͸͡Ί wୈষϦζϜΛײ͡Δ wୈষσʔλϕʔε wୈষ࣌ؒͷڐ͢ݶΓ

  16. ୈষ5%%ͱ͸

  17. 5FTU%SJWFO %FWFMPQNFOU

  18. 5FTU%SJWFO %FWFMPQNFOU

  19. ςετۦಈ։ൃ

  20. ςετۦಈ։ൃ

  21. None
  22. None
  23. 5%%ͷ໨ࢦ͢ͱ͜Ζ

  24. ಈ࡞͢Δ͖Ε͍ͳίʔυ

  25. ಈ࡞͠ͳ͍ ಈ࡞͢Δ ͖Ε͍ ΰʔϧ ͖ͨͳ͍ ελʔτ

  26. ಈ࡞͠ͳ͍ ಈ࡞͢Δ ͖Ε͍ ΰʔϧ ͖ͨͳ͍ ελʔτ

  27. ಈ࡞͠ͳ͍ ಈ࡞͢Δ ͖Ε͍ ΰʔϧ ͖ͨͳ͍ ελʔτ

  28. None
  29. IUUQTDIBOOFMNTEODPN &WFOUTEFDPEF%0

  30. 5%%ͷϓϩηε w·ͣςετΛॻ͘ wςετ͕ࣦഊ͢Δ͜ͱΛ֬ೝ wͱʹ͔͘ૉૣ࣮͘૷ wςετ͕੒ޭ͢Δ͜ͱΛ֬ೝ wςετ͕੒ޭ͢Δ͜ͱΛ֬ೝ͠ͳ͕ΒϦϑΝΫλϦϯά w࠷ॳʹ໭Δ

  31. None
  32. ίʔυͷ඼࣭Λ ୲อ͢Δ΋ͷ

  33. ։ൃऀ͕ ؾ࣋ͪΑ͘։ൃ͢ΔͨΊͷख๏

  34. None
  35. ϦζϜ

  36. ϦζϜ

  37. ʮགྷΔΜͩΑʯ ʮԻָͷ໐͍ͬͯΔؒ͸ͱʹ͔͘གྷΓଓ͚ΔΜͩɻ͓͍Βͷݴ͍ͬͯΔ͜ͱ͸Θ͔Δ͔͍ʁ གྷΔΜͩɻགྷΓଓ͚ΔΜͩԿނགྷΔ͔ͳΜͯߟ͑ͪΌ͍͚ͳ͍ɻҙຯͳΜͯ͜ͱ͸ߟ͑ͪΌ ͍͚ͳ͍ɻҙຯͳΜͯ΋ͱ΋ͱͳ͍ΜͩɻͦΜͳ͜ͱߟ͑ͩͨ͠Β଍͕ఀ·ΔɻҰ౓଍͕ ఀ·ͬͨΒɺ΋͏͓͍Βʹ͸Կͱ΋ͯ͋͛͠ΒΕͳ͘ͳͬͯ͠·͏ɻ͋Μͨͷܨ͕Γ͸΋ ͏Կ΋ͳ͘ͳͬͯ͠·͏ɻӬԕʹͳ͘ͳͬͯ͠·͏ΜͩΑɻͦ͏͢Δͱ͋Μͨ͸ͬͪ͜ͷ ੈքͷதͰ͔͠ੜ͖͍͚ͯͳ͘ͳͬͯ͠·͏ɻͲΜͲΜͬͪ͜ͷੈքʹҾ͖ࠐ·Εͯ͠· ͏Μͩɻ͔ͩΒ଍ΛఀΊͪΌ͍͚ͳ͍ɻͲΕ͚ͩഅࣛഅࣛ͘͠ࢥ͑ͯ΋ɺͦΜͳ͜ͱؾʹ ͪ͠Ό͍͚ͳ͍ɻ͖ͪΜͱεςοϓΛ౿ΜͰགྷΓଓ͚ΔΜͩΑɻͦͯ͠ݻ·ͬͯ͠·ͬͨ ΋ͷΛগͣͭ͠Ͱ΋͍͍͔Β΄͙͍ͯ͘͠ΜͩΑɻ·ͩख஗Εʹͳ͍ͬͯͳ͍΋ͷ΋͋Δ

    ͸ͣͩɻ࢖͑Δ΋ͷ͸શ෦࢖͏ΜͩΑɻϕετΛਚ͘͢ΜͩΑɻා͕Δ͜ͱ͸Կ΋ͳ͍ɻ ͋Μͨ͸͔ͨ͠ʹർΕ͍ͯΔɻർΕͯɺڴ͍͑ͯΔɻ୭ʹͰ΋ͦ͏͍͏͕࣌͋ΔɻԿ΋͔ ΋͕ؒҧ͍ͬͯΔΑ͏ʹײ͡ΒΕΔΜͩɻ͔ͩΒ଍͕ఀ·ͬͯ͠·͏ʯ ʮͰ΋གྷΔ͔͠ͳ͍ΜͩΑʯ ʮͦΕ΋ͱͼ͖ͬΓ্ख͘གྷΔΜͩɻΈΜͳ͕ײ৺͢Δ͘Β͍ʹɻͦ͏͢Ε͹͓͍Β΋͋ Μͨͷ͜ͱΛɺख఻ͬͯ͋͛ΒΕΔ͔΋͠Εͳ͍ɻ͔ͩΒགྷΔΜͩΑɻԻָͷଓ͘ݶΓʯ ΦυϧϯμϤɻΦϯΨΫϊπρΫΧΪϦɻ —μϯεɾμϯεɾμϯεʢଜ্य़थʣ
  38. ࠓ೔఻ΘΔͱ͍͍ͳͱࢥ͏͜ͱ wؼ͙ͬͯ͢ʹ࢝ΊΒΕΔ։ൃ؀ڥͷ࡞Γํ w5%%͸։ൃऀͷͨΊͷ΋ͷͰ͋Δͱ͍͏͜ͱ w5%%ͷ΋ͭϦζϜ

  39. ୈষ։ൃ؀ڥ४උ

  40. ։ൃ؀ڥ w.BD DPNQPTFSJOTUBMMFE  w1IQ4UPSN

  41. -BSBWFM wDPNQPTFSDSFBUFQSPKFDUQSFGFSEJTUMBSBWFM MBSBWFMQIQDPO@UEE wDPNQPTFSSFRVJSFMBSBWFMIPNFTUFBEŠEFW wQIQWFOEPSCJOIPNFTUFBENBLF wWBHSBOUVQ

  42. 1IQ4UPSN wBEE$-**OUFSQSFUFS wBEE5FTU'SBNFXPSL$POpHVSBUJPO

  43. 'PS-BSBWFM%FWFMPQNFOU wDPNQPTFSSFRVJSFEPDUSJOFECBMlCBSSZWEI MBSBWFMJEFIFMQFS wQIQBSUJTBOJEFIFMQFSHFOFSBUF wVTFMBSBWFMQMVHJO

  44. ୈষ5%%͜ͱ͸͡Ί

  45. 5%%ͷϓϩηε w·ͣςετΛॻ͘ wςετ͕ࣦഊ͢Δ͜ͱΛ֬ೝ wͱʹ͔͘ૉૣ࣮͘૷ wςετ͕੒ޭ͢Δ͜ͱΛ֬ೝ wςετ͕੒ޭ͢Δ͜ͱΛ֬ೝ͠ͳ͕ΒϦϑΝΫλϦϯά w࠷ॳʹ໭Δ

  46. ϦζϜ

  47. ୈষϦζϜΛײ͡Δ

  48. ૝ఆΞϓϦ

  49. None
  50. None
  51. 5P%PϦετ࡞੒

  52. 5P%PϦετ w ABQJDVTUPNFSTAʹ(&5ϝιουͰΞΫηεͰ͖Δ w ABQJDVTUPNFSTAʹ1045ϝιουͰΞΫηεͰ͖Δ w ABQJDVTUPNFST\DVTUPNFS@JE^Aʹ(&5ϝιουͰΞΫηεͰ͖Δ w ABQJDVTUPNFST\DVTUPNFS@JE^Aʹ165ϝιουͰΞΫηεͰ͖Δ w

    ABQJDVTUPNFST\DVTUPNFS@JE>Aʹ%&-&5&ϝιουͰΞΫηεͰ͖Δ w ABQJSFQPSUTAʹ(&5ϝιουͰΞΫηεͰ͖Δ w ABQJSFQPSUTAʹ1045ϝιουͰΞΫηεͰ͖Δ w ABQJSFQPSUT\SFQPSU@JE^Aʹ(&5ϝιουͰΞΫηεͰ͖Δ w ABQJSFQPSUT\SFQPSU@JE^Aʹ165ϝιουͰΞΫηεͰ͖Δ w ABQJSFQPSUT\SFQPSU@JE>Aʹ%&-&5&ϝιουͰΞΫηεͰ͖Δ
  53. ςετʹԿΛॻ͔͘ wԿ͔Λʮ࣮ߦʯͨ࣌͠ͷ݁ՌΛ wʮݕূʯ͢Δ wʮݕূʯˠʮ࣮ߦʯ

  54. 5%%ͷϓϩηε w·ͣςετΛॻ͘ wςετ͕ࣦഊ͢Δ͜ͱΛ֬ೝ wͱʹ͔͘ૉૣ࣮͘૷ wςετ͕੒ޭ͢Δ͜ͱΛ֬ೝ wςετ͕੒ޭ͢Δ͜ͱΛ֬ೝ͠ͳ͕ΒϦϑΝΫλϦϯά w࠷ॳʹ໭Δ

  55. ϦζϜ

  56. ୈষσʔλϕʔε

  57. None
  58. σʔλϕʔε w&MPRVFOUϞσϧ࡞੒ wϚΠάϨʔγϣϯ wGBDUPSZTFFEFSʢμϛʔσʔλΛ࡞੒͢ΔͨΊʹʣ wςετͱͷ༥߹

  59. ୈষ࣌ؒͷڐ͢ݶΓ

  60. Ծ࣮૷ w௒؆୯ͳςετΛॻ͘ wςετΛ࣮ߦͯ͠ʮࣦഊʯΛ֬ೝ w࣮૷ʢૉૣ͘ɺ࠷খݶͰʣ wςετͷʮ੒ޭʯΛ֬ೝ w࣮૷Ͱ͸ͳ͘ʮςετ͕ʯਖ਼͍͜͠ͱ͕֬ೝͰ͖Δ

  61. "OZRVFTUJPOT