O'Reilly logo

Object-Oriented Programming with PHP5 by Hasin Hayder

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 5. Reflection and Unit Testing

PHP5 brings in many new flavors compared to PHP4. It replaces many old APIs with smarter, new ones. One of them is Reflection API. Using this cool set of API, you can reverse engineer any class or object to figure out its properties and methods. You can invoke those methods dynamically and do some more. In this chapter we will learn in more detail about reflections and use of each of these functions.

Another very important part of software development is building test suits for automated testing of your piece of work. This is to ensure it's working correctly and after any changes it maintains backward compatibility. To ease the process for PHP developers, there are a lot of testing tools available on the market. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required