Skip to content

Instantly share code, notes, and snippets.

class UserTest extends MyTestCase
public function testValidRegistration($user = null)
{
if ($user === null) {
$user = TestData::$USERS[0];
}
@hyusetiawan
hyusetiawan / blitz-start.php
Created June 6, 2012 19:05
Using Blitz with PHP
<?php
require_once 'blitz_api.php';
class MyBlitzListener extends BlitzListener {
//will provide the result on the test completed
public function on_complete($result){
echo var_dump($result);
}
@hyusetiawan
hyusetiawan / blitz_php_start.php
Created June 6, 2012 19:00
Using Blitz with PHP
require_once 'blitz_api.php';
class MyBlitzListener extends BlitzListener {
//will provide the result on the test completed
public function on_complete($result){
echo var_dump($result);
}
//will provide status data as it polls the API