for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* File ConstantTest.php
*
* @author de Cramer Oliver<[email protected]>
* @copyright 2018 Smile
*/
namespace Oliverde8\Component\RuleEngine\Tests\Rules;
use Oliverde8\Component\RuleEngine\Rules\Constant;
use Psr\Log\NullLogger;
class ConstantTest extends AbstractRule
{
public function testConstants()
$this->assertRuleResults(['test' => 'toto 1'], [], ['value' => 'test'], 'test');
$this->assertRuleResults(['test' => 'toto 1'], [], ['value' => ['1' => ['toto']]], ['1' => ['toto']]);
}
protected function getRule()
return new Constant(new NullLogger());