2014 06-07 01 Станислав Чистенко. PHP здорового человека

Preview:

Citation preview

PHPЗдоровогочеловека

WhyPHPdoesn'tsuckanymore...

TESTABLEAPPLICATIONS:HARDWAY

STATICCODEANALYSIS

PHPCodeSnifferPHPMessDetectorPHPCopyPasterDetectorPHPDeadCodeDetector

PHPCODESNIFFER

CheckagainstmultipleStandardsUseownStandardsSupportedbyyourfavoritetext-editor/IDE

PHPMESSDETECTOR

PossiblebugsSuboptimalcodeOvercomplicatedexpressionsUnusedparameters,methods,properties

PHPCOPYPASTERDETECTOR&

PHPDEADCODEDETECTOR

PHPUNIT

GoldstandardAssertsTestingdoublesAnnotations

BEHAT,MINK&PHPSPECFAMILY

Feature:ContactingdeveloperInordertocontactsitedeveloperAsavisitorIneedtobeabletosubmitacontactform

Scenario:SuccessfullysubmitthecontactformGivenIamon"/contact"WhenIfillin"Yourname:"with"Ryan"AndIfillin"Message:"with"Hithere!!!"AndIselect"general_question"from"Questiontype:"AndIpress"Contact"ThenIshouldsee"Yourmessagehasbeensent!"

CODECEPTION

Recommended