NsplTest\OpTest\OpTest::testArray PHP 메소드

testArray() 공개 메소드

public testArray ( )
    public function testArray()
    {
        $this->assertSame([1], call_user_func(array_, 1));
        $this->assertSame([1], call_user_func(array_, 1));
        $object = new \StdClass();
        $object->hello = 'world';
        $object->answer = 42;
        $this->assertSame(array('hello' => 'world', 'answer' => 42), call_user_func(array_, $object));
    }