Upgrade to Pro — share decks privately, control downloads, hide ads and more …

WordPressに活かす最近のPHPエンジニアトレンド2016 画面つき

WordPressに活かす最近のPHPエンジニアトレンド2016 画面つき

WordCamp関西2016の発表スライド + デモのスクリーンショット

Hisateru Tanaka

July 10, 2016
Tweet

More Decks by Hisateru Tanaka

Other Decks in Technology

Transcript

  1. 1IQ4UPSNͷػೳ w 1)1ίʔυղੳ w %#ΫϥΠΞϯτ w 3&45ΫϥΠΞϯτ w (JU w

    7BHSBOU w 4BTT-&444UZMVT w $P⒎FF4DSJQU5ZQF4DSJQU w (SVOU(VMQ w 8PSE1SFTTϓϥάΠϯ w '514'51
  2. '51

  3. 1)1'*(ࢀՃϝϯόʔ "TTFUJDBOE#V[[ ,SJT8BMMTNJUI !LSJTXBMMTNJUI  "VSB1SPKFDUBOE4PMBS'SBNFXPSL 1BVM.+POFT !QNKPOFT  $BLF1)1

    -BSSZ.BTUFST !1IQ/VU  $PNQPTFS +PSEJ#PHHJBOP !TFMEBFL  DPODSFUF ,PSWJO4[BOUP !LPSWJOT[BOUP  $POUBP0QFO4PVSDF$.4 -FP'FZFS !MFPGFZFS  %SVQBM -BSSZ(BSpFME !$SFMM  F;1VCMJTI "OESF3PNDLF !BOESFSPN  )PSEF +BO4DIOFJEFS !ZVOPTI  *#.J5PPMLJU "EBN$VMQ !BEBNDVMQ  *DJDMF "BSPO1JPUSPXTLJ !USPXTLJ  +BDLBMPQF -VLBT,BIXF4NJUI !MTNJUI  +PPNMB3PCFSU%FVU[ !SEFVU[  5IF-FBHVFPG&YUSBPSEJOBSZ1BDLBHFT (SBIBN%BOJFMT !HSFZEOMT  -JUIJVN/BUF"CFMF !OBUFBCFMF  .BHFOUP #FO.BSLT !CFONBSLT  1&"3 $IVDL#VSHFTT !BTIOB[H  1IBMDPO "OESFT(VUJFSSF[ !QIBMDPOQIQ  1IJOH .JDIJFM3PPL !NJDIJFMUDT  QIQ## .BSD"MFYBOEFS !NBSD  QIQ%PDVNFOUPS .JLFWBO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ͯ͠ ಛघͳύεʹΠϯετʔϧͰ ͖ΔΑ͏ʹͪΐͬͱ ͜ΕೖΕͯ
  5. σϞͷ(JU $ tree . ├── LICENSE ├── README.md ├── Vagrantfile

    ├── codeception.yml ├── composer.json ├── composer.lock ├── docroot │ └── wp-content │ ├── plugins │ │ └── site │ └── themes │ └── site │ ├── functions.php │ └── style.css ├── init.sh ├── provisioning │ ├── playbook.yml │ ├── scripts │ │ ├── install-wp-cli.sh │ │ └── setup-wordpress.sh │ └── templates │ └── httpd.conf ├── salts.txt └── tests ├── … ུ └── unit.suite.yml ͖Ε͍ͳϑΥϧμͯ͠ΔͩΖɻ ΢ιΈ͍ͨͩΖɻ XQDPOUFOUͳΜͩͥɻ XQDPSFEPXOMPBE   DPNQPTFSJOTUBMMͰ
  6. w &MBTUJDTFBSDI)551ͰΞΫηε͢ΔݕࡧಛԽ/P42- w .Z42-͸શจݕࡧ͕ۤखɺ&MBTUJDTFBSDI͸શจݕࡧΠ ϯσοΫεͷઃఆ͕༏ल w 8PSE1SFTTͷશจݕࡧʹ౷߹ˠϓϥάΠϯXQ FMBTUJDTFBSDI XPSEQSFTTGBOUBTUJDFMBTUJDTFBSDI w

    ΋ͱ΋ͱ"84ͱ͸ແؔ܎͕ͩͬͨɺ"84͕ &MBTUJDTFBSDIͷϗεςΟϯάαʔϏε΋։࢝ w ެࣜͷΫϥ΢υϗεςΟϯά΋͔ͳΓ༏लˠIUUQ UBOBLBIJTBUFSVIBUFOBCMPHKQFOUSZ  &MBTUJDTFBSDIΛ஌Βͳ͔ͬͨਓ͸ಡΜͰ͓͍͍ͯͩ͘͞
  7. ͜Μͳ;͏ʹॻ͖·͢ <?php $I = new AcceptanceTester($scenario); $I->am('user'); $I->wantTo('login to website');

    $I->lookForwardTo('access all website features'); $I->amOnPage('/login'); $I->fillField('Username','davert'); $I->fillField('Password','qwerty'); $I->click('Login'); $I->see('Hello, davert');