Beispiel #1
0
 /**
  */
 public function testToArrayAndSetValues()
 {
     $values = array('test' => "testeuh", "private" => "priv", "protected" => "prot", "privWithoutGetter" => "coucou");
     $this->object->setValues($values);
     $result = array("test" => "testeuh", "private" => "priv", "protected" => "prot", "privWithoutGetter" => false, "privWithoutSetter" => false);
     $this->assertEquals($result, $this->object->toArray());
     $this->object->overrideVisibility(true);
     $result['privWithoutGetter'] = "coucou";
     $this->assertEquals($result, $this->object->toArray());
 }