Skip to content

General Chicken

Behavior Driven Development in WordPress

  • Hire John Dee – Plugin Developer
General Chicken

Tag: Stack Overflow

Using Codeception web assertions as booleans for program flow

Sometimes you want to do:
if($I->see('lorum ipsum')){/*do something*/}

But you can’t.

My response on Stack Overflow

Author General ChickenPosted on February 21, 2018September 25, 2020Categories Help ArticlesTags BDD, Behavior Driven Development, Codeception, PHP, Stack OverflowLeave a comment on Using Codeception web assertions as booleans for program flow

Template to mock a method in the same class that is being tested

I created a template to mock a second function within a class that is being tested:

Stack Overflow: Mock method from the same class that tested method is using

Author General ChickenPosted on February 21, 2018October 9, 2020Categories Help ArticlesTags PHP, Stack Overflow, TDD, Test Driven DevelopmentLeave a comment on Template to mock a method in the same class that is being tested

Yum! General Tso’s

GeneralChicken.guru
GeneralChicken.guru

Recent Posts

  • Implied role structure on multisite versus single site
  • Security flaw in WordPress
  • The General Way of Development
  • What is the best WordPress themes for eCommerce sites?
  • Could virtual particle (and antiparticle) interactions be the reason we humans experience feelings of virtue (and vice)? Why, or why not?
  • Hire John Dee – Plugin Developer
General Chicken Privacy Policy Proudly powered by WordPress