{"id":25687107,"url":"https://github.com/holyshared/peridot-file-fixture-plugin","last_synced_at":"2026-05-16T04:11:25.621Z","repository":{"id":30486478,"uuid":"34040590","full_name":"holyshared/peridot-file-fixture-plugin","owner":"holyshared","description":"File fixture for peridot","archived":false,"fork":false,"pushed_at":"2015-12-04T04:35:02.000Z","size":19,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-17T13:45:18.802Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/holyshared.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-04-16T07:21:09.000Z","updated_at":"2017-05-29T11:05:12.000Z","dependencies_parsed_at":"2022-08-21T09:10:37.083Z","dependency_job_id":null,"html_url":"https://github.com/holyshared/peridot-file-fixture-plugin","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holyshared%2Fperidot-file-fixture-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holyshared%2Fperidot-file-fixture-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holyshared%2Fperidot-file-fixture-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holyshared%2Fperidot-file-fixture-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/holyshared","download_url":"https://codeload.github.com/holyshared/peridot-file-fixture-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240549397,"owners_count":19819139,"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":"2025-02-24T20:08:09.005Z","updated_at":"2026-05-16T04:11:20.590Z","avatar_url":"https://github.com/holyshared.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"peridot-file-fixture-plugin\n====================================\n\n[![Build Status](https://travis-ci.org/holyshared/peridot-file-fixture-plugin.svg?branch=master)](https://travis-ci.org/holyshared/peridot-file-fixture-plugin)\n[![HHVM Status](http://hhvm.h4cc.de/badge/holyshared/peridot-file-fixture-plugin.svg)](http://hhvm.h4cc.de/package/holyshared/peridot-file-fixture-plugin)\n[![Coverage Status](https://coveralls.io/repos/holyshared/peridot-file-fixture-plugin/badge.svg)](https://coveralls.io/r/holyshared/peridot-file-fixture-plugin)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/holyshared/peridot-file-fixture-plugin/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/holyshared/peridot-file-fixture-plugin/?branch=master)\n[![Dependency Status](https://www.versioneye.com/user/projects/552f70b810e714f9e5000d0c/badge.svg?style=flat)](https://www.versioneye.com/user/projects/552f70b810e714f9e5000d0c)\n[![Stories in Ready](https://badge.waffle.io/holyshared/peridot-file-fixture-plugin.png?label=ready\u0026title=Ready)](https://waffle.io/holyshared/peridot-file-fixture-plugin)\n\nBasic usage\n------------------------------------\n\nRegister the plugin to be able to use in peridot.  \nPlease the configuration file see the [file-fixture](https://github.com/holyshared/file-fixture).\n\n```php\nuse Evenement\\EventEmitterInterface;\nuse holyshared\\peridot\\FileFixturePlugin;\n\nreturn function(EventEmitterInterface $emitter)\n{\n    $plugin = new FileFixturePlugin(__DIR__ . '/fixtures.toml');\n    $plugin-\u003eregisterTo($emmiter);\n};\n```\n\nBy calling the **loadFixture** method in spec, you can load the fixture.\n\n```php\ndescribe('Example', function() {\n    describe('output', function() {\n        it('return message for user', function() {\n            $content = $this-\u003eloadFixture('text:console', [ 'name' =\u003e 'Jhon' ]);\n            expect('My name is Jhon')-\u003etoEqual($content);\n        });\n    });\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fholyshared%2Fperidot-file-fixture-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fholyshared%2Fperidot-file-fixture-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fholyshared%2Fperidot-file-fixture-plugin/lists"}