예제 #1
0
파일: StrTest.php 프로젝트: lucidphp/common
 /** @test */
 public function itShouldSafeCompareStrings()
 {
     $a = 'secret';
     $b = 'secret';
     $this->assertTrue(Str::safeCmp($a, $b));
     $a = 'secret';
     $b = 'somesecretkey';
     $this->assertFalse(Str::safeCmp($a, $b));
     $a = 'secret';
     $b = 'secrut';
     $this->assertFalse(Str::safeCmp($a, $b));
 }