Esempio n. 1
0
 /**
  * @covers Paradox\pod\Document::setKey
  */
 public function testSetKey()
 {
     try {
         $value = $this->document->setKey('123456');
     } catch (\Exception $e) {
         $this->assertInstanceOf('Paradox\\exceptions\\PodException', $e, 'Exception thrown was not a Paradox\\exceptions\\PodException');
         return;
     }
     $this->fail("Setting the document's key using setKey() did not throw an exception");
 }