News Feed

News Archive
feed this:

Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

VG Tech:
Using PHP's Built-in Web Server in Behat Tests
August 19, 2013 @ 10:13:16

On the VG Tech blog there's a recent post showing you how you can use the built-in PHP web server to help with running your Behat (a behavior-driven development tool) tests.

Behat is a tool for running acceptance tests for your application. If your application is a web application you will need a web server to execute your tests. [...] Some weeks back I wrote a post showing you how to use PHP's built in web server in PHPUnit. This post will show you how to do the same for Behat when running your acceptance tests.

His example (here on github) shows you how to set up Behat via Composer, run it and start in on your first test. In the test's "setUp" method, it calls out to the command line and starts up the built-in web server if it's not already running. It also checks to see if it can connect to the server to make sure it's accessible. Then, in the "tearDown" method, there's a call to kill off the PHP process based on the PID stored on startup.

0 comments voice your opinion now!
builtin webserver bdd tests behat setup teardown


Fabien Potencier:
About Symfony Stability over Features
April 15, 2013 @ 10:12:34

Fabien Potencier (of the Symfony framework) has a new post to his site talking about a philosophy that the Symfony framework community should work towards, providing stability over features.

Long story short: in the coming months, the Symfony core contributors should focus their efforts toward stabilizing the existing features instead of working on new ones. At this point, backward compatibility and stability are more important than everything else.

He highlights some of the points that come along with this effort including less refactoring for the sake of refactoring, fixing more bugs/edge cases and writing more tests/documentation. He gets into some of the specifics of this kind of thinking and points out the things that can and can't be changed during this time. He talks more about stability and suggests that not only can it help enhance performance but it could also help motivate more projects/corporate users to start using the framework.

0 comments voice your opinion now!
symfony stability features framework initiative tests bugs backward compatibility


Hari KT's Blog:
Is there a design flaw for the Components or Packages made by Symfony2 and ZF2
March 09, 2012 @ 09:03:36

Hari K T has a new post to his blog that shares his concern about a "design flaw" in the component/package methods promoted by Symfony2 and Zend Framework 2:

Looking from outside both Symfony2 and ZF2 is full of standalone components. But the reality is not the same. Though Symfony2 components are split into each components in github, you cannot give a pull request to that component. The tests for all the components still resides in the core.

He points to the Aura framework project as a good example of how to make a truly component-centric set of tools complete with tests bundled into the component's download right next to the source.

0 comments voice your opinion now!
design flaw component symfony2 zendframework2 aura framework tests source

Brian Swan's Blog:
Running VisualPHPUnit in Windows Azure
January 11, 2012 @ 10:25:43

Brian Swan has posted another in his "unit testing on Azure" posts to his blog today. This time he shows how to get VisualPHPUnit running on your Windows Azure installed code.

Last month, I wrote a post that outlined 3 ways to test PHP applications in Windows Azure, and since then I've covered two of those approaches: Running PHPUnit in Windows Azure (uses RDP) and Automating PHPUnit Tests in Windows Azure. In this post I'll cover how to use a web-front end (VisualPHPUnit specifically) to run tests in Azure.

The process is really simple - it's basically three steps (after the VisualPHPUnit install):

  • Edit the configuration file to point to the right tests directory
  • Password protect the VisualPHPUnit directory
  • Deploy your application by following the instructions here
0 comments voice your opinion now!
unittest visualphpunit phpunit windows azure tests

Christopher Jones' Blog:
Configuring and Running PHP's OCI8 tests
April 11, 2007 @ 08:33:00

Christopher Jones shows us today how to set up and run tests (using the built-in extension testing PHP has) to test the OCI8 functionality that that extension provides.

The test suite can't test everything. You should test your applications with your new PHP too. This gives load and real-life testing not possible with PHP's script based test suite.

[...] The tests in ext/oci8/tests verify the behavior of the OCI8 extension. To run them follow these steps.

There's four steps he gives that will help you check your Oracle compile installation including what the response of the test results will look like.

0 comments voice your opinion now!
oci8 tests configure extension steps oci8 tests configure extension steps

Zend Developer Zone:
Ed Finkler Talks About PHPSecInfo
October 23, 2006 @ 09:37:00

Cal Evans over on the Zend Developer Zone has another of his infamous (well, okay - not infamous, but definitely good) interviews with people all around the PHP community. This time, it's a chat with Ed Finkler, a developer over at CERIAS concerning the new security tool designed to help even the security-clueless to protect themselves and their system.

Intrigued as much by this project, as I was by the fact that Ed wrote me and told me it was time for me to interview him, I called Ed and we talked about the project.

They talk about where the idea for the tool came from, one of the targets for the use of the project (those on shared hosting), and the mention that it is modular in design and they are more than happy to have developers work up tests to be sure things are working 100% correctly.

0 comments voice your opinion now!
interview phpsecinfo tool shared hosting cerias tests interview phpsecinfo tool shared hosting cerias tests

Ligaya Turmelle's Blog:
Generated phpt tests
August 30, 2006 @ 07:35:01

In a new post to her blog today, Ligaya Turmelle mentions a conversation she was having with some of the PHP documentation team about their transitions and the possibilities for integrating something new into the system - creating phpt tests automatically.

Seems Philip and colder were talking on the IRC about possibly using the php doc examples to automatically generate some phpt tests to make sure the examples in the docs worked correctly. I personally think it is a great idea for another reason - it would give the QA team a base listing of phpt tests for the various PHP functions. With that base listing it would be easier to modify/add to the various phpt tests to cover the boundries of the function.

A script to implement this feature is already in the works - a preview of it can even be found here.

0 comments voice your opinion now!
generate phpt tests documentation livedoc qa preview generate phpt tests documentation livedoc qa preview

Chris Shiflett's Blog:
Power PHP Testing
December 19, 2005 @ 06:46:17

On Chris Shiflett's blog today, there's more information about the tutorial he and Geoff Young gave at ApacheCon this year.

A PDF of our slides is now available: Power PHP Testing (PDF).

Geoff also has some tarballs available that let you test a very simple PHP library ( with Apache-Test, Simple-Test, PHPUnit, and phpt:

He also gives some other resources for finding out more about Apache/PHP testing as well as a brief mention of TAP (Test Anything Protocol)...

0 comments voice your opinion now!
power testing talk conference slides PDF tests power testing talk conference slides PDF tests

Community Events

Don't see your event here?
Let us know!

threedevsandamaybe series developer list symfony2 experience podcast community unittest introduction framework release opinion laravel install refactor code testing interview language

All content copyright, 2014 :: - Powered by the Solar PHP Framework