for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Donut Social Network - Yet another experimental social network.
* Copyright (C) 2016-2017, Dejan Angelov <[email protected]>
*
* This file is part of Donut Social Network.
* Donut Social Network is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* Donut Social Network is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with Donut Social Network. If not, see <http://www.gnu.org/licenses/>.
* @package Donut Social Network
* @copyright Copyright (C) 2016-2017, Dejan Angelov <[email protected]>
* @license https://github.com/angelov/donut/blob/master/LICENSE
* @author Dejan Angelov <[email protected]>
*/
namespace Angelov\Donut\Behat\Hooks;
use Behat\Behat\Context\Context;
use Predis\Client;
class RedisDatabaseCleanerHookContext implements Context
{
private $client;
public function __construct(Client $client)
$this->client = $client;
}
* @BeforeScenario
public function clearDatabase() : void
$this->client->flushdb();