pulsarvp / vps-tools
用于每个 PulsarVP 项目中的工具和其他内容。
1.43.4
2022-06-22 09:27 UTC
Requires
- php: >=7.0.10 <7.2
- ext-curl: *
- ext-intl: *
- ext-libxml: *
- ext-mbstring: *
- ext-mcrypt: *
- ext-mysqli: *
- creocoder/yii2-nested-sets: ~0.9
- imagine/imagine: ~0.7
- phpoffice/phpexcel: ~1.8.2
- sentry/sentry: ~1.6
- yiisoft/yii2: ~2.0.14
- yiisoft/yii2-apidoc: ~2.0
- yiisoft/yii2-authclient: ~2.0
- yiisoft/yii2-bootstrap: ~2.0
- yiisoft/yii2-smarty: ~2.0
- yiisoft/yii2-swiftmailer: ~2.0
- zyx/zyx-phpmailer: ^0.9.4
Requires (Dev)
- phpdocumentor/phpdocumentor: ~2.9
- phpunit/dbunit: ~3.0
- phpunit/phpunit: ~6.1
- dev-master
- 1.43.4
- 1.43.3
- 1.43.2
- 1.43.1
- 1.43.0
- 1.41.4
- 1.41.3
- 1.41.2
- 1.14.1
- 1.14.0
- 1.13.10
- 1.13.9
- 1.13.8
- 1.13.7
- 1.13.6
- 1.13.5
- 1.13.4
- 1.13.3
- 1.13.2
- 1.13.1
- 1.13.0
- 1.12.2
- 1.12.1
- 1.12.0
- 1.11.0
- 1.10.2
- 1.10.1
- 1.10.0
- 1.9.5
- 1.9.4
- 1.9.3
- 1.9.2
- 1.9.1
- 1.9.0
- 1.8.15
- 1.8.14
- 1.8.13
- 1.8.12
- 1.8.11
- 1.8.10
- 1.8.9
- 1.8.8
- 1.8.7
- 1.8.6
- 1.8.5
- 1.8.4
- 1.8.3
- 1.8.2
- 1.8.1
- 1.8.0
- 1.7.11
- 1.7.10
- 1.7.9
- 1.7.8
- 1.7.7
- 1.7.6
- 1.7.5
- 1.7.4
- 1.7.3
- 1.7.2
- 1.7.1
- 1.7.0
- 1.6.0
- 1.5.6
- 1.5.5
- 1.5.4
- 1.5.3
- 1.5.2
- 1.5.1
- 1.5.0
- 1.4.0
- 1.3.4
- 1.3.3
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2.7
- 1.2.6
- 1.2.5
- 1.2.4
- 1.2.3
- 1.2.2
- 1.2.1
- 1.2.0
- 1.1.0
- 1.0.0
- 0.7.13
- 0.7.12
- 0.7.11
- 0.7.10
- 0.7.9
- 0.7.8
- 0.7.7
- 0.7.6
- 0.7.5
- 0.7.4
- 0.7.3
- 0.7.2
- 0.7.1
- 0.7.0
- 0.6.6
- 0.6.5
- 0.6.4
- 0.6.3
- 0.6.2
- 0.6.1
- 0.6.0
- 0.5.4
- 0.5.3
- 0.5.2
- 0.5.1
- 0.5.0
- 0.4.2
- 0.4.1
- 0.4.0
- 0.3.12
- 0.3.11
- 0.3.10
- 0.3.9
- 0.3.8
- 0.3.7
- 0.3.6
- 0.3.5
- 0.3.4
- 0.3.3
- 0.3.2
- dev-page_active
- dev-feature/http2
- dev-feature/log-clean-mb4-chars
- dev-release/1.42.0
- dev-feature/php7.4
- dev-release/1.14.3
- dev-develop
- dev-release/1.41.2
- dev-feature/get-settings-from-global-env
- dev-feature/166_update_translations
- dev-feature/mobile-fix
- dev-feature/xle_admin_views
- dev-feature/224_queue_priority_change
- dev-feature/module_messages
This package is auto-updated.
Last update: 2024-09-22 14:00:48 UTC
README
PulsarVP 服务工具集。
启动测试
- 从根目录运行
composer install
。 - 创建测试数据库和用户。在
tests/config
目录中,将db.default.php
文件复制到db.php
,并填写测试数据库和用户的设置。 - 将
tests/migrations
目录中的 sql 文件导入到创建的数据库中。 - 创建
tests/data
目录,并赋予它写入权限:mkdir data
,chmod 0777 data
。
在 tests 目录中启动测试
所有测试: ../vendor/phpunit/phpunit/phpunit
特定测试集: ../vendor/phpunit/phpunit/phpunit helpers
单个测试文件: ../vendor/phpunit/phpunit/phpunit helpers/StringHelperTest.php
单个测试: ../vendor/phpunit/phpunit/phpunit --filter testExplode helpers/StringHelperTest.php
这里使用了 vendor 中的二进制文件,可以简化操作,直接将 phpunit
作为系统包安装,然后直接使用 phpunit helpers/StringHelperTest.php
运行。