add-memberalign-toparrow-leftarrow-rightbellblockcalendarcamerachatchevron-leftchevron-rightchevron-small-downchevron-upcircle-with-crosscomposecrossfacebookflagfolderglobegoogleimagesinstagramkeylocation-pinmedalmoremuplabelShape 3 + Rectangle 1pagepersonpluspollsImported LayersImported LayersImported LayersshieldstartwitterwinbackClosewinbackCompletewinbackDiscountyahoo

assertBoolean() Method in PHPUnit?

From: Jd D.
Sent on: Tuesday, November 13, 2012 2:12 PM

Hey guys I'm writing a simple test right now to assert that my return value is either a boolean true/false, I figured it out a few months ago but forgot =(

I know if I write


I'll always end up failing, any ideas on how to write this test?

Jd Daniel
Sr. Zend Developer
7901 Delridge Way SW #36D, Seattle

C.   [masked]

Our Sponsors

  • TUNE

    Meeting space and food

  • PluralSight

    PluralSight subscriptions for developer training

  • Siteground

    Information coming Soon

  • O'Reilly

    Disc Code: PCBW is good for 40% off print and 50% off ebooks and videos

  • JetBrains PhpStorm

    Occasional free licenses to raffle off at meetups

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy