예제 #1
0
 public function testGetValueReadsIssers()
 {
     $path = new PropertyPath('australian');
     $object = new Author();
     $object->setAustralian(false);
     $this->assertSame(false, $path->getValue($object));
 }
예제 #2
0
 public function testUpdateFromObjectReadsIssers()
 {
     $object = new Author();
     $object->setAustralian(false);
     $field = new TestField('australian');
     $field->updateFromObject($object);
     $this->assertSame(false, $field->getData());
 }