{"id":20674684,"url":"https://github.com/elbformat/symfony-behat-bundle","last_synced_at":"2025-10-06T00:40:54.384Z","repository":{"id":38080180,"uuid":"499407924","full_name":"elbformat/symfony-behat-bundle","owner":"elbformat","description":"Behat contexts for symfony applications","archived":false,"fork":false,"pushed_at":"2025-09-30T04:32:32.000Z","size":154,"stargazers_count":0,"open_issues_count":19,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-30T06:20:43.340Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/elbformat.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-06-03T06:44:29.000Z","updated_at":"2025-09-16T09:07:10.000Z","dependencies_parsed_at":"2023-02-10T09:20:19.603Z","dependency_job_id":"9009fec1-ff29-4398-8da2-46db3d907a0e","html_url":"https://github.com/elbformat/symfony-behat-bundle","commit_stats":{"total_commits":17,"total_committers":3,"mean_commits":5.666666666666667,"dds":"0.11764705882352944","last_synced_commit":"5f4dcec74fe41402415e9ff702d6b454d5e3ac5b"},"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/elbformat/symfony-behat-bundle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elbformat%2Fsymfony-behat-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elbformat%2Fsymfony-behat-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elbformat%2Fsymfony-behat-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elbformat%2Fsymfony-behat-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elbformat","download_url":"https://codeload.github.com/elbformat/symfony-behat-bundle/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elbformat%2Fsymfony-behat-bundle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278542673,"owners_count":26004060,"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","status":"online","status_checked_at":"2025-10-05T02:00:06.059Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-16T21:06:41.420Z","updated_at":"2025-10-06T00:40:54.359Z","avatar_url":"https://github.com/elbformat.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# symfony-behat-bundle\nThis bundle provides reusable behat contexts for symfony applications.\nAll steps are written in present tense, as suggested on https://automationpanda.com/2021/05/11/should-gherkin-steps-use-past-present-or-future-tense/\n\n## Features\n* [CommandContext](doc/context/CommandContext.md) to test symfony commands.\n* [DateContext](doc/context/DateContext.md) to mock the current date.\n* [FormContext](doc/context/FormContext.md) to test/manipulate/fill html forms.\n* [HtmlContext](doc/context/HtmlContext.md) to check the DOM/plain HTTP response.\n* [HttpContext](doc/context/HttpContext.md) for simple HTTP interactions.\n* [JsonContext](doc/context/JsonContext.md) to send or check json data in request/response.\n* [LoggingContext](doc/context/LoggingContext.md) to verify correct logging.\n* [MailerContext](doc/context/MailerContext.md) to check if mails were triggered.\n* [AbstractApiContext](doc/context/AbstractApiContext.md) to help implementing custom context for external API interaction.\n* [AbstractDatabaseContext](doc/context/AbstractDatabaseContext.md) to help implementing custom context with database interaction.\n\n## Installation\n\nAdd to your composer requirements as dev dependency.\n```console\n$ composer require --dev elbformat/symfony-behat-bundle\n```\n\nActivate bundle in your `config/bundles.php`\n```php\nElbformat\\SymfonyBehatBundle\\ElbformatSymfonyBehatBundle::class =\u003e ['test' =\u003e true],\n```\n\nUse contexts in your `behat.yml` as you like\n```yaml\ndefault:\n  extensions:\n    FriendsOfBehat\\SymfonyExtension:\n      bootstrap: tests/bootstrap.php\n      kernel:\n        path: src/Kernel.php\n        class: App\\Kernel\n        environment: behat\n        debug: false\n  suites:\n    default:\n      contexts:\n        - Elbformat\\SymfonyBehatBundle\\Context\\CommandContext\n        - Elbformat\\SymfonyBehatBundle\\Context\\DateContext\n        - Elbformat\\SymfonyBehatBundle\\Context\\FormContext\n        - Elbformat\\SymfonyBehatBundle\\Context\\HtmlContext\n        - Elbformat\\SymfonyBehatBundle\\Context\\HttpContext\n        - Elbformat\\SymfonyBehatBundle\\Context\\JsonContext\n        - Elbformat\\SymfonyBehatBundle\\Context\\LoggingContext\n        - Elbformat\\SymfonyBehatBundle\\Context\\MailerContext\n```\n### Mailer\nTo make the Test-Mailer work, you need to set the mailer dsn in `config/packages/mailer.yaml`\n```\nwhen@test:\n    framework:\n        mailer:\n            dsn: 'test://test'\n\n```\n### API\nTo not send requests to a real api, you should configure the MockClient to be used in `config/packages/framework.yaml`\n```\nwhen@test:\n    framework:\n        http_client:\n            mock_response_factory: Elbformat\\SymfonyBehatBundle\\HttpClient\\MockClientCallback\n```         \n\n## Examples\nExamples can be found in [dock/examples.md](doc/examples.md).\n\n## Updating\nWhen updating from a previous version, see the [changelog](doc/changelog.md) for changes. \n\n## What's next?\nThe next release should likely contain more tests/stability improvements.\n\n## Development\nIf you want to develop on the bundle you will find useful information in [doc/development.md](doc/development.md)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felbformat%2Fsymfony-behat-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felbformat%2Fsymfony-behat-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felbformat%2Fsymfony-behat-bundle/lists"}