{"id":20732160,"url":"https://github.com/ailixter/aiixtest","last_synced_at":"2025-03-11T10:25:54.045Z","repository":{"id":56942717,"uuid":"40324676","full_name":"ailixter/aiixtest","owner":"ailixter","description":"php test snippets runner.","archived":false,"fork":false,"pushed_at":"2022-03-26T13:51:28.000Z","size":41,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-18T00:30:47.766Z","etag":null,"topics":["testing"],"latest_commit_sha":null,"homepage":"","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/ailixter.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}},"created_at":"2015-08-06T20:10:28.000Z","updated_at":"2022-03-26T13:51:30.000Z","dependencies_parsed_at":"2022-08-21T02:10:21.508Z","dependency_job_id":null,"html_url":"https://github.com/ailixter/aiixtest","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ailixter%2Faiixtest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ailixter%2Faiixtest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ailixter%2Faiixtest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ailixter%2Faiixtest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ailixter","download_url":"https://codeload.github.com/ailixter/aiixtest/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243013759,"owners_count":20221786,"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":["testing"],"created_at":"2024-11-17T05:18:13.847Z","updated_at":"2025-03-11T10:25:54.009Z","avatar_url":"https://github.com/ailixter.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"#  aiixtest #\n\n## PHP test snippets runner\n\nYes, \"snippets\" means snippets. *Any valid php file* could be run, its $vars\nare printed and its return remembered and analysed.\n\n## Installation ##\n\n```\n$ git clone https://github.com/ailixter/aiixtest.git\ncd aiixtest\n$ php aiixtest.php\n```\nor\n```\n$ php composer require-dev ailixter/aiixtest\n$ ./vendor/bin/aiixtest.php\n```\n\n[archive  could just be downloaded](https://github.com/ailixter/aiixtest/archive/master.zip) and unarchived.\n\n## Example:\n```\no==============================================================================o\n|   test/argv.php                                                              |\no==============================================================================o\n   1| \u003c?php\n   2|\n   3|\n   4| global $argv;\n   5| reset($argv);\n   6| while (($arg = next($argv)) !== false) {\n   7|     $array[] = $arg;\n   8| }\n   9|\n  10| return \"new return\";\n--------------------------------------------------------------------------------\n\n--------------------------------------------------------------------------------\nRETURNED: string(10) \"new return\"\nEXPECTED: int(1)\n--------------------------------------------------------------------------------\nVars after:\n\nshared $array: array (\n  0 =\u003e 'php',\n);\n\n$argv: array (\n  0 =\u003e 'C:\\\\Work\\\\php\\\\aiixtest\\\\aiixtest.php',\n  1 =\u003e 'php',\n);\n\n$arg: false;\n```\n\nAll what it needs is a test directory, which structure follows:\n```\nmy-tests\n    |\n    \\-init\n    |   |\n    |   \\-(initialization files)*\n    |\n    \\-test\n        |\n        \\-(test files)+\n```\nThen a testing could be started with:\n```\n$ cd my-project\n$ php aiixtest.php my-tests\n```\nSee even more [at the wiki](https://github.com/ailixter/aiixtest/wiki)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Failixter%2Faiixtest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Failixter%2Faiixtest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Failixter%2Faiixtest/lists"}