{"id":19120948,"url":"https://github.com/php-actions/example-phpunit","last_synced_at":"2025-05-05T16:22:35.861Z","repository":{"id":44761655,"uuid":"286761940","full_name":"php-actions/example-phpunit","owner":"php-actions","description":"An example project that uses php-actions/phpunit","archived":false,"fork":false,"pushed_at":"2024-04-16T11:02:37.000Z","size":127,"stargazers_count":27,"open_issues_count":2,"forks_count":51,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-19T10:28:04.569Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","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/php-actions.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-08-11T14:11:19.000Z","updated_at":"2024-11-03T15:26:27.000Z","dependencies_parsed_at":"2024-02-20T11:31:13.754Z","dependency_job_id":"99fe05b3-74f2-48cf-be79-d114bf0a51cb","html_url":"https://github.com/php-actions/example-phpunit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-actions%2Fexample-phpunit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-actions%2Fexample-phpunit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-actions%2Fexample-phpunit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-actions%2Fexample-phpunit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/php-actions","download_url":"https://codeload.github.com/php-actions/example-phpunit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252531974,"owners_count":21763314,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-09T05:15:34.240Z","updated_at":"2025-05-05T16:22:35.843Z","avatar_url":"https://github.com/php-actions.png","language":"PHP","readme":"An example project that uses [php-actions/phpunit][action-link]\n===\n\nThis is a trivial project that holds only simple example functionality: a greeter that can greet you by name.\n\nCheck out the [**Actions tab** in the Github repository][actions-tab] to see the past actions workflows and their outputs.\n\nThere are unit tests stored within the `test` directory, along with a `phpunit.xml`.\n\nThe file at `.github/workflows/ci.yml` shows how to use [php-actions/phpunit][action-link] - take note of the `uses: php-actions/phpunit@v9` line.\n\nVersions of PHPUnit and all options are available to configure. Please see the [php-actions/phpunit documentation][action-link] for more information! \n\nFunctionality\n-------------\n\nThere are two classes in this example project; `Greeter` and `EnvGreeter`, in the `src/` directory, which are tested in the `test/` directory.\n\nThe `Greeter` has a function, `greet()` which takes an optional name. Without providing a name, the Greeter will return \"Hello!\", otherwise it will include the provided name, like \"Hello, Example!\".\n\nThe `EnvGreeter` extends `Greeter` and provides a new function, `greetFromEnv()`, which takes the name of an environment variable to load the name from.\n\nThe GitHub Action tests are executed in the [`ci.yml` file](https://github.com/php-actions/example-phpunit/blob/e1db6474eec4dc75526042f9cf5dab2bf8f163f9/.github/workflows/ci.yml#L14-L21) where the TEST_NAME environment variable is declared, along with any other PHPUnit configuration.\n\nClick the [Actions tab](https://github.com/php-actions/example-phpunit/actions) at the top of this repository to view the latest test runs.\n\n*** \n\nIf you found this repository helpful, please consider [sponsoring the developer][sponsor].\n\n[action-link]: https://github.com/php-actions/phpunit\n[actions-tab]: https://github.com/php-actions/example-phpunit/actions\n[sponsor]: https://github.com/sponsors/g105b\n","funding_links":["https://github.com/sponsors/g105b"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-actions%2Fexample-phpunit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphp-actions%2Fexample-phpunit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-actions%2Fexample-phpunit/lists"}