/** * @dataProvider provideDate */ public function testDate($ruleComposition, $expected, DateTime $dateTime = null) { $contexParameters = array(); if (!is_null($dateTime)) { $contexParameters[] = $dateTime; } $this->assertSame($expected, $this->businessRuleEngine->check($ruleComposition, "default", $contexParameters)); }
public function setUp() { $this->businessRuleEngine = BusinessRuleEngine::factory(); }