Skip to content

Instantly share code, notes, and snippets.

/**
* Standalone rule-engine-js type augmentation with typed dot-path helpers.
* Drop this file into a TS project to get typed rule helpers based on your facts shape.
*/
import type {
ComparisonOptions,
OperatorNames,
RuleExpression,
RuleHelpers,
StateOperatorNames,
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