示例#1
0
function test_static_method_arity()
{
    StaticMethods::foo(1);
    //ERROR: wrong number of arguments
    StaticMethods::foo(1, 2);
    //ERROR: not enough arguments
    StaticMethods::foo();
}
示例#2
0
function test_static_method1()
{
    StaticMethods::foo(1);
    //SKIP: wrong number of arguments
    StaticMethods::foo(1, 2);
    //SKIP: not enough arguments
    StaticMethods::foo();
    //SKIP: undefined static method
    StaticMethods::bar();
}
示例#3
0
function static_foo1()
{
    StaticMethods::foo(1);
    //ERROR: wrong number of arguments
    StaticMethods::foo(1, 2);
    //ERROR: not enough arguments
    StaticMethods::foo();
    //ERROR: undefined static method
    StaticMethods::bar();
}