Friday, 29 August 2008Zend Framework testing: emulating HTTP calls
Following last month's article by Ian, here's some thoughts on how to test a Zend Framework application.
One of the unit testing best practices suggests to break dependencies, so you can test each component separately. The first problem that arises when you want to test controllers might be having a tighter control over the HTTP Request and Response objects. Fortunately, ZF already has something that really makes your life easier, i.e. the Zend_Test_PHPUnit_ControllerTestCase class, which has stubs for the Request and Response objects, and you can easily check headers, return codes, routes, redirects, and even the view itself. Ga door met lezen van "Zend Framework testing: emulating HTTP calls" Tuesday, 26 August 2008PHP Belgium meeting![]() A few months ago I attended the Dutch PHP TestFest. It really shoud have been called the Belgian/Dutch PHP TestFest, since about half of the people there were from the Belgian PHP user group. One of them, Felix de Vliegher, even got a PHP CVS account because of the amount and quality of his tests. All in all, the TestFest was a great succes. Last week the Belgian PHP User group held their second meeting. Because the venue was fairly close to our office in Vlissingen, some of us decided to have a look. We were early, so there weren't many people yet, but soon the room began to fill up and in the end there were a little over 30 people. Not bad, given that this was only the second meeting. Ga door met lezen van "PHP Belgium meeting" Tuesday, 19 August 2008Implementing Iterators
Let's kickstart this blogpost by defining what an iterator actually is. According to wikipedia, an iterator is:
"an object which allows a programmer to traverse through all the elements of a collection, regardless of its specific implementation."A collection can pretty much be anything. The most obvious sources would be arrays, but other than that, iterations can be done over database resultsets, strings, datetime intervals, directories, file content and XML listings, to name a few. The real benefit of using a standard iterator implementation, is that every implemented iterator does its job obeying a standard interface. Whether said collection is a database resultset or a directory structure; it can be iterated using the same method names. And that's neat, because it will save us developers a trip to the manual on many occasions (... yeah it does... just admit it... ). Ga door met lezen van "Implementing Iterators" Thursday, 14 August 2008Is PHP an Agile Programming Language?In raising the question about whether a specific programming language is agile I want to avoid exploring what makes a language agile, or comparing PHP with other languages. The intention here is not to associate PHP to agile as a natural relationship, as much as to try and understand if we can find the ingredients in the PHP world, for creating an agile environment. Ga door met lezen van "Is PHP an Agile Programming Language?" Tuesday, 12 August 2008The definition of evil
Recently a colleague stated that in theory, caching could be considered 'evil'.
Now 'evil' is a very broad term which is used a lot in the IT community, but what does it really mean when we're talking about technical solutions? I asked around, but couldn't find a clear cut definition, so I went searching... Ga door met lezen van "The definition of evil"
Geplaatst door Boy Baukema
op
16:11
| Reactie (1)
| Trackbacks (0)
Tags voor deze bijdrage: best practices, browser, caching, development, evil, optimization, performance, scalability
Monday, 11 August 2008Dutch PHP TestFest - A Big Success
In May, I helped organize the Dutch PHP TestFest in my position as board member of the Dutch PHP User Group. This dutch event, which was sponsored by Ibuildings, was part of the global PHP TestFest initiative, which aims to get a higher test coverage for the PHP language and with that stabilize the language even more - something that will benefit all users of PHP. Back in May, we already deemed our event a big success with 10 attendees, a great presentation by Sebastian Bergmann and a huge number of tests written. But it turns out to be an even bigger success...
Ga door met lezen van "Dutch PHP TestFest - A Big Success" Thursday, 7 August 2008Book Review: The Seven Day Weekend
Who doesn't like to have weekends that last for seven days, each week? I've just read a book written by Ricardo Semler, it's called "The Seven Day Weekend". I have to say, it's really inspiring!
Ricardo Semler is the owner of Semco, an organization that is globally known for its non-standard way of working. Semler has divided the book into five parts. Ga door met lezen van "Book Review: The Seven Day Weekend" Monday, 4 August 2008PHP Events in the UK and Ireland
Following the success of our two PHP seminars in London, we have decided to make it a tour and to visit other parts of the UK and Ireland as well. Next up are Leeds and Dublin - come and meet us in your city! Find out more about our events below.
Early-Bird Offer: Sign up for any of our events by 15th August, and receive a free copy of the new php|architect book on Enterprise PHP Development, written by our CTO Ivo Jansch! Ga door met lezen van "PHP Events in the UK and Ireland"
(Pagina 1 van 1, totaal 8 artikelen)
|
Blog

