Exemple #1
0
 /**
  * Test property names.
  */
 public function testPropertyNames()
 {
     $obj = new ZMObject();
     $obj->set('foo', 'bar');
     $obj->set('deng', 'poh');
     // custom only
     $this->assertEquals(array('foo', 'deng'), $obj->getPropertyNames(true));
     // all
     $this->assertEquals(array('foo', 'deng', 'propertyNames', 'properties', 'attachedMethods'), $obj->getPropertyNames(false));
 }