Skip to content
Permalink
Browse files

Use assertSame() for strict empty string check

  • Loading branch information...
garas committed Oct 2, 2018
1 parent b9862ed commit 684ffe174ccbb8c6a950d045e997c31d7eddc519
Showing with 4 additions and 4 deletions.
  1. +4 −4 tests/TestCase/Controller/Component/CookieComponentTest.php
@@ -671,16 +671,16 @@ public function testReadingMalformedEncryptedCookies()
]);
$data = $this->Cookie->read('Encrypted_empty');
$this->assertEquals('', $data);
$this->assertSame('', $data);
$data = $this->Cookie->read('Encrypted_wrong_prefix');
$this->assertEquals('', $data);
$this->assertSame('', $data);
$data = $this->Cookie->read('Encrypted_altered');
$this->assertEquals('', $data);
$this->assertSame('', $data);
$data = $this->Cookie->read('Encrypted_invalid_chars');
$this->assertEquals('', $data);
$this->assertSame('', $data);
}
/**

0 comments on commit 684ffe1

Please sign in to comment.
You can’t perform that action at this time.