Download the PHP package holyshared/file-fixture without Composer
On this page you can find all versions of the php package holyshared/file-fixture. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download holyshared/file-fixture
More information about holyshared/file-fixture
Files in holyshared/file-fixture
Package file-fixture
Short Description Simple file fixture loader for unittest
License MIT
Informations about the package file-fixture
file-fixture
Simple file fixture loader for unittest.
You can easily load the test-based fixture.
Table of contents
- Basic usage
- Output fixture of terminal
- Configuration file
Basic usage
Will be able to load the fixture in four steps.
- Create a loader of container
- Create a fixture of container
- Create a FileFixture
- Load fixture from the container.
Loader is compatible with text data, mustache template, ASCII art.
- TextLoader - Load the text data.
- MustacheLoader - Load the mustache template
- ArtLoader - Load the ASCII art.
Output fixture of terminal
With ArtLoader, you can load the coloring text data.
Create a fixture file
Create a fixture file.
Mark the text to apply the color in the tag.
Load of Output fixture
Configuration file
Using the configuration file, you will be able to easily load the fixture.
Example of the fixture to load the mustache of template.
Create a fixture template
Create a configuration file of fixture
The name of the fixture, you must begin with the name of the loader.
The name of this fixture will be mustache:default:successMessage.
Load of fixture
Load the fixture by specifying the name.
When the load is successful, will return the results of template of mustache has been processed.
Contributors
- Jérémy Marodon (@Th3Mouk)
All versions of file-fixture with dependencies
yosymfony/toml Version ~0.3
easyframework/collections Version ^6.0 | ^7.0
league/climate Version ~3.2
mustache/mustache Version ~2.11
eloquent/pathogen Version ~0.6