This repository was archived by the owner on Mar 14, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 25
25
<logging >
26
26
<log type =" tap" target =" build/report.tap" />
27
27
<log type =" junit" target =" build/report.junit.xml" />
28
- <log type =" coverage-html" target =" build/coverage" charset = " UTF-8 " yui = " true " highlight = " true " />
28
+ <log type =" coverage-html" target =" build/coverage" />
29
29
<log type =" coverage-text" target =" build/coverage.txt" />
30
30
<log type =" coverage-clover" target =" build/logs/clover.xml" />
31
31
</logging >
Original file line number Diff line number Diff line change 6
6
use Orchestra \Testbench \TestCase ;
7
7
use Illuminate \Encryption \Encrypter ;
8
8
use BeyondCode \Credentials \Credentials ;
9
+ use Illuminate \Contracts \Encryption \DecryptException ;
9
10
use BeyondCode \Credentials \CredentialsServiceProvider ;
10
11
11
12
class CredentialTest extends TestCase
@@ -88,10 +89,11 @@ public function it_returns_decrypted_data()
88
89
89
90
/**
90
91
* @test
91
- * @expectedException Illuminate\Contracts\Encryption\DecryptException
92
92
*/
93
93
public function it_can_not_decrypt_with_the_wrong_key ()
94
94
{
95
+ $ this ->expectException (DecryptException::class);
96
+
95
97
$ masterKey = Str::random (16 );
96
98
97
99
// create fake credentials
You can’t perform that action at this time.
0 commit comments