Slide 1

Slide 1 text

όʔνʔ(.01&1"#0JOD ʲϖύϘºϓϨΠυʳ5FDI.FFUVQʙࣗಈςετɾ$*ฤ άʔϖͷ&&ςετӡ༻ࣄ৘

Slide 2

Slide 2 text

ࣗݾ঺հCZ1)16OJU class MeTest extends PHPUnit_Framework_TestCase { protected $me; public function setUp() { $this->me = new Me(); } public function testNickname_ReturnMyNickName_WhenValidPerson() { $this->assertEquals('όʔνʔ', $this->me->nickname()); } public function testCompany_ReturnMyCompanyName_WhenValidPerson() { $this->assertEquals('GMO ϖύϘ', $this->me->company()); } public function testJob_ReturnMyJob_WhenValidPerson() { $this->assertEquals('αʔόʔαΠυΤϯδχΞ', $this->me->job()); } }

Slide 3

Slide 3 text

ࣗݾ঺հCZ1)16OJU $ vendor/bin/phpunit tests/MeTest.php PHPUnit 5.4.8 by Sebastian Bergmann and contributors. ... 3 / 3 (100%) Time: 45 ms, Memory: 3.00MB OK (3 tests, 3 assertions)

Slide 4

Slide 4 text

ϗʔϜϖʔδ࡞੒αʔϏεʮάʔϖʯ IUUQTHPPQFKQ

Slide 5

Slide 5 text

&&ςετ ࠓ೔͓࿩͍ͨ͜͠ͱ͸

Slide 6

Slide 6 text

άʔϖςετίʔυঢ়گ wϢχοτςετɺ&&ςετ͸ແ͔ͬͨ wਓһ૿ՃɺϏδωεͷ֦େʹ൐͍ΞϓϦέʔγϣϯͷ҆ఆੑΛ୲อ͢ΔͨΊɺ ςετίʔυͷ੔උ͕ٸ຿ͱͳͬͨ w։ൃνʔϜϝϯόʔʹςετίʔυͷඞཁੑͱ࣮૷ํ๏Λڞ༗ wϢχοτςετ 1)16OJU &&ςετͷಋೖͱςετίʔυͷ౎౓௥Ճ w·ͩ·ͩςετέʔε͸ѹ౗తʹ଍Γͳ͍͕ɺܧଓతʹ૿͍͑ͯΔ ೥൒લ ࠓ

Slide 7

Slide 7 text

&&ςετͱ͸ wΤϯυπʔΤϯυςετ w8FCαΠτ΍ΞϓϦέʔγϣϯͷʮ։͔࢝Βऴྃ·Ͱʯ͕ظ଴௨Γʹಈ࡞͢ Δ͔Λςετ͢Δ͜ͱ

Slide 8

Slide 8 text

ظ଴௨Γʹಈ࡞͢Δͱ͸ʁ ϩάΠϯͯ͠ ͓஌Βͤߋ৽ը໘Λೖྗͯ͠

Slide 9

Slide 9 text

ظ଴௨Γʹಈ࡞͢Δͱ͸ʁ ొ࿥ϘλϯΛԡ͢ͱ ϝοηʔδ͕දࣔ͞Εͯ ొ࿥͓ͨ͠஌Β͕ͤ දࣔ͞Ε͍ͯΔ͜ͱ

Slide 10

Slide 10 text

Α͘खಈ֬ೝ͍ͯ͠Δ͚Ͳ मਖ਼ͷ౓ʹ֬ೝ͢Δͷ͸खؒͩɾɾɾ

Slide 11

Slide 11 text

ͦ͜Ͱ&&ςετͷग़൪ͩʂ

Slide 12

Slide 12 text

άʔϖͷ&&ӡ༻ࣄ৘

Slide 13

Slide 13 text

γεςϜߏ੒

Slide 14

Slide 14 text

&&ςετCZ+FOLJOT ࣾ಺։ൃ؀ڥʹσϓϩΠ +FOLJOT"1*ʹ௨஌ &&ςετͷδϣϒΛ࣮ߦ ݁ՌΛ௨஌

Slide 15

Slide 15 text

&&ςετϛυϧ΢ΣΞ؀ڥ 3VCZ੡ςετϑϨʔϜϫʔΫ 8FCΞϓϦέʔγϣϯͷ ςετϑϨʔϜϫʔΫ $BQZCBSB༻1IBOUPN+4υϥΠόʔ )FBEMFTT8FCLJUϕʔεϒϥ΢β
 ʢཁ͸ը໘ແ͠ͷίϚϯυϕʔεϒϥ΢βʣ

Slide 16

Slide 16 text

άʔϖ&&ςετͷಛ௃ wࣾ಺؀ڥαʔόʔ΁σϓϩΠ࣌ʹɺࣾ಺։ൃ؀ڥαʔόʔʹରͯ͠&&ςετ Λ࣮ߦ͍ͯ͠Δ wσβΠφʔ΋ར༻͍ͯ͠Δ

Slide 17

Slide 17 text

&&ςετͰԿΛ֬ೝ͍ͯ͠Δ͔ ਖ਼ৗӾཡग़དྷΔ͔ ࢓༷௨Γʹಈ࡞͍ͯ͠Δ͔

Slide 18

Slide 18 text

ਖ਼ৗӾཡςετ

Slide 19

Slide 19 text

