From 6ce1fe46939b71de6cad7f04bd3da17dd5834c58 Mon Sep 17 00:00:00 2001 From: Axel Guckelsberger Date: Fri, 12 Jan 2024 09:17:50 +0100 Subject: [PATCH] update test case --- tests/TypesTest.php | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/tests/TypesTest.php b/tests/TypesTest.php index eadd8250..3146df76 100644 --- a/tests/TypesTest.php +++ b/tests/TypesTest.php @@ -137,14 +137,14 @@ public function getMaxOccurences(): array /** * @dataProvider getMaxOccurences */ - public function testElementMaxOccurences($xml, $expected): void + public function testElementMaxOccurences($maxOccurs, $expected): void { $schema = $this->reader->readString( ' - + ' @@ -159,14 +159,14 @@ public function testElementMaxOccurences($xml, $expected): void /** * @dataProvider getMinOccurencesOverride */ - public function testSequencMinOccursOverride($xml, $expected): void + public function testSequenceMinOccursOverride($sequenceMinOccurs, $childMinOccurs, $expected): void { $schema = $this->reader->readString( ' - - + + ' @@ -181,16 +181,20 @@ public function testSequencMinOccursOverride($xml, $expected): void public function getMinOccurencesOverride(): array { return [ - ['2', 2], - ['1', 1], - ['0', 0], + ['0', '2', 2], + ['3', '2', 3], + ['0', '1', 1], + ['1', '1', 1], + ['2', '1', 2], + ['0', '0', 0], + ['3', '0', 3], ]; } /** * @dataProvider getMaxOccurencesOverride */ - public function testSequencMaxOccursOverride($sequenceMaxOccurs, $childMaxOccurs, $expected): void + public function testSequenceMaxOccursOverride($sequenceMaxOccurs, $childMaxOccurs, $expected): void { $schema = $this->reader->readString( ' @@ -233,14 +237,14 @@ public function getMinOccurences(): array /** * @dataProvider getMinOccurences */ - public function testElementMinOccurences($xml, $expected): void + public function testElementMinOccurences($minOccurs, $expected): void { $schema = $this->reader->readString( ' - + '