dev-master
9999999-dev https://github.com/imjoehaines/flowder-yaml-loaderA YAML file loader for flowder
Unlicense The UNLICENSE
The Requires
The Development Requires
by Joe Haines
testing fixtures yaml fixture-loading
Wallogit.com
2017 © Pedro Peláez
A YAML file loader for flowder
A YAML file loader for Flowder, (*1)
Install Flowder YAML Loader as a development dependency through Composer, (*2)
$ composer install imjoehaines/flowder-yaml-loader --dev
Pass an instance of Imjoehaines\FlowderYaml\YamlLoader to Flowder, as detailed in the Flowder readme, (*3)
Pass the path to a YAML file to Flowder::loadFixtures, your YAML file should contain an array of arrays where each "inner" array is a database row. For example, (*4)
row_1:
column_1: value 1
column_2: 2
column_3: three
row_2:
column_1: value 4
column_2: 5
column_3: six
Any YAML array syntax supported by Symfony's Yaml Component is supported, so all of the following examples will result in the exact same data as above, (*5)
-
column_1: value 1
column_2: 2
column_3: three
-
column_1: value 4
column_2: 5
column_3: six
[
{
"column_1": "value 1",
"column_2": 2,
"column_3": "three"
},
{
"column_1": "value 4",
"column_2": 5,
"column_3": "six"
}
]
A YAML file loader for flowder
Unlicense The UNLICENSE
testing fixtures yaml fixture-loading