Exemplo n.º 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();
}
Exemplo n.º 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();
}
Exemplo n.º 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();
}