You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pdd-order-api/vendor/mmeyer2k/dcrypt/tests/StrTest.php

20 lines
445 B
PHP

<?php
use Dcrypt\Str;
class StrcmpTest extends PHPUnit_Framework_TestCase
{
public function testEquals()
{
// Test with hash_equals
$this->assertTrue(Str::equal('2222', '2222', true));
$this->assertFalse(Str::equal('2222', '3333', true));
// Test without hash_equals
$this->assertTrue(Str::equal('2222', '2222', false));
$this->assertFalse(Str::equal('2222', '3333', false));
}
}