php: Omit closing ?> in manual and examples
PSR-12 says "The closing ?> tag MUST be omitted from files containing only PHP".
This commit is contained in:
parent
00fa844352
commit
e54d44c4be
100 changed files with 0 additions and 135 deletions
|
|
@ -476,7 +476,6 @@ $result=new_intp();
|
|||
add( $in1, $in2, $result );
|
||||
|
||||
echo "The sum " . intp_value($in1) . " + " . intp_value($in2) . " = " . intp_value( $result) . "\n";
|
||||
?>
|
||||
</pre></div>
|
||||
|
||||
<p>
|
||||
|
|
@ -508,7 +507,6 @@ $in2 = 5;
|
|||
$result= add($in1, $in2); # Note using variables for the input is unnecessary.
|
||||
|
||||
echo "The sum $in1 + $in2 = $result\n";
|
||||
?>
|
||||
</pre></div>
|
||||
|
||||
<p>
|
||||
|
|
@ -547,7 +545,6 @@ $result = 0;
|
|||
add($in1, $in2, $result);
|
||||
|
||||
echo "The sum $in1 + $in2 = $result\n";
|
||||
?>
|
||||
</pre></div>
|
||||
|
||||
<p>
|
||||
|
|
@ -622,7 +619,6 @@ Would be used in the following way from PHP:
|
|||
$c->im = 0;
|
||||
|
||||
# $c destructor called when $c goes out of scope.
|
||||
?>
|
||||
</pre></div>
|
||||
|
||||
<p>
|
||||
|
|
|
|||
|
|
@ -43,5 +43,3 @@ $caller->delCallback();
|
|||
# All done.
|
||||
|
||||
print "php exit\n";
|
||||
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -56,5 +56,3 @@ $o = NULL;
|
|||
|
||||
print Shape::nshapes() . " shapes remain\n";
|
||||
print "Goodbye\n";
|
||||
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -19,6 +19,3 @@ if (array_key_exists("EXTERN", $c)) {
|
|||
if (array_key_exists("FOO", $c)) {
|
||||
print "FOO = " . $c["FOO"] . " (Arg! This shouldn't print anything)\n";
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -43,5 +43,3 @@
|
|||
# $q = $a[0]
|
||||
# $r = $a[1]
|
||||
# print " 42/37 = $q remainder $r\n";
|
||||
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -45,5 +45,3 @@ $container = NULL;
|
|||
print "\nA total of " . Shape::nshapes() . " shapes remain\n";
|
||||
|
||||
print "Goodbye\n";
|
||||
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -28,5 +28,3 @@ $f = new Foo();
|
|||
$f->enum_test(Foo::IMPULSE);
|
||||
$f->enum_test(Foo::WARP);
|
||||
$f->enum_test(Foo::LUDICROUS);
|
||||
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -72,5 +72,3 @@ print "----------------------\n";
|
|||
# All done.
|
||||
|
||||
print "php exit\n";
|
||||
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -19,6 +19,3 @@ print "Using swig style string pointers as we need them registered as constants\
|
|||
print " ADD = " . ADD . "\n";
|
||||
print " SUB = " . SUB . "\n";
|
||||
print " MUL = " . MUL . "\n";
|
||||
|
||||
?>
|
||||
|
||||
|
|
|
|||
|
|
@ -54,5 +54,3 @@ $s = 42;
|
|||
print Shape::nshapes() . " shapes remain\n";
|
||||
|
||||
print "Goodbye\n";
|
||||
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -31,5 +31,3 @@
|
|||
# print "Testing multiple return values\n";
|
||||
# ($q,$r) = divide(42,37);
|
||||
# print " 42/37 = $q remainder $r\n";
|
||||
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -2,6 +2,3 @@
|
|||
|
||||
# This code is inserted into example.php
|
||||
echo "This is include.php\n";
|
||||
|
||||
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -6,4 +6,3 @@ set_include_path(realpath(dirname(__FILE__)) . PATH_SEPARATOR . get_include_path
|
|||
require "example.php";
|
||||
|
||||
echo "Version - " . ((new ReflectionExtension('example'))->getVersion()) . "\n";
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -64,5 +64,3 @@ Shape::nshapes(42);
|
|||
print Shape::get_nshapes() ." == 42\n";
|
||||
|
||||
print "Goodbye\n";
|
||||
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -45,5 +45,3 @@ print "Getting some array values\n";
|
|||
for ($i = 0; $i < 5; $i++) {
|
||||
print " va[$i] = {$va->get($i)->as_string()}\n";
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -21,5 +21,3 @@ Foo_set(3.1415926);
|
|||
# manual for why. )
|
||||
print "Foo = " . Foo_get() . "\n";
|
||||
print_Foo();
|
||||
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -10,6 +10,3 @@ $s = new Sync();
|
|||
echo "Got new object\n";
|
||||
|
||||
$s->printer();
|
||||
|
||||
?>
|
||||
|
||||
|
|
|
|||
|
|
@ -37,7 +37,3 @@
|
|||
# free($r);
|
||||
|
||||
echo "Good\n";
|
||||
|
||||
?>
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -91,6 +91,3 @@
|
|||
/* And this */
|
||||
//status_set(0);
|
||||
echo "Status = ".status_get()."\n";
|
||||
|
||||
?>
|
||||
|
||||
|
|
|
|||
|
|
@ -9,4 +9,3 @@ $spam=new Spam();
|
|||
check::equal(0,$spam->blah(),"spam object method");
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -11,4 +11,3 @@ check::classes(array('Foo','Bar','Spam','NRFilter_i','NRRCFilter_i','NRRCFilterp
|
|||
//check::equal(0,Spam::blah($spam),"spam class method");
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -19,4 +19,3 @@ check::is_a($foo_blah,'foo');
|
|||
//check::is_a($class_foo_blah,foo);
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -35,4 +35,3 @@ voidhandle($handle);
|
|||
check::isnull($handle,'$handle not null');
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -11,4 +11,3 @@ check::classes(array());
|
|||
check::globals(array());
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -16,4 +16,3 @@ check::set("array_c","h");
|
|||
check::equal("h",check::get("array_c"),"set array_c");
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -19,4 +19,3 @@ for($x=0;$x<count($a1);$x++) {
|
|||
}
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -15,4 +15,3 @@ check::equal($as->array_c,"a",'$as->array_c=="a"');
|
|||
check::equal(isset($as->array_const_i),TRUE,'isset($as->array_const_i)');
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -13,4 +13,3 @@ check::globals(array('bar_adata','bar_bdata','bar_cdata'));
|
|||
$bar=new bar();
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -6,4 +6,3 @@ require "callback.php";
|
|||
if (gettype(callback::FOO_I_Cb_Ptr) !== 'resource') die("callback::FOO_I_Cb_Ptr not a resource\n");
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -15,4 +15,3 @@ $b=new B();
|
|||
$b->hello();
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -40,4 +40,3 @@ check::equal(GetConstCharPointerRef(), $CPLUSPLUS_MSG, "failed GetConstCharPoint
|
|||
check::equal(SetConstCharPointerRef($OTHERLAND_MSG_10, 10), true, "failed SetConstCharPointerRef");
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -13,4 +13,3 @@ do_blah($bar);
|
|||
check::classparent($bar,"");
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -10,4 +10,3 @@ $foo=$bar->toFoo();
|
|||
check::classname("foo",$foo);
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -7,4 +7,3 @@ check::classes(array("conversion_ns_template","Foo_One","Bar_One","Hi"));
|
|||
// this is too hard, I'm not sure what to test for,
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -10,4 +10,3 @@ $foo=$bar->toFoo();
|
|||
check::classname("foo",$foo);
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -165,5 +165,3 @@ enumCheck($class1->class1Test2(Class1::Enum12_Val5c), 1121);
|
|||
enumCheck(globalTest1(Enum1_Val5a), 13);
|
||||
enumCheck(globalTest2(Class1::Enum12_Val5c), 1121);
|
||||
#enumCheck(globalTest3(Class1::Struct1.Enum12_Val5f), 3121);
|
||||
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -17,4 +17,3 @@ $f->func_ptr = get_func2_ptr();
|
|||
check::equal(test_func_ptr($f, 7), -7*3, "get_func2_ptr() didn't work");
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -11,4 +11,3 @@ check::classes(array('StaticMemberTest','StaticFunctionTest','cpp_static','Stati
|
|||
check::globals(array('staticmembertest_static_int','staticbase_statty','staticderived_statty'));
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -59,4 +59,3 @@ $class = new ReflectionClass('Example3_i');
|
|||
check::equal($class->isAbstract(), true, "Example3_i abstractness failed");
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -52,4 +52,3 @@ check::equal($bc->x, 34, "bc failed");
|
|||
check::equal($bd->x, 16, "bd failed");
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -147,4 +147,3 @@ mycheck($person, "TargetLangOrphanChild");
|
|||
unset($person);
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -17,4 +17,3 @@ $f = new Bar();
|
|||
$f = new Bar(1);
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -52,4 +52,3 @@ check::equal($b->val, 5, "b: Bad virtual detection");
|
|||
check::equal($vc, 6, "c: Bad virtual detection");
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -22,4 +22,3 @@ $a = new MyFoo();
|
|||
check::equal($a->say_hi(director_enum::hello), $b->say_hello(director_enum::hi), "say failed");
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -124,4 +124,3 @@ try {
|
|||
}
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -21,4 +21,3 @@ check::equal($m->dummy(), 666, "1st call");
|
|||
check::equal($m->dummy(), 666, "2st call"); // Locked system
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -58,4 +58,3 @@ check::equal(getStatus(), 3, "getStatus() failed #5");
|
|||
resetStatus();
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -16,4 +16,3 @@ $s = $foo->abs_method();
|
|||
check::equal($s, "Bravo::abs_method()", "s failed");
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -71,4 +71,3 @@ check::equal($c->get_name(), "FooBar::get_name hello", "get_name failed");
|
|||
check::equal($c->name(), "FooBar::get_name hello", "name failed");
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -15,4 +15,3 @@ check::equal($o->rw(7), null, "get_set() failed to set");
|
|||
check::equal($o->rw(), 7, "get_set() didn't return back set value");
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -21,4 +21,3 @@ if ($ret != 0x12345678) {
|
|||
}
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -50,4 +50,3 @@ while ($i) {
|
|||
print $a . "\n";
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -67,4 +67,3 @@ check::equal($fb3->callping(), "Bar::ping();", "bad fb3::callping");
|
|||
check::equal($fb3->callcheer(), "FooBar3::cheer();", "bad fb3::callcheer");
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -57,4 +57,3 @@ $vs;
|
|||
$a->tvidents($vs);*/
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -31,4 +31,3 @@ $b->call_process_func();
|
|||
check::equal($b->smem, "hello", "smem failed");
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -30,4 +30,3 @@ if ($d->val >= 0) {
|
|||
$d->stop();
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -29,4 +29,3 @@ $c = $b->get();
|
|||
//check::equal($a->_cPtr, $c->_cPtr, "_cPtr check failed");
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -12,4 +12,3 @@ check::equal(TreeInt_Fir,chops(TreeInt_Fir),"TreeInt_Fir==chops(TreeInt_Fir)");
|
|||
check::equal(TreeInt_Cedar,chops(TreeInt_Cedar),"TreeInt_Cedar==chops(TreeInt_Cedar)");
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -15,4 +15,3 @@ $spam=new spam();
|
|||
$_spam=test($spam);
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -37,4 +37,3 @@ restore_error_handler();
|
|||
check::equal(4,$spam->_spam,"4==spam->_spam");
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -13,4 +13,3 @@ check::is_a("spam","bar");
|
|||
//check::is_a("spam","baz");
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -36,4 +36,3 @@ try {
|
|||
} catch (Exception $e) {
|
||||
check::equal($e->getMessage(), 'C++ E2 * exception thrown', '');
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -9,4 +9,3 @@ check::equal(2,$foo->test1(2),"test1");
|
|||
check::equal(3,$foo->test2(3),"test2");
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -9,4 +9,3 @@ check::equal(2,$foo->test1(2),"test1");
|
|||
check::equal(3,$foo->test2(3),"test2");
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -19,4 +19,3 @@ check::equal(-5,negate(5),"-5==negate(5)");
|
|||
check::equal(7,do_unary(-7,NEGATE),"7=do_unary(-7,NEGATE)");
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -35,4 +35,3 @@ $aa=new austinallegro();
|
|||
check::classname("austinallegro",$aa);
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -17,4 +17,3 @@ $b = new Bar();
|
|||
import_nomodule::test1($b,37);
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -19,4 +19,3 @@ $d->setitem(5, $d->getitem(0) + 3);
|
|||
check::equal($d->getitem(0) + $d->getitem(5), 17., "7+10==17");
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -19,4 +19,3 @@ $d->setitem(5, $d->getitem(0) + 3);
|
|||
check::equal($d->getitem(0) + $d->getitem(5), 17., "7+10==17");
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -19,4 +19,3 @@ $w = $point->width();
|
|||
check::equal($w, 1.0, "w failed");
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -31,4 +31,3 @@ check::equal(Structure::StaticMemberString2(), $s, "StaticMemberString2 test 2")
|
|||
li_std_string::test_const_reference_returning_void("foo");
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -27,4 +27,3 @@ check::equal($T->start_t->x, 4, "S::x != 4");
|
|||
check::equal($T->length, 7, "T::length != 7");
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -16,4 +16,3 @@ $bar = $foo->makeMore();
|
|||
check::equal(get_class($bar), "Foo", "regular failed");
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -14,5 +14,3 @@ check::isnull($factory->create(0), "create(0) should be NULL");
|
|||
check::isnull($factory->create(7, -1), "create(7, -1) should be NULL");
|
||||
check::isnull($factory->create(0, -1), "create(0, -1) should be NULL");
|
||||
check::isnull($factory->create("bad", -1), "create(\"bad\", -1) should be NULL");
|
||||
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -43,4 +43,3 @@ check::equal(21, $o->byval1forwardref($x), "test 21");
|
|||
check::equal(22, $o->byval2forwardref($x), "test 22");
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -11,4 +11,3 @@ check::equal(overload_polymorphic::test2($t), 1, "test2(Derived)");
|
|||
check::equal(overload_polymorphic::test3($t, null, $t), 1, "test3(Derived, null, Derived)");
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -16,4 +16,3 @@ $f = Foo::Foo_int(1.0,1);
|
|||
$f = Foo::Foo_int(1.0,1,1.0);
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -9,5 +9,3 @@ check::classname("A", $b->foo("test"));
|
|||
|
||||
check::equal(overload_return_type::foo(), 1, "overload_return_type::foo() should be 1");
|
||||
check::equal(overload_return_type::bar(), 1, "overload_return_type::bar() should be 1");
|
||||
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -21,4 +21,3 @@ foreach (new MyIterator(2, 5) as $k => $v) {
|
|||
check::equal($s, '(0=>2)(1=>3)(2=>4)', 'Simple iteration failed');
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -7,5 +7,3 @@ require "php_pragma.php";
|
|||
check::equal('1.5',(new ReflectionExtension('php_pragma'))->getVersion(),"1.5==version(php_pragma)");
|
||||
|
||||
check::done();
|
||||
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -15,4 +15,3 @@ check::equal(pointer_reference::overloading(1), 111, "overload test 1 failed");
|
|||
check::equal(pointer_reference::overloading($ss), 222, "overload test 2 failed");
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -15,4 +15,3 @@ $f = new ProjectFoo();
|
|||
$f->get_self();
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -65,5 +65,3 @@ check::equal(gettype(preproc_constants_c::EXPR_CONDITIONAL), "double", "preproc_
|
|||
check::equal(gettype(preproc_constants_c::EXPR_MIXED1), "double", "preproc_constants.EXPR_MIXED1 has unexpected type");
|
||||
check::equal(gettype(preproc_constants_c::EXPR_WCHAR_MAX), "integer", "preproc_constants.EXPR_WCHAR_MAX has unexpected type");
|
||||
check::equal(gettype(preproc_constants_c::EXPR_WCHAR_MIN), "integer", "preproc_constants.EXPR_WCHAR_MIN has unexpected type");
|
||||
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -64,5 +64,3 @@ check::equal(gettype(preproc_constants::EXPR_CONDITIONAL), "double", "preproc_co
|
|||
check::equal(gettype(preproc_constants::EXPR_MIXED1), "double", "preproc_constants.EXPR_MIXED1 has unexpected type");
|
||||
check::equal(gettype(preproc_constants::EXPR_WCHAR_MAX), "integer", "preproc_constants.EXPR_WCHAR_MAX has unexpected type");
|
||||
check::equal(gettype(preproc_constants::EXPR_WCHAR_MIN), "integer", "preproc_constants.EXPR_WCHAR_MIN has unexpected type");
|
||||
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -31,4 +31,3 @@ long_long_equal(ref_longlong(0x123456789ABCDEF0), 0x123456789ABCDEF0, "ref_longl
|
|||
long_long_equal(ref_ulonglong(0xF23456789ABCDEF0), 0xF23456789ABCDEF0, "ref_ulonglong failed");
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -13,4 +13,3 @@ check::classparent("Natural_UP","Interface_UP");
|
|||
check::classparent("Natural_BP","Interface_BP");
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -12,4 +12,3 @@ check::classes(array());
|
|||
check::globals(array());
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -24,4 +24,3 @@ check::equal(3,$bar->test(),"bar->test");
|
|||
check::classname("foo",$bar->__deref__());
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -29,5 +29,3 @@ $e = NULL;
|
|||
if (Shape::nshapes() != 0) {
|
||||
check::fail("Shape::nshapes() should be 0, actually ".Shape::nshapes());
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -19,4 +19,3 @@ check::equal($flam->jam(),"flam-jam","flam()->jam==flam-jam");
|
|||
check::equal($flam->jar(),"flam-jar","flam()->jar==flam-jar");
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -15,4 +15,3 @@ $bufb=new boolunaryfunction_bool($whatisthis);
|
|||
check::is_a($bufb,"boolunaryfunction_bool");
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -8,4 +8,3 @@ $foo_int=new foo_int(3);
|
|||
check::is_a($foo_int,"foo_int","Made a foo_int");
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -246,4 +246,3 @@ class check {
|
|||
# print $_SERVER[argv][0]." ok\n";
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -10,4 +10,3 @@ $int3=copy_intp(3);
|
|||
check::equal(3,otherfunc($int3)," test passing intp to otherfunc");
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -6,4 +6,3 @@ if (! class_exists("_fooimpl")) die("_fooimpl class not found\n");
|
|||
if (! 3==spam(3)) die("spam function not working right\n");
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -6,4 +6,3 @@ if (! class_exists("_fooimpl")) die("_fooimpl class not found\n");
|
|||
if (! 3==spam(3)) die("spam function not working right\n");
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -6,4 +6,3 @@ if (! class_exists("_fooimpl")) die("_fooimpl class not found\n");
|
|||
if (! 3==spam(3)) die("spam function not working right\n");
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -10,4 +10,3 @@ $ibp=valuewrapper_base::make_interface_bp();
|
|||
check::classname("interface_bp",$ibp);
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -7,5 +7,3 @@ $fail = new SimpleClassFail();
|
|||
$work = new SimpleClassWork();
|
||||
|
||||
check::equal($work->getInner()->get(), $fail->getInner()->get(), "should both be 10");
|
||||
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -9,4 +9,3 @@ check::equal(maximum(2.3, 2.4), 2.4, "maximum() doesn't work");
|
|||
check::equal(guint16_swap_le_be_constant(0x1234), 0x3412, "GUINT16_SWAP_LE_BE_CONSTANT() doesn't work");
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue