Commit 6313d2a7 authored by Jan Kuchař's avatar Jan Kuchař

tests: added strict comparision test

parent b7eac287
require __DIR__ . '/../bootstrap.php';
* @method static Enum1 VALUE1()
* @method static Enum1 VALUE2()
class Enum1 extends \Grifart\Enum\Enum
use Grifart\Enum\AutoInstances;
protected const VALUE1 = 'value1';
protected const VALUE2 = 'value2';
$val1 = Enum1::VALUE1();
$val2 = Enum1::VALUE2();
\Tester\Assert::true($val1 === Enum1::VALUE1());
\Tester\Assert::true($val2 === Enum1::VALUE2());
\Tester\Assert::true($val1 !== Enum1::VALUE2());
\Tester\Assert::true($val2 !== Enum1::VALUE1());
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment