Exemplo n.º 1
0
 public function testShouldAcceptAllOfWithOneKeyRule()
 {
     $key = new Key('foo', new AlwaysValid(), false);
     $allOf = new AllOf($key);
     $keySet = new KeySet($allOf);
     $rules = $keySet->getRules();
     $this->assertSame(current($rules), $key);
 }