PHP Meetup December 7, 2017 – TDD / BDD with Codeception

Topic: TDD / BDD with Codeception

Git Repo

What is TDD/ BDD?

  • Devops methodology for creating quality software
  • automated tests – Software that tests other software
  • make the test first
  • short cycles, single responsibility, loosely coupled
  • Red, green, re-factor!

TDD becomes sensible…

  • When you don’t know what to do
  • When the project becomes complex
  • When there are bugs
  • When you are performing code rescue
  • When multiple people with varying skill levels are invovled
  • When you care about costs and efficiency

Testing vesus Development

  • Vocabulary is wrong

BDD should statements

  • itShouldDoSomethingUseful(){}
  • itShouldHaveSomeKindOfProperty(){}

Codeception toolkit

  • PHPunit
  • Behat
  • Webdriver
  • Selenium
  • PhantomJS
  • WP-Codeception
  • DB interfaces
  • Framework interfaces

Codception architecture

  • YML files
  • PSR-4 namespaces
  • Suites, groups, environments, grid


Notice: Trying to get property 'comment_ID' of non-object in /var/www/html/generalchicken.net/wp-includes/comment-template.php on line 673

Notice: Trying to get property 'user_id' of non-object in /var/www/html/generalchicken.net/wp-includes/comment-template.php on line 28

Notice: Trying to get property 'comment_ID' of non-object in /var/www/html/generalchicken.net/wp-includes/comment-template.php on line 47
Leave a Reply to Anonymous Cancel reply

Your email address will not be published. Required fields are marked *