Web Tips

A blog for web developers
  • Home
  • PHP
  • Symfony
  • WordPress

Home / Reflection

Articles tagged with "Reflection"

Unit Testing Private Methods and Properties with PHPUnit

August 27, 2013 PHP PHPUnit, Reflection, Unit Testing

Unit testing PHP classes with private or protected methods and properties can be a real challenge. One solution to the problem is to use a public method that calls the protected method or a getter to access the private property, but that may not be desirable in many instances. more…


Follow us on Twitter
©2020 Calc Hub, LLC | Privacy Policy