projects
/
awesomized
/
ext-ion
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
remove Options classes
[awesomized/ext-ion]
/
tests
/
Symbol
/
Table
/
Shared.phpt
diff --git
a/tests/Symbol/Table/Shared.phpt
b/tests/Symbol/Table/Shared.phpt
index 1a052dbbf0e01ff393748b1d72e6abc1f59fceec..f957f52d10c8157829d4cc5f11233a2ba0c3ab9d 100644
(file)
--- a/
tests/Symbol/Table/Shared.phpt
+++ b/
tests/Symbol/Table/Shared.phpt
@@
-8,7
+8,7
@@
TEST
$c = new ion\Catalog;
$c->add(new ion\Symbol\Table\Shared("shared", 1, ["shared1", "shared2"]));
$c = new ion\Catalog;
$c->add(new ion\Symbol\Table\Shared("shared", 1, ["shared1", "shared2"]));
-$w = new ion\Writer\Buffer\Writer(
new ion\Writer\Options(catalog: $c, outputBinary: true)
);
+$w = new ion\Writer\Buffer\Writer(
catalog: $c, outputBinary: true
);
$w->writeSymbol("shared1");
$w->writeSymbol("shared1");
$w->writeSymbol("shared1");
$w->writeSymbol("shared1");
@@
-26,7
+26,7
@@
foreach (str_split($w->getBuffer(), 8) as $line) {
}
echo "\n";
}
echo "\n";
-$u = new ion\Unserializer\
PHP
(multiSequence: true);
+$u = new ion\Unserializer\
Unserializer
(multiSequence: true);
var_dump($s = $u->unserialize($w->getBuffer()));
foreach ($s as $sym) {
var_dump($s = $u->unserialize($w->getBuffer()));
foreach ($s as $sym) {
@@
-37,11
+37,11
@@
foreach ($s as $sym) {
$sym->importLocation->location);
}
$sym->importLocation->location);
}
-$u = new ion\Unserializer\
PHP(multiSequence: true,
- readerOptions: new ion\Reader\Options(
+$u = new ion\Unserializer\
Unserializer(multiSequence: true);
+var_dump($u->unserialize(new ion\Reader\Buffer\Reader($w->getBuffer(),
catalog: $c,
catalog: $c,
- onContextChange: fn(ion\Reader $r) => print("on_context_change\n")
));
-
var_dump($u->unserialize($w->getBuffer(
)));
+ onContextChange: fn(ion\Reader $r) => print("on_context_change\n")
+)));
?>
DONE
?>
DONE