mediashare/shell-psysh
最新稳定版本:v0.12.10.11
Composer 安装命令:
composer require mediashare/shell-psysh
包简介
An interactive shell for modern PHP.
README 文档
README
Overview
The Shell Tester is a tool for testing shell scripts and commands. It allows you to define test cases, execute them against your code, and verify the results.
Getting Started
- Navigate to the
test/shell-testerdirectory. - Review existing test cases: Examine the files in this directory to understand how tests are structured and written. The tests typically involve running a command or script, capturing its output, and asserting that the output matches an expected value.
- Write new test cases: Create new files in this directory, following the existing pattern.
Test Case Structure
Each test case consists of the following elements:
- Command/Script to Execute: The command or script that you want to test.
- Expected Output: The output that you expect the command or script to produce.
Contributing
- Fork the repository.
- Create a new branch for your changes.
- Add your test cases to the
test/shell-testerdirectory. - Ensure that your test cases pass by running the test suite (details on how to run the test suite would go here if a testing framework was used).
- Submit a pull request.
Example Test Case
# This is an example test case. # It tests the `ls -l` command. command: ls -l expected_output: - total 4 - -rw-r--r-- 1 user group 1024 Jan 1 00:00 file1.txt - -rw-r--r-- 1 user group 2048 Jan 1 00:00 file2.txt
Note: The exact format of the test case may vary depending on the specific testing framework used.
Further Information
- [Link to documentation (if available)]
- [Link to issue tracker]
统计信息
- 总下载量: 13
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-07-14