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

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

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