Skip to content

Latest commit

 

History

History
63 lines (33 loc) · 1.32 KB

File metadata and controls

63 lines (33 loc) · 1.32 KB
layout doc
title Fixtures - Codeception - Documentation

Codeception\Util\Fixtures

Really basic class to store data in global array and use it in Cests/Tests.

{% highlight php %}

'davert']); Fixtures::get('user1'); Fixtures::exists('user1'); {% endhighlight %} #### add() *public static* add($name, $data) * `param string` $name * `param ` $data * `return void` [See source](https://github.com/Codeception/Codeception/blob/5.0/src/Codeception/Util/Fixtures.php#L23) #### cleanup() *public static* cleanup($name = '') * `param string` $name * `return void` [See source](https://github.com/Codeception/Codeception/blob/5.0/src/Codeception/Util/Fixtures.php#L37) #### exists() *public static* exists($name) * `param string` $name * `return bool` [See source](https://github.com/Codeception/Codeception/blob/5.0/src/Codeception/Util/Fixtures.php#L47) #### get() *public static* get($name) * `param string` $name [See source](https://github.com/Codeception/Codeception/blob/5.0/src/Codeception/Util/Fixtures.php#L28)

 

Reference is taken from the source code. Help us to improve documentation. Edit module reference