From: Michael Wallner Date: Wed, 12 Jan 2022 10:00:25 +0000 (+0100) Subject: tests: writer options X-Git-Tag: v0.1.0~28 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=5a3afbe9ebc4f5627eb2dc09a7ff9f60dc9c84c0;p=awesomized%2Fext-ion tests: writer options --- diff --git a/tests/Writer/Options.phpt b/tests/Writer/Options.phpt new file mode 100644 index 0000000..f6a066b --- /dev/null +++ b/tests/Writer/Options.phpt @@ -0,0 +1,180 @@ +--TEST-- +ion\Writer\Options +--EXTENSIONS-- +ion +--FILE-- +TEST + +DONE +--EXPECTF-- +TEST +object(ion\Writer\Options)#%d (15) { + ["catalog"]=> + NULL + ["decimalContext"]=> + NULL + ["outputBinary"]=> + bool(false) + ["compactFloats"]=> + bool(false) + ["escapeNonAscii"]=> + bool(false) + ["prettyPrint"]=> + bool(false) + ["indentTabs"]=> + bool(true) + ["indentSize"]=> + int(2) + ["smallContainersInline"]=> + bool(true) + ["suppressSystemValues"]=> + bool(false) + ["flushEveryValue"]=> + bool(false) + ["maxContainerDepth"]=> + int(10) + ["maxAnnotations"]=> + int(10) + ["tempBufferSize"]=> + int(16384) + ["allocationPageSize"]=> + int(65536) +} +object(ion\Writer\Options)#%d (15) { + ["catalog"]=> + NULL + ["decimalContext"]=> + NULL + ["outputBinary"]=> + bool(false) + ["compactFloats"]=> + bool(false) + ["escapeNonAscii"]=> + bool(false) + ["prettyPrint"]=> + bool(false) + ["indentTabs"]=> + bool(true) + ["indentSize"]=> + int(2) + ["smallContainersInline"]=> + bool(true) + ["suppressSystemValues"]=> + bool(false) + ["flushEveryValue"]=> + bool(false) + ["maxContainerDepth"]=> + int(10) + ["maxAnnotations"]=> + int(10) + ["tempBufferSize"]=> + int(16384) + ["allocationPageSize"]=> + int(65536) +} +object(ion\Writer\Options)#%d (15) { + ["catalog"]=> + object(ion\Catalog)#%d (1) { + ["symbolTables":"ion\Catalog":private]=> + array(0) { + } + } + ["decimalContext"]=> + object(ion\Decimal\Context)#%d (5) { + ["digits"]=> + int(16) + ["eMax"]=> + int(384) + ["eMin"]=> + int(-383) + ["round"]=> + int(3) + ["clamp"]=> + bool(true) + } + ["outputBinary"]=> + bool(true) + ["compactFloats"]=> + bool(false) + ["escapeNonAscii"]=> + bool(false) + ["prettyPrint"]=> + bool(false) + ["indentTabs"]=> + bool(true) + ["indentSize"]=> + int(2) + ["smallContainersInline"]=> + bool(true) + ["suppressSystemValues"]=> + bool(false) + ["flushEveryValue"]=> + bool(false) + ["maxContainerDepth"]=> + int(20) + ["maxAnnotations"]=> + int(10) + ["tempBufferSize"]=> + int(16384) + ["allocationPageSize"]=> + int(65536) +} +object(ion\Writer\Options)#%d (15) { + ["catalog"]=> + object(ion\Catalog)#%d (1) { + ["symbolTables":"ion\Catalog":private]=> + array(0) { + } + } + ["decimalContext"]=> + object(ion\Decimal\Context)#%d (5) { + ["digits"]=> + int(16) + ["eMax"]=> + int(384) + ["eMin"]=> + int(-383) + ["round"]=> + int(3) + ["clamp"]=> + bool(true) + } + ["outputBinary"]=> + bool(true) + ["compactFloats"]=> + bool(false) + ["escapeNonAscii"]=> + bool(false) + ["prettyPrint"]=> + bool(false) + ["indentTabs"]=> + bool(true) + ["indentSize"]=> + int(2) + ["smallContainersInline"]=> + bool(true) + ["suppressSystemValues"]=> + bool(false) + ["flushEveryValue"]=> + bool(false) + ["maxContainerDepth"]=> + int(20) + ["maxAnnotations"]=> + int(10) + ["tempBufferSize"]=> + int(16384) + ["allocationPageSize"]=> + int(65536) +} +DONE