/** * */ public function testOffsetGetAndSet_ValueIsArray_OffsetReturnsCorrectProxyValues() { $values = array('Hello', 'World', 'Test'); $proxyObject = new ProxyObject($values); $this->assertEquals('Hello', $proxyObject[0]()); $this->assertEquals('World', $proxyObject[1]()); $this->assertEquals('Test', $proxyObject[2]()); $this->assertEquals(3, $proxyObject->count()); $this->assertNull($proxyObject[66]()); unset($proxyObject[1]); $this->assertTrue(isset($proxyObject[0])); $this->assertFalse(isset($proxyObject[1])); $this->assertTrue(isset($proxyObject[2])); $this->assertEquals('Hello', $proxyObject[0]()); $this->assertNull($proxyObject[1]()); $this->assertEquals('Test', $proxyObject[2]()); $this->assertEquals(2, $proxyObject->count()); }