public function testAppendWithParam() { $root = new MockProperty('root'); $child = new xml\Property('child'); $this->assertInstanceOf('exemel\\Property', $root->append('child', '', array(), $obj)); $this->assertEquals($child, $root->children[0]); $this->assertEquals($child, $obj); }