public function testIsEmpty() { $doc = new Epic_Mongo_Document(); $this->assertTrue($doc->isEmpty()); $doc->test = new Epic_Mongo_Document(); $this->assertTrue($doc->isEmpty()); $doc->test2 = true; $this->assertFalse($doc->isEmpty()); $this->assertTrue($doc->test->isEmpty()); $doc->test2 = null; $this->assertTrue($doc->isEmpty()); $doc->test->test2 = true; $this->assertFalse($doc->isEmpty()); $this->assertFalse($doc->test->isEmpty()); }