Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0b7974d

Browse files
committed
Remove old tests.
1 parent d24766b commit 0b7974d

1 file changed

Lines changed: 0 additions & 56 deletions

File tree

tests/Encryption/EncrypterTest.php

Lines changed: 0 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -35,62 +35,6 @@ public function testExceptionThrownWhenPayloadIsInvalid()
3535
}
3636

3737

38-
public function testCanStillBeConstructedWithInvalidKeys()
39-
{
40-
$e = new Encrypter(''); // should not throw an exception
41-
42-
$e = new Encrypter('YourSecretKey!!!'); // should not throw an exception
43-
}
44-
45-
46-
/**
47-
* @expectedException Illuminate\Encryption\InvalidKeyException
48-
* @expectedExceptionMessage The encryption key must not be empty.
49-
*/
50-
public function testEncryptWithEmptyStringAsKey()
51-
{
52-
$e = new Encrypter('');
53-
54-
$e->encrypt('bar'); // throw the exception now that we tried to use the encrypter
55-
}
56-
57-
58-
/**
59-
* @expectedException Illuminate\Encryption\InvalidKeyException
60-
* @expectedExceptionMessage The encryption key must not be empty.
61-
*/
62-
public function testDecryptWithEmptyStringAsKey()
63-
{
64-
$e = new Encrypter('');
65-
66-
$e->decrypt('bar'); // throw the exception now that we tried to use the encrypter
67-
}
68-
69-
70-
/**
71-
* @expectedException Illuminate\Encryption\InvalidKeyException
72-
* @expectedExceptionMessage The encryption key must be a random string.
73-
*/
74-
public function testEncryptWithDefaultStringAsKey()
75-
{
76-
$e = new Encrypter('YourSecretKey!!!');
77-
78-
$e->encrypt('bar'); // throw the exception now that we tried to use the encrypter
79-
}
80-
81-
82-
/**
83-
* @expectedException Illuminate\Encryption\InvalidKeyException
84-
* @expectedExceptionMessage The encryption key must be a random string.
85-
*/
86-
public function testDecryptWithDefaultStringAsKey()
87-
{
88-
$e = new Encrypter('YourSecretKey!!!');
89-
90-
$e->decrypt('bar'); // throw the exception now that we tried to use the encrypter
91-
}
92-
93-
9438
protected function getEncrypter()
9539
{
9640
return new Encrypter(str_repeat('a', 32));

0 commit comments

Comments
 (0)