phpunit-schema:PHPUnit的架构文件

时间:2021-05-12 18:58:04
【文件属性】:
文件名称:phpunit-schema:PHPUnit的架构文件
文件大小:15KB
文件格式:ZIP
更新时间:2021-05-12 18:58:04
PHP PHPUnit模式 PHPUnit架构文件定义了可用于构造PHPUnit配置文件的规则。 具有模式意识的XML编辑器可以为作者提供内容帮助。 使用模式文件是可选的。 验证您的配置文件 Schema文件未定义目标名称空间,因此,如果您只想验证它,则无需修改phpunit.xml。 只需使用xmllint类的工具来读取您的配置并根据Schema对其进行验证,例如 xmllint --schema phpunit.xsd phpunit.xml 如果要从PHP文件进行验证,则可以使用DOM扩展名,例如 $dom = new DOMDocument; $dom->load('/path/to/your/phpunit.xml'); if ($dom->schemaValidate('/path/to/phpunit.xsd')) { echo 'The document is vali
【文件预览】:
phpunit-schema-master
----readme.markdown(3KB)
----.gitignore(33B)
----src()
--------phpunit()
--------phpunit.xsd(750B)
----tools()
--------generate-schema.php(1KB)
----tests()
--------bootstrap.php(121B)
--------SchemaTest.php(731B)
--------phpunit.xml(338B)
--------_files()

网友评论