public function test_xoopsClone() { $instance = new XoopsGroup(); $clone = $instance->xoopsClone(); $this->assertInstanceOf('XoopsGroup', $clone); $this->assertTrue($clone->isNew()); // the only difference between instance and clone $x = $clone->getVars(); $y = $instance->getVars(); $this->assertSame($y, $x); }