parse( $rule )); if ($actual == $output) { print "-PASSED.\n"; $pass++; } else { print "-FAILED - expected output $output, actual output $actual.\n"; print "-Expression: $rule\n"; // export $vars = var_export( $tester->mTokens, true ); file_put_contents( $test.'.parsed', $vars ); } } catch (AFPException $excep) { print "-FAILED - exception ".$excep->getMessage()." with input $rule\n"; // export $vars = var_export( $tester->mTokens, true ); file_put_contents( $test.'.parsed', $vars ); } } print "$pass tests passed out of $check\n";