Exemple #1
0
 /**
  * @covers Paradox\Toolbox::validatePod
  */
 public function testValidatePodFailure()
 {
     $client = $this->getClient();
     $document = $client->dispense("mycollection");
     try {
         $this->toolbox->validatePod($document);
     } catch (\Exception $e) {
         $this->assertInstanceOf('Paradox\\exceptions\\ToolboxException', $e, 'Exception thrown was not a Paradox\\exceptions\\ToolboxException');
         return;
     }
     $this->fail('Calling validatePod() on a pod that does not belong to the toolbox did not throw an exception');
 }