/** * @testdox allowDescendant() normalizes tag names */ public function testAllowDescendantNormalizesTagName() { $ruleset = new Ruleset(); $ruleset->allowDescendant('b'); $this->assertEquals(['defaultChildRule' => 'allow', 'defaultDescendantRule' => 'allow', 'allowDescendant' => ['B']], iterator_to_array($ruleset)); }