luyatests\core\helpers\ObjectHelperTest::testArgMixin4 PHP Method

testArgMixin4() public method

public testArgMixin4 ( )
    public function testArgMixin4()
    {
        $response = ObjectHelper::callMethodSanitizeArguments(new TestObject(), 'm4');
        $this->assertEquals(true, is_array($response));
        $this->assertEquals(0, count($response));
        $response = ObjectHelper::callMethodSanitizeArguments(new TestObject(), 'm4', ['arr' => ['foo' => 'bar']]);
        $this->assertEquals(true, is_array($response));
        $this->assertEquals(1, count($response));
        $this->assertArrayHasKey('foo', $response);
        $this->assertEquals('bar', $response['foo']);
    }