Example #1
0
 /**
  * @covers Paradox\Client::cancel
  */
 public function testCancel()
 {
     $this->client->begin();
     $document = $this->client->dispense($this->collectionName);
     $document->set('name', 'john smith');
     $this->client->store($document);
     $this->client->cancel();
     $this->assertFalse($this->client->getToolbox()->getTransactionManager()->hasTransaction(), "The transaction was not cancelled");
 }