Пример #1
0
 public static function get_instance()
 {
     if (self::$property == NULL) {
         self::$property = new Property();
     }
     return self::$property;
 }
Пример #2
0
 public function testPropertyFluency()
 {
     $property = new Property($this->getMockQuery(true));
     $newField = $property->property('bob');
     $this->assertTrue($newField instanceof Property);
 }