Beispiel #1
0
 public function testEquals()
 {
     is(1, true);
     is(array(1, 2, 3), array(1, 2, 3));
     is(array('a' => 1, 'b' => 2), array('b' => 2, 'a' => 1));
     isNot(1, 2);
     isSame(array(1, 2, 3), array(1, 2, 3));
     isNotSame(array(1, 2, 3), array(3, 2, 1));
     isKey('test', array('test' => true));
     isNotKey('undefined', array('test' => true));
     isAttr('test', (object) array('test' => true));
     isNotAttr('undefined', (object) array('test' => true));
     isBatch(array(array(1, 1), array(2, 2)));
 }
Beispiel #2
0
 public function testGetRules()
 {
     $val = val();
     isKey('rub', $val->getRules());
     isKey('usd', $val->getRules());
     isKey('uah', $val->getRules());
     isKey('eur', $val->getRules());
     isKey('byr', $val->getRules());
 }