Location: PHPKode > projects > PHP Business Rules > test/greedy_if.php
<?php
	require_once('phprules/phprules.php');
	require_once('test/test_facts.php');

	$wm = new WorkingMemory();
	$wm->insert(new A(2,3));

	$rr = new RuleReader();
	$rs = new RuleSession($rr->parseFile("test/rules/greedy_if.srl"),$wm);
	$rs->maxFiringPerRule = 1;
	$rs->verbosity = 1;
	$rs->fireAll();
 ?>
Return current item: PHP Business Rules