コード例 #1
0
ファイル: AllOfTest.php プロジェクト: nowsolutions/Validation
 public function testAddRulesUsingSpecificationArray()
 {
     $o = new AllOf();
     $o->addRules(array('Between' => array(1, 2)));
     $this->assertTrue($o->hasRule('Between'));
 }
コード例 #2
0
ファイル: AllOfTest.php プロジェクト: vituhugo/webservice
 public function test_addRules_using_specification_array()
 {
     $o = new AllOf();
     $o->addRules(array("Between" => array(1, 2)));
     $this->assertTrue($o->hasRule('Between'));
 }