{"id":21163457,"url":"https://github.com/punktde/codeception-database","last_synced_at":"2026-02-17T05:01:53.621Z","repository":{"id":45874574,"uuid":"199846796","full_name":"punktDe/codeception-database","owner":"punktDe","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-18T11:55:39.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-14T21:41:52.216Z","etag":null,"topics":["codeception"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/punktDe.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}},"created_at":"2019-07-31T11:55:42.000Z","updated_at":"2024-10-18T11:55:10.000Z","dependencies_parsed_at":"2024-11-14T21:40:41.853Z","dependency_job_id":"4b38612c-4181-473a-8081-9c8a7149acf6","html_url":"https://github.com/punktDe/codeception-database","commit_stats":{"total_commits":14,"total_committers":5,"mean_commits":2.8,"dds":0.5,"last_synced_commit":"4fd2aaff064ce008d6fdf8a9601925a41679e532"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/punktDe%2Fcodeception-database","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/punktDe%2Fcodeception-database/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/punktDe%2Fcodeception-database/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/punktDe%2Fcodeception-database/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/punktDe","download_url":"https://codeload.github.com/punktDe/codeception-database/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225567530,"owners_count":17489517,"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":["codeception"],"created_at":"2024-11-20T13:47:02.686Z","updated_at":"2026-02-17T05:01:53.464Z","avatar_url":"https://github.com/punktDe.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# punktde/codeception-database\n\n## Gherkin Steps and additional module functions for the Codeception Database module\n\n### How to use\n\n#### Extended module\n\nUse the module `PunktDe\\Codeception\\Database\\Module\\Database` instead of the default codeception module `db` in your `codeception.yaml`:\n\n```\nmodules:\n   enabled:\n      - PunktDe\\Codeception\\Database\\Module\\Database:\n         dsn: 'mysql:host=localhost;dbname=testdb'\n         user: 'root'\n         password: ''\n         dump: 'tests/_data/dump.sql'\n         populate: true\n         cleanup: true\n         reconnect: true\n         waitlock: 10\n         ssl_key: '/path/to/client-key.pem'\n         ssl_cert: '/path/to/client-cert.pem'\n         ssl_ca: '/path/to/ca-cert.pem'\n         ssl_verify_server_cert: false\n         ssl_cipher: 'AES256-SHA'\n         initial_queries:\n             - 'CREATE DATABASE IF NOT EXISTS temp_db;'\n             - 'USE temp_db;'\n             - 'SET NAMES utf8;'\n```\n\n\n#### Gherkin steps\n\nJust add the trait `PunktDe\\Codeception\\Database\\ActorTraits\\Database` to your testing actor. Then you can use `*.feature` files to write your gherkin tests with the new steps.\n\n##### Example actor \n\n```\n\u003c?php\n\n/*\n *  (c) 2018 punkt.de GmbH - Karlsruhe, Germany - http://punkt.de\n *  All rights reserved.\n */\n\n/**\n * Inherited Methods\n * @method void wantToTest($text)\n * @method void wantTo($text)\n * @method void execute($callable)\n * @method void expectTo($prediction)\n * @method void expect($prediction)\n * @method void amGoingTo($argumentation)\n * @method void am($role)\n * @method void lookForwardTo($achieveValue)\n * @method void comment($description)\n * @method \\Codeception\\Lib\\Friend haveFriend($name, $actorClass = NULL)\n *\n * @SuppressWarnings(PHPMD)\n*/\nclass AcceptanceTester extends \\Codeception\\Actor\n{\n    use _generated\\AcceptanceTesterActions;\n    use \\PunktDe\\Codeception\\Database\\ActorTraits\\Database; // use the database steps trait\n}\n``` \n\n##### Which steps are there? \n\nTo get all the steps available you can just run the following command:\n\n```\nvendor/bin/codecept -c path/to/codeception.yaml gherkin:steps suiteName\n```\n\nThis will give you a table of all the steps available.\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpunktde%2Fcodeception-database","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpunktde%2Fcodeception-database","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpunktde%2Fcodeception-database/lists"}