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); }