예제 #1
0
 /**
  * @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));
 }
예제 #2
0
 public function setUp()
 {
     $this->businessRuleEngine = BusinessRuleEngine::factory();
 }