<?php

/*
 +--------------------------------------------------------------------------+
 | Zephir Language                                                          |
 +--------------------------------------------------------------------------+
 | Copyright (c) 2013-2015 Zephir Team and contributors                     |
 +--------------------------------------------------------------------------+
 | This source file is subject the MIT license, that is bundled with        |
 | this package in the file LICENSE, and is available through the           |
 | world-wide-web at the following url:                                     |
 | http://zephir-lang.com/license.html                                      |
 |                                                                          |
 | If you did not receive a copy of the MIT license and are unable          |
 | to obtain it through the world-wide-web, please send a note to           |
 | license@zephir-lang.com so we can mail you a copy immediately.           |
 +--------------------------------------------------------------------------+
*/

namespace Extension;

use Test\ArrayObject;

class ArrayObjectTest extends \PHPUnit_Framework_TestCase
{
    public function testSetGet()
    {
        $t = new ArrayObject();
        $this->assertInstanceOf('\ArrayObject', $t);

        $t->test_1 = 1;
        $this->assertEquals(1, $t->test_1);

        $t["test_2"] = 1;
        $this->assertEquals(1, $t->test_2);
    }
}

<?php

/*
 +--------------------------------------------------------------------------+
 | Zephir Language                                                          |
 +--------------------------------------------------------------------------+
 | Copyright (c) 2013-2015 Zephir Team and contributors                     |
 +--------------------------------------------------------------------------+
 | This source file is subject the MIT license, that is bundled with        |
 | this package in the file LICENSE, and is available through the           |
 | world-wide-web at the following url:                                     |
 | http://zephir-lang.com/license.html                                      |
 |                                                                          |
 | If you did not receive a copy of the MIT license and are unable          |
 | to obtain it through the world-wide-web, please send a note to           |
 | license@zephir-lang.com so we can mail you a copy immediately.           |
 +--------------------------------------------------------------------------+
*/

namespace Extension;

use Test\ArrayObject;

class ArrayObjectTest extends \PHPUnit_Framework_TestCase
{
    public function testSetGet()
    {
        $t = new ArrayObject();
        $this->assertInstanceOf('\ArrayObject', $t);

        $t->test_1 = 1;
        $this->assertEquals(1, $t->test_1);

        $t['test_2'] = 1;
        $this->assertEquals(1, $t['test_2']);
    }
}

Fix the array object test, since you cant access array data as property
Fix the array object test, since you cant access array data as property

Array Data is only accessible via array-access.
