/** * Testing testImportDOM(). * * This function was a puzzle to test, because it doesn't seem to have * any reason at all for existing. In the end, I decided that since the * actions of it were allegedly similar to loadString, we should use the same * sort of testing approach should be used. But, since the code itself does * nothing at the moment but return false, that would be all we test for * and that way of the function is ever activated in the future, the test * would flag it and new tests could be written. * * @param string DOM string to parse * @param boolean Function always seems to return false * @param array Error structure * * @return void * @dataProvider casesLoadString */ public function testImportDOM( $xml, $expected, $error ) { $this->assertThat( $this->object->importDOM($xml), $this->isFalse() ); }