mediashare/shell-psysh 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

  1. Navigate to the test/shell-tester directory.
  2. 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.
  3. 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

  1. Fork the repository.
  2. Create a new branch for your changes.
  3. Add your test cases to the test/shell-tester directory.
  4. 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).
  5. 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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 318
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-07-14