Skip to content
This repository was archived by the owner on Mar 14, 2024. It is now read-only.

Commit 5dee83c

Browse files
committed
Remove deprecated PHPUnit attributes and annotations
1 parent e242e89 commit 5dee83c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<logging>
2626
<log type="tap" target="build/report.tap"/>
2727
<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"/>
2929
<log type="coverage-text" target="build/coverage.txt"/>
3030
<log type="coverage-clover" target="build/logs/clover.xml"/>
3131
</logging>

tests/CredentialTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use Orchestra\Testbench\TestCase;
77
use Illuminate\Encryption\Encrypter;
88
use BeyondCode\Credentials\Credentials;
9+
use Illuminate\Contracts\Encryption\DecryptException;
910
use BeyondCode\Credentials\CredentialsServiceProvider;
1011

1112
class CredentialTest extends TestCase
@@ -88,10 +89,11 @@ public function it_returns_decrypted_data()
8889

8990
/**
9091
* @test
91-
* @expectedException Illuminate\Contracts\Encryption\DecryptException
9292
*/
9393
public function it_can_not_decrypt_with_the_wrong_key()
9494
{
95+
$this->expectException(DecryptException::class);
96+
9597
$masterKey = Str::random(16);
9698

9799
// create fake credentials

0 commit comments

Comments
 (0)