phpunit_drupal7:Drupal 7 中的 PHPUnit

时间:2021-07-09 09:10:32
【文件属性】:
文件名称:phpunit_drupal7:Drupal 7 中的 PHPUnit
文件大小:4KB
文件格式:ZIP
更新时间:2021-07-09 09:10:32
PHP Drupal 7 中的 PHPUnit 这个 Drupal 7 模块使用来创建单元测试。 安装。 将文件 composer.example.json 复制到您的 Drupal 根目录并将其重命名为 compose.json。 将文件 phpunit.example.xml 复制到您的 Drupal 根目录并将其重命名为 phpunit.xml。 设置安装模块的路径。 您需要指向模块内的“src”文件夹。 "psr-4": { "phpunit_tests\\" : "sites/all/modules/custom/phpunit_tests/src" } 您可以定义您需要的所有命名空间。 "psr-4": { "module_one\\" : "sites/all/modules/custom/module_one/src", "module_two
【文件预览】:
phpunit_drupal7-master
----README.md(3KB)
----phpunits_tests.info(123B)
----phpunit.example.xml(939B)
----phpunits_tests.module(92B)
----src()
--------MyClass.php(97B)
--------Tests()
----composer.example.json(189B)

网友评论