Skip to content

General Chicken

Behavior Driven Development in WordPress

  • Tutorials
  • Plugins
  • 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

  • Protected: VForms
  • WPSimpleHacks.com mentions our plugin in a reveiw!
  • WPBeginner.com writes article mentioning our plugin
  • WordPress Plugin: FastRegister
  • Could software “feature files” be used in a lawsuit as evidence of fraud?
  • Tutorials
  • Plugins
  • Hire John Dee – Plugin Developer
General Chicken Proudly powered by WordPress