public function testGetter2() { if (preg_match("/5\.1\../", phpversion())) { $this->markTestSkipped("No implicit __toString in 5.1"); return; } $db = $this->object->__get('db'); $this->assertEquals('db', $db->__toString()); $db = $this->object->__get($db); $this->assertEquals('db', $db->__toString()); }