Behaviour tests for PHP functionality