Skip to content

yaodong/php-fixtures

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Fixtures

Build Status

This package is inspired by Rails.

Fixtures

Fixtures are a way of organizing data that you want to test against.

They are stored in YAML files, one file per model, which are placed in the directory you want. The fixture file ends with the .yml file extension (Rails example: /test/fixtures/web_sites.yml). The format of a fixture file looks like this:

eric:
  name: Eric Roston
  email: [email protected]

jane:
  name: Jane Hunter
  email: [email protected]

This fixture file includes two fixtures. Each YAML fixture (ie. record) is given a name and is followed by an indented list of key/value pairs in the "key: value" format. Records are separated by a blank line for your viewing pleasure. Note that fixtures are unordered.

About

PHP fixtures fo testing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages