/var/www/vhosts/nabawater/vendor/codeception/base/src/Codeception/Util
Edit: /var/www/vhosts/nabawater/vendor/codeception/base/src/Codeception/Util/Fixtures.php (812B)
'davert']);
* Fixtures::get('user1');
* Fixtures::exists('user1');
*
* ?>
* ```
*
*/
class Fixtures
{
protected static $fixtures = [];
public static function add($name, $data)
{
self::$fixtures[$name] = $data;
}
public static function get($name)
{
if (!self::exists($name)) {
throw new \RuntimeException("$name not found in fixtures");
}
return self::$fixtures[$name];
}
public static function cleanup()
{
self::$fixtures = [];
}
public static function exists($name)
{
return isset(self::$fixtures[$name]);
}
}