reactphp-kernel/test.sh

12 lines
471 B
Bash

#!/usr/bin/env nix-shell
#!nix-shell -i bash -p php83 php83Extensions.sockets php83Extensions.pcntl php83Extensions.mbstring php83Extensions.xml php83Extensions.xmlwriter php83Extensions.tokenizer
# Test script for NixOS — runs PHPUnit with the extensions the kernel needs
# (ext-sockets for SocketPairIpc, ext-pcntl for signals/child reaping).
echo "Running ReactPHP Kernel tests..."
echo "PHP version: $(php --version | head -n 1)"
echo ""
vendor/bin/phpunit "$@"