Пример #1
0
 public function test_nequals()
 {
     $this->_object->setSymbol('~');
     $newobj = new RtfControlSymbol();
     $newobj->setSymbol('#');
     $this->assertFalse($this->_object->equals($newobj));
     $this->assertFalse($newobj->equals($this->_object));
 }
Пример #2
0
 public function equals($object)
 {
     return parent::equals($object) && $this->_value === $object->_value;
 }