tests++
[awesomized/ext-ion] / tests / Symbol / ImportLocation.phpt
diff --git a/tests/Symbol/ImportLocation.phpt b/tests/Symbol/ImportLocation.phpt
new file mode 100644 (file)
index 0000000..78c9945
--- /dev/null
@@ -0,0 +1,34 @@
+--TEST--
+ion\Symbol\ImportLocation
+--EXTENSIONS--
+ion
+--FILE--
+TEST
+<?php
+var_dump($iloc = new ion\Symbol\ImportLocation("table", 123));
+var_dump(clone $iloc);
+unset($iloc);
+var_dump(clone new ion\Symbol\ImportLocation("table", 123));
+?>
+DONE
+--EXPECTF--
+TEST
+object(ion\Symbol\ImportLocation)#%d (2) {
+  ["name"]=>
+  string(5) "table"
+  ["location"]=>
+  int(123)
+}
+object(ion\Symbol\ImportLocation)#%d (2) {
+  ["name"]=>
+  string(5) "table"
+  ["location"]=>
+  int(123)
+}
+object(ion\Symbol\ImportLocation)#%d (2) {
+  ["name"]=>
+  string(5) "table"
+  ["location"]=>
+  int(123)
+}
+DONE