for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Behatch\Context;
use Behat\Behat\Context\TranslatableContext;
use Behat\MinkExtension\Context\RawMinkContext;
abstract class BaseContext extends RawMinkContext implements TranslatableContext
{
use \Behatch\Html;
use \Behatch\Asserter;
public static function getTranslationResources()
return glob(__DIR__ . '/../../i18n/*.xliff');
}
/**
* en
* @transform /^(0|[1-9]\d*)(?:st|nd|rd|th)?$/
*
* fr
* @transform /^(0|[1-9]\d*)(?:ier|er|e|ème)?$/
* pt
* @transform /^(0|[1-9]\d*)º?$/
*/
public function castToInt($count)
return intval($count);
protected function getMinkContext()
$context = new \Behat\MinkExtension\Context\MinkContext();
$context->setMink($this->getMink());
$context->setMinkParameters($this->getMinkParameters());
return $context;