luyatests\core\helpers\ArrayHelperTest::testToObject PHP Method

testToObject() public method

public testToObject ( )
    public function testToObject()
    {
        $this->assertTrue(is_object(ArrayHelper::toObject(['foo' => 'bar'])));
        $this->assertEquals('bar', ArrayHelper::toObject(['foo' => 'bar'])->foo);
    }