/** * */ public function testGetAndSet_CaseSensitivity_IgnoresCase() { $proxyObject = new ProxyObject(); $proxyObject->Greeting = 'Hello World'; $proxyObject->Greeting->speaker = 'chris'; $this->assertEquals('Hello World', $proxyObject->Greeting()); $this->assertEquals('Hello World', $proxyObject->greeting()); $this->assertEquals('chris', $proxyObject->greeting->speaker()); $this->assertEquals('chris', $proxyObject->greeting->Speaker()); $this->assertTrue(isset($proxyObject->Greeting)); $this->assertTrue(isset($proxyObject->greeting)); $this->assertTrue(isset($proxyObject->greeting->speaker)); $this->assertTrue(isset($proxyObject->greeting->Speaker)); $this->assertFalse(isset($proxyObject->greeting->Hello)); unset($proxyObject->Greeting->Speaker); $this->assertFalse(isset($proxyObject->greeting->speaker)); }