public function testPrototypeArray() { $node =
new ArrayNodeDefinition('root'
);
$this->
assertEquals($node->
prototype('array'
),
$node->
arrayPrototype());
} public function testPrototypeEnum() { $node =
new ArrayNodeDefinition('root'
);
$this->
assertEquals($node->
prototype('enum'
),
$node->
enumPrototype());
} public static function getEnableableNodeFixtures(): array
{ return [ [['enabled' => true, 'foo' => 'bar'
],
[true
], 'true enables an enableable node'
],
[['enabled' => true, 'foo' => 'bar'
],
[null
], 'null enables an enableable node'
],
[['enabled' => true, 'foo' => 'bar'
],
[['enabled' => true
]], 'An enableable node can be enabled'
],
[['enabled' => true, 'foo' => 'baz'
],
[['foo' => 'baz'
]], 'any configuration enables an enableable node'
],
[['enabled' => false, 'foo' => 'baz'
],
[['foo' => 'baz', 'enabled' => false
]], 'An enableable node can be disabled'
],
[['enabled' => false, 'foo' => 'bar'
],
[false
], 'false disables an enableable node'
],
];