PHPUnit 3.0 provides the same fluent interface for configuring its Mock Objects (because PHPUnit's implementation of Mock Objects is a port of jMock).
One topic that has made a few appearances (#1, #2, #3) in PHP-related blogs lately is that of Fluent Interfaces. A good example of a fluent interface is the API of jMock.
He shows a code exmaple of how to get it all working, showing how to create a chain of methods that leads to more readable, "fluent" code...











