Prev | Current Page 6 | Next

Hasin Hayder

"Object-Oriented Programming with PHP5"

Sometimes we implement these design patterns
in our code without knowing that these solutions are defined by design patterns.
Proper usage of the correct pattern can make your code perform better; similarly
using them improperly could make your code slower and less efficient.
Introduction
[ 2 ]
Chapter 5 focuses on two very important features of object-oriented programming
in PHP, reflection and unit testing. PHP5 replaces many old APIs with smarter new
ones. One of these is the Reflection API, with which you can reverse or engineer
any class or object to figure out its properties and methods. You can invoke those
methods dynamically and more. Unit testing is an essential part of good, stable, and
manageable application design. We focus on one very popular package, PHPUnit,
which is a port of JUnit to PHP. If you follow the guidelines provided in this chapter
you will be able to design your own unit tests successfully.
Some built-in objects and interfaces in PHP make life much easier for PHP
developers. In Chapter 6 you will learn about the huge object repository named the
Standard PHP Library or SPL.
Chapter 7: In this chapter we discuss the improved MySQL API known as MySQLi
and take a basic look at PHP Data Objects (PDO), adoDB, and PEAR::MDB2.


Pages:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25