public function testIsStored() { // not stored $document = $this->collection->createDocument(array('k' => 'v')); $this->assertFalse($document->isStored()); // stored $document->save(); $this->assertTrue($document->isStored()); }