Skip to content

Instantly share code, notes, and snippets.

@lilobase
Created February 5, 2014 13:44
Show Gist options
  • Save lilobase/8823878 to your computer and use it in GitHub Desktop.
Save lilobase/8823878 to your computer and use it in GitHub Desktop.
PhpUnit tips
<?php
//read a protected/private attribute
\PHPUnit_Framework_Assert::readAttribute($object, 'protected_attr');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment