lilobase
2/5/2014 - 1:44 PM

PhpUnit tips

PhpUnit tips

<?php

//read a protected/private attribute
\PHPUnit_Framework_Assert::readAttribute($object, 'protected_attr');