Exemplo n.º 1
0
 /**
  * Test behavior of magic method during outside calling.
  */
 public function testGetIssetSetUnsetProtectedViaMethod()
 {
     $this->initializeProxy('state1', true);
     $this->assertEquals('value1', $this->proxy->getProProperty());
     $this->assertTrue($this->proxy->issetProProperty());
     $this->assertFalse($this->proxy->issetMissingProProperty());
     $this->proxy->setProProperty('value2');
     $this->assertEquals('value2', $this->proxy->getProProperty());
     $this->proxy->unsetProProperty();
     $this->assertFalse($this->proxy->issetProProperty());
 }