Skip to main content

PHP Test Fest 2009

For those who haven't heard about it, last Saturday was PHP Test Fest 2009, and here in Belgium it was organized by PHPBelgium at the new Combell location in Ghent.

We decided to test the SQLite3 extension, and we also had two people writing tests for LDAP. With a nice end result of 24 tests written for SQLite3 and 9 for LDAP, we are very pleased with the result since only 9 people attended our event.

Our mentor Felix De Vliegher  had given us a very clear instructions and apparently most attendees already had seen my (and other people's) slides on slideshare.net. See the pictures of those great moments on flicr.com.

All attendees did share a few common quotes afterwards:
  • "I learned so much here"
  • "Next year I come back"
  • "Shame on those who didn't come today"
I would like to express my gratitude for the PHP QA Team for organizing this event, to Combell for facilitating this event and providing us very nice sandwiches and drinks and to Ibuildings for providing us a USB stick where we can store our libs and tests on.

If I do get some "spare" time, I surely will keep on writing tests for the PHP core, because it is so important to ensure good code coverage on each and every PHP component.

In the time being, do check out the code coverage reports for PHP 5_3 and see for yourself that there's still a lot of work to be done to get everything in the green. So step up and help PHP helping you.

Comments

  1. I would like to mention that TestFest is not over yet! There will be several TestFest events around the world, including one at the php|tek conference in Chicago next week!

    ReplyDelete

Post a Comment

Popular posts from this blog

PHP Arrays - Associative Arrays or Hash Maps

Associative array or hash maps are listings of key and value pairs with a posibility to nest additional keys and values. An associative array is a very powerful construct within PHP.

In our previous article we discussed simple arrays, which in their turn are indexed associative arrays under the hood. Take the following example:

$array = [
'apple',
'banana',
'chocolate',
]; 

Is in fact an indexed associative array under the hood:

$array = [
0 => 'apple',
1 => 'banana',
2 => 'chocolate',
]; 

But associative arrays can be so much more than just an indexed array, and you will find many database operations returning arrays where the fields of a table are the keys in the array while their values are also the values within the array.

$productRowData = [
'product_id' => 1234,
'brand_id' => 321,
'product_name' => 'Our awesome product',
'prodcut_description' => 'This is our most awesome product.&#…

Speeding up database calls with PDO and iterators

When you review lots of code, you often wonder why things were written the way they were. Especially when making expensive calls to a database, I still see things that could and should be improved.
No framework development When working with a framework, mostly these database calls are optimized for the developer and abstract the complex logic to improve and optimize the retrieval and usage of data. But then developers need to build something without a framework and end up using the basics of PHP in a sub-optimal way.

$pdo = new \PDO( $config['db']['dsn'], $config['db']['username'], $config['db']['password'] ); $sql = 'SELECT * FROM `gen_contact` ORDER BY `contact_modified` DESC'; $stmt = $pdo->prepare($sql); $stmt->execute(); $data = $stmt->fetchAll(\PDO::FETCH_OBJ); echo 'Getting the contacts that changed the last 3 months' . PHP_EOL; foreach ($data as $row) { $dt = new \DateTime('2015-04-…

Practical example: building a social sharing platform

Documenting your project upfront requires time and research, but gives enormous amount of insights and knowledge for the whole team to advance with.

In this article we're continuing where we left off my previous article "Documentation of a project" by providing examples for the documentation focus areas I explained and we're also making sure that we're not tumbling down a rabbit hole where specs are written in stone and we're building this project in a waterfall way.

The Hotbrewd project For this particular example I've chosen a project that has a couple of interesting challenges. It's a social media platform (lots of users) where people can check in their beverage at a specific location or establishment (geolocation), upload photos or videos of their drink (moderation) and share with friends (personal information, profiling). To make it a little entertaining, the more people share and tag, the more stickers they can unlock. Also brands and establishm…