From d791456fd28f525f689b2b2ab9f2625231e1ca91 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Mon, 10 Jan 2022 15:34:00 +0100 Subject: [PATCH] tests: Reader\Options --- tests/Reader/Options.phpt | 177 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 177 insertions(+) create mode 100644 tests/Reader/Options.phpt diff --git a/tests/Reader/Options.phpt b/tests/Reader/Options.phpt new file mode 100644 index 0000000..10968da --- /dev/null +++ b/tests/Reader/Options.phpt @@ -0,0 +1,177 @@ +--TEST-- +ion\Reader\Options +--EXTENSIONS-- +ion +--FILE-- +TEST + +DONE +--EXPECTF-- +TEST +object(ion\Reader\Options)#%d (13) { + ["catalog"]=> + NULL + ["decimalContext"]=> + NULL + ["onContextChange"]=> + NULL + ["returnSystemValues"]=> + bool(false) + ["newLine"]=> + int(10) + ["maxContainerDepth"]=> + int(10) + ["maxAnnotations"]=> + int(10) + ["maxAnnotationBuffered"]=> + int(512) + ["symbolThreshold"]=> + int(16384) + ["userValueThreshold"]=> + int(16384) + ["chunkThreshold"]=> + int(16384) + ["allocationPageSize"]=> + int(65536) + ["skipCharacterValidation"]=> + bool(false) +} +object(ion\Reader\Options)#%d (13) { + ["catalog"]=> + NULL + ["decimalContext"]=> + NULL + ["onContextChange"]=> + NULL + ["returnSystemValues"]=> + bool(false) + ["newLine"]=> + int(10) + ["maxContainerDepth"]=> + int(10) + ["maxAnnotations"]=> + int(10) + ["maxAnnotationBuffered"]=> + int(512) + ["symbolThreshold"]=> + int(16384) + ["userValueThreshold"]=> + int(16384) + ["chunkThreshold"]=> + int(16384) + ["allocationPageSize"]=> + int(65536) + ["skipCharacterValidation"]=> + bool(false) +} +object(ion\Reader\Options)#%d (13) { + ["catalog"]=> + object(ion\Catalog)#%d (1) { + ["symbolTables":"ion\Catalog":private]=> + array(0) { + } + } + ["decimalContext"]=> + object(ion\Decimal\Context)#%d (5) { + ["digits"]=> + int(7) + ["eMax"]=> + int(96) + ["eMin"]=> + int(-95) + ["round"]=> + int(3) + ["clamp"]=> + bool(true) + } + ["onContextChange"]=> + object(Closure)#%d (1) { + ["parameter"]=> + array(1) { + ["$r"]=> + string(10) "" + } + } + ["returnSystemValues"]=> + bool(true) + ["newLine"]=> + int(10) + ["maxContainerDepth"]=> + int(10) + ["maxAnnotations"]=> + int(10) + ["maxAnnotationBuffered"]=> + int(512) + ["symbolThreshold"]=> + int(16384) + ["userValueThreshold"]=> + int(16384) + ["chunkThreshold"]=> + int(16384) + ["allocationPageSize"]=> + int(65536) + ["skipCharacterValidation"]=> + bool(true) +} +object(ion\Reader\Options)#%d (13) { + ["catalog"]=> + object(ion\Catalog)#%d (1) { + ["symbolTables":"ion\Catalog":private]=> + array(0) { + } + } + ["decimalContext"]=> + object(ion\Decimal\Context)#%d (5) { + ["digits"]=> + int(7) + ["eMax"]=> + int(96) + ["eMin"]=> + int(-95) + ["round"]=> + int(3) + ["clamp"]=> + bool(true) + } + ["onContextChange"]=> + object(Closure)#%d (1) { + ["parameter"]=> + array(1) { + ["$r"]=> + string(10) "" + } + } + ["returnSystemValues"]=> + bool(true) + ["newLine"]=> + int(10) + ["maxContainerDepth"]=> + int(10) + ["maxAnnotations"]=> + int(10) + ["maxAnnotationBuffered"]=> + int(512) + ["symbolThreshold"]=> + int(16384) + ["userValueThreshold"]=> + int(16384) + ["chunkThreshold"]=> + int(16384) + ["allocationPageSize"]=> + int(65536) + ["skipCharacterValidation"]=> + bool(true) +} +DONE -- 2.39.5