/** * Tests checking on existence of a child * @covers \Copycat\Structure\SimpleXmlElement::exists() */ public function testExists() { $element = new SimpleXmlElement('<Test><foo></foo></Test>'); $this->assertFalse($element->exists('bar`')); $this->assertTrue($element->exists('foo')); }