Added
- GitHub Actions CI/CD Integration: Added workflows for running automated tests and verifying PHPVM functionality on macOS and Linux.
- Linux Compatibility: Implemented Homebrew mock support to allow testing on both macOS and Linux environments.
- Extended Test Suite: Improved BATS test coverage to handle different system environments and dependencies.
Changed
- Improved Homebrew Detection: The script now properly checks for Homebrew availability and handles missing installations more gracefully.
- Refactored Test Setup: The
setup
function intest_phpvm.bats
now ensures correct sourcing ofphpvm.sh
and mocks Homebrew on Linux. - Better Error Messages: Adjusted error outputs for clarity when Homebrew or PHP versions are unavailable.
Fixed
- Fixed Ubuntu Compatibility Issues: The tests no longer fail due to missing Homebrew; instead, they mock Homebrew behavior on Linux.
- Resolved Test Failures: The
install_php
,use_php_version
, andauto_switch_php_version
tests now properly execute across different OS platforms. - Prevented Test Cleanup Failures: The
teardown
function now ensures.phpvmrc
and other temporary files are removed only if they exist.
Full Changelog: 1.1.0...1.2.0