diff --git a/tests/InstantiatorTestAsset/XMLReaderAsset.php b/tests/InstantiatorTestAsset/XMLReaderAsset.php new file mode 100644 index 0000000..b42f0f2 --- /dev/null +++ b/tests/InstantiatorTestAsset/XMLReaderAsset.php @@ -0,0 +1,42 @@ +. + */ + +namespace InstantiatorTestAsset; + +use BadMethodCallException; +use XMLReader; + +/** + * Test asset that extends an internal PHP class + * + * @author Dave Marshall + * @link https://github.com/doctrine/instantiator/pull/8 + */ +class XMLReaderAsset extends XMLReader +{ + /** + * Constructor - should not be called + * + * @throws BadMethodCallException + */ + public function __construct() + { + throw new BadMethodCallException('Not supposed to be called!'); + } +}