ਖ਼ৗӾཡςετ wԿΛ΍Δͷ͔ wશϖʔδ͕0,͔ͭΤϥʔදࣔͳ͘ਖ਼ৗʹӾཡͰ͖Δ͔ wͳͥ΍Δͷ͔ wςετෆ଍ͳঢ়گԼʹ͓͍ͯɺશϖʔδ͕ઈରʹਖ਼ৗʹಈ͘อূ͸ແ͍ w࣮૷ίετ w࣮૷͕ͱʹ͔͘؆୯ʂ

Slide 20

Slide 20 text

࣮૷ྫʣ0,ຢ͸1)1Τϥʔແ͠Λ֬ೝ͢Δ ˞্ه&&ςετ͸ɺ1)1ΤϥʔɾܯࠂΛද͍ࣔͤͯ͞Δࣾ಺։ൃ؀ڥΛલఏͱ͍ͯ͠·͢ɻ SFRVJSFTQFD@IFMQFS
 
 TIBSFE@FYBNQMFT@GPSDPSSFDUSFTQPOTFEPcVSJc
 CFGPSF\WJTJUVSJ^
 
 JU\VSJ^͕0,Ͱਖ਼ৗʹӾཡͰ͖ΔEP
 FYQFDU QBHFTUBUVT@DPEF UPCF 
 FOE
 
 JU\VSJ^ʹ1)1ͷܯࠂ͕ແ͍EP
 FYQFDU QBHF UPIBWF@OP@DPOUFOU 8BSOJOH 
 FOE
 
 JU\VSJ^ʹ1)1ͷΤϥʔ͕ແ͍EP
 FYQFDU QBHF UPIBWF@OP@DPOUFOU 'BUBMFSSPS 
 FOE
 FOE SFRVJSFTQFD@IFMQFS
 
 EFTDSJCFਖ਼ৗӾཡςετEP
 X 
 
 IPHF@QBHF
 GVHB@QBHF
 FBDIEPcQBHFc
 JU@CFIBWFT@MJLFDPSSFDUSFTQPOTF QBHF
 FOE
 FOE TVQQPSUTSFTQPOTFSC GFBUVSFTWBMJE@TQFDSC

Slide 21

Slide 21 text

࢓༷ςετ

Slide 22

Slide 22 text

࢓༷ςετ wԿΛ΍Δͷ͔ wػೳ͕࢓༷௨Γʹಈ࡞͢Δ͜ͱΛ֬ೝ wͳͥ΍Δͷ͔ wखಈͰؤுΓͨ͘ͳ͍ͷͰɾɾɾ wݕূ࣌ؒΛ୹ͯ͘͠ɺ͓٬༷ʹϝϦοτͷ͋Δ࣮૷ʹ࣌ؒΛճ͍ͨ͠ w࣮૷ίετ wେมɾɾɾɻશػೳ͕ཧ૝Ͱ͸͋Δ͕ɺΫϦςΟΧϧͳՕॴ༏ઌͰରԠ͢ Δͱྑ͍ɻ

Slide 23

Slide 23 text

࣮૷ྫʣ࢓༷ςετ EFTDSJCF͓஌Β͕ͤ౤ߘͰ͖Δ KTUSVFEP
 CFGPSFEP
 JOGPʹΞΫηε
 WJTJUJOGP
 
 JOQVUλάͷOBNFUJUMFʹλΠτϧΛೖྗ͢Δ
 pMM@JOUJUMF XJUI໊݅ςετ
 
 UFYUBSFBͷOBNFlCPEZzʹຊจΛೖྗ͢Δ
 pMM@JOCPEZ XJUIຊจςετ
 
 ϘλϯͷWBMVF஋ΛࢦఆͰ͖·͢
 DMJDL@CVUUPOొ࿥
 FOE
 
 CFGPSFʙEPͷಈ࡞͕શͯ׬ྃͨ͠ޙʹࢦఆͷจࣈྻ͕ը໘্ʹදࣔ͞Ε͍ͯΔ͔
 JU\FYQFDU QBHF UPIBWF@DPOUFOU͓஌ΒͤΛ౤ߘ͠·ͨ͠^
 FOE

Slide 24

Slide 24 text

՝୊

Slide 25

Slide 25 text

՝୊ w+FOLJOTαʔόʔͱຊ൪αʔόʔͱͷϛυϧ΢ΣΞͷόʔδϣϯဃ཭ w+FOLJOTδϣϒͷઃఆ͕ίʔυԽ͞Ε͓ͯΒͣཤྺ͕ແ͍ wʲݱࡏਐߦதʳ%SPOF%PDLFS্Ͱͷ&&ςετ؀ڥͷߏங

Slide 26

Slide 26 text

·ͱΊ

Slide 27

Slide 27 text

·ͱΊ w&&ςετͰѹ౗త҆৺ײͱ࣌ؒઅ໿͕ಘΒΕͨ w͍͖ͳΓશϖʔδ෼ͷ࢓༷ςετΛಋೖ͢Δͷ͸େมͳͷͰɺਖ਼ৗӾཡςετ ͔Β࢝ΊͯݟΔͷ͕Φεεϝ wϢχοτςετෆ଍ͳ؀ڥͰ΋&&ςετͰϦϑΝΫλϦϯά͕Մೳʹ

Slide 28

Slide 28 text

͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠ʂ