{"id":36387750,"url":"https://github.com/peterrehm/php-test","last_synced_at":"2026-01-11T15:04:31.523Z","repository":{"id":57038208,"uuid":"81065179","full_name":"peterrehm/php-test","owner":"peterrehm","description":"CI helper scripts and configuration for PHP projects","archived":false,"fork":false,"pushed_at":"2019-02-03T21:18:08.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-03T05:35:33.434Z","etag":null,"topics":["behat","ci","jenkins","phing","phpunit"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/peterrehm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-06T08:31:59.000Z","updated_at":"2019-02-03T21:17:54.000Z","dependencies_parsed_at":"2022-08-23T23:30:52.389Z","dependency_job_id":null,"html_url":"https://github.com/peterrehm/php-test","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/peterrehm/php-test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterrehm%2Fphp-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterrehm%2Fphp-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterrehm%2Fphp-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterrehm%2Fphp-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peterrehm","download_url":"https://codeload.github.com/peterrehm/php-test/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterrehm%2Fphp-test/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28309752,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T14:58:17.114Z","status":"ssl_error","status_checked_at":"2026-01-11T14:55:53.580Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["behat","ci","jenkins","phing","phpunit"],"created_at":"2026-01-11T15:04:31.052Z","updated_at":"2026-01-11T15:04:31.518Z","avatar_url":"https://github.com/peterrehm.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"php-test\n========\n\nThis library aims to ease the test setup of standard PHP projects using PHPUnit \nand Behat using a phing build file.\n\nSetup\n-----\n\n- Include this library using composer\n\n````php\n    composer require peterrehm/php-test --dev\n````\n\n- Copy the sample build file into your project root\n\n````sh\n   (project-root) $ cp vendor/peterrehm/php-test/build_local.xml build.xml\n````\n\n- Set up the test scripts\n\nCreate bin/run_tests.sh and bin/run_static_analysis.sh. The simplest version would\nbe as follows:\n\n````sh\n# bin/run_static_analysis.sh\n#!/bin/bash\nvendor/peterrehm/php-test/bin/run_static_analysis.sh\n\n# bin/run_tests.sh\n#!/bin/bash\nvendor/peterrehm/php-test/bin/run_tests.sh coverage no-behat\n````\nOf course you could just copy from those files and add whatever logic you need\nto it. As it is common to need custom test preparations you can pass a third\nparameter to run tests with a custom script name.\n\nIf no script is provided a simple composer install will be executed. If you\nprovide a custom script make sure to manually run the composer install.\n\n````\n# bin/run_tests.sh\n#!/bin/bash\nvendor/peterrehm/php-test/bin/run_tests.sh coverage no-behat /my/custom/script.sh\n````\nThis command will be executed prior to the test execution.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterrehm%2Fphp-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeterrehm%2Fphp-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterrehm%2Fphp-test/lists"}