PageRenderTime 8ms CodeModel.GetById 1ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/test-suite/php/add_link_runme.php

#
PHP | 22 lines | 11 code | 7 blank | 4 comment | 0 complexity | af69c6301d9f8f63107633c1497b6b72 MD5 | raw file
 1<?php
 2
 3require "tests.php";
 4require "add_link.php";
 5
 6// No new functions, except the flat functions
 7check::functions(array(new_foo,foo_blah));
 8
 9check::classes(array(Foo));
10
11$foo=new foo();
12check::is_a($foo,foo);
13
14$foo_blah=$foo->blah();
15check::is_a($foo_blah,foo);
16
17//fails, can't be called as a class method, should allow and make it nil?
18//$class_foo_blah=foo::blah();
19//check::is_a($class_foo_blah,foo);
20
21check::done();
22?>