Sometimes we have apis implemented in our application and there
are different levels at which these can be tested.
1. Unit tested at model level to check the logic is working
fine
2. Tested at API call level to ascertain whether all the apis as
expected are working and are returning data as expected.
Today, we will be learning how to test APIs in CodeIgniter 2.x
version using phpunit and Guzzle Http client.
Basically Guzzle Http client is a client used to make http client
requests.
Ref: https://github.com/guzzle/guzzle
"Guzzle is a PHP HTTP client that makes it easy to send HTTP …
Once again I spent a week in the San Francisco Bay Area. This time around it was for LugRadio Live USA 2008 and the MySQL Conference & Expo 2008.
I flew in on April 12 (from FRA
via LAX
to SJC
) and arrived in the hotel, the Hyatt Regency
Santa Clara, in the afternoon.
The next morning I left the hotel around 7:00 in the morning for a genuine experience of what they call public transportation in the bay area. It took me three hours to travel the distance of …
[Read more]Here is the presentation material I used for my "Testing PHP/MySQL Applications with PHPUnit/DbUnit" presentation at the MySQL Conference in Santa Clara, CA today.
| View | Upload your own
A PDF version of the presentation is available here, notes by Joe Stump (Digg.com) are …
[Read more]And not just a data charmer:
"Old school technologists don't think kindly of PHP. Its adepts
are believed to be sloppy programmers that create brittle
applications. It takes programmers like Sebastian Bergmann to
level the score and to show that a good programmer is shown by
best practices, not by the choice of language.
The best thing a good programmer can do while developing an
application is testing. Sebastian shows why you should do it, and
how. Not only that, it will show you how easy it is. At the end
of this session you will wonder how could you have survived for
years without unit testing.
PHP programmers, mark your calendars!"
My presentation on PHPUnit is his …
[Read more]
I will present a session on Testing PHP/MySQL Applications with PHPUnit/DbUnit
at the MySQL
Conference & Expo 2008 that is held April 14-17 2008 in
Santa Clara, CA, US.Testing PHP/MySQL Applications with
PHPUnit/DbUnit
In the last decade, PHP has developed from a niche language for adding
dynamic functionality to small websites to a powerful tool making
strong inroads into large-scale Web systems. Critical business
logic like this needs to work correctly. But how do you ensure
that it does? You test it, of course.
To make code testing viable, good tool support is needed. This is
where PHPUnit
comes into …
I spent Thursday and Friday in Zurich,
Switzerland visiting my friends Marcus and Caitlin and attending the Google Open Source Jam.
On Thursday, I arrived in the early afternoon in Zurich.
Getting to Zurich from Siegburg is easy and takes less than five hours as
there is a direct ICE connection to Basel and
from there it is just one more stop with an …
Some of the bloggers on Planet MySQL are sharing their proposals for
the upcoming 2008 MySQL Conference & Expo. Hereby, I follow
their example and give you mine.
The first proposal I submitted is on PHPUnit and will
showcase Michael Lively
Jr.'s port of DbUnit:
Testing PHP/MySQL Applications with PHPUnit/DbUnit
In the last decade, PHP has developed from a niche language for
adding dynamic functionality to small websites to a powerful tool
making strong inroads into large-scale Web systems. Critical …
Last weekend saw the second installment of the Free and Open Source
Software Conference (FrOSCon) in Sankt Augustin. The conference revolved around a
rich schedule of talks, highlighting current topics in Free
Software and Open
Source. Moreover, Open Source projects took the opportunity
to organize their own meetings or even their own lineup of
events. Just like last year, the PHP usergroups of Dortmund and …
From Monday to Wednesday we at eZ Systems AS had our internal
developers conference in Skien, Norway.
Since I joined eZ systems only recently, this was the opportunity
for me to get to know all employees that gathered from all over
the world. Most of the Tuesday was reserved for a "Crew Day" with
some "team-building" which took place in a forest nearby.
On Thursday and Friday the eZ publish conference
2006 took place.
During the conference I met with Sébastien Hordeaux of WaterProof SARL,
the …
I just returned home after attending the International PHP
Conference 2004 and MySQL ComCon
Europe 2004 conferences.
Monday
After a convenient ride with the ICE-3
high-speed train from Siegburg to Frankfurt
am Main / Airport (about 40 minutes) and a short ride with a
shuttle bus to the hotel (about 10 minutes) I arrived at the
conference venue just in time for the first coffee break of the
day.
Following the first "Hello!"s with my fellow PHP developers …