mirror of
https://github.com/php/php-src.git
synced 2026-03-24 08:12:21 +01:00
Add test
This commit is contained in:
27
ext/com_dotnet/tests/27974.phpt
Executable file
27
ext/com_dotnet/tests/27974.phpt
Executable file
@@ -0,0 +1,27 @@
|
||||
--TEST--
|
||||
COM: mapping a safearray
|
||||
--SKIPIF--
|
||||
<?php # vim:ft=php
|
||||
if (!extension_loaded("com_dotnet")) print "skip COM/.Net support not present"; ?>
|
||||
--FILE--
|
||||
<?php // $Id$
|
||||
error_reporting(E_ALL);
|
||||
|
||||
try {
|
||||
$v = new VARIANT(array("123", "456", "789"));
|
||||
var_dump($v);
|
||||
print $v[0] . "\n";
|
||||
print $v[1] . "\n";
|
||||
print $v[2] . "\n";
|
||||
echo "OK!";
|
||||
} catch (Exception $e) {
|
||||
print $e;
|
||||
}
|
||||
?>
|
||||
--EXPECT--
|
||||
object(variant)#1 (0) {
|
||||
}
|
||||
123
|
||||
456
|
||||
789
|
||||
OK!
|
||||
Reference in New Issue
Block a user