totten / php-symbol-diff
通过符号(类/方法)识别PHP代码中的变更
dev-master
2018-05-04 22:36 UTC
Requires
- nikic/php-parser: ^1.4
This package is auto-updated.
Last update: 2024-09-09 13:27:23 UTC
README
此命令比较两个PHP源文件,并识别任何添加、删除或修改的符号(类、函数、方法、属性)的名称。
# Compare two files php-symbol-diff old.php new.php # Compare a file with an older revision in git git show abcd1234:/some/file.php | php-symbol-diff /dev/stdin some/file.php # Compare all the files in different git commits git-php-symbol-diff v1.0 v1.1 # Compare all files in a subdirectory for different git commits git-php-symbol-diff v1.0 v1.1 -- my/sub/dir
测试
运行 phpunit。
测试基于
\PHPUnit_Framework_TestCase
,它不再由最新的PHPUnit提供。测试已在PHPUnit 3、4和5上成功执行。