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

Commit

Permalink
Merge pull request #19 from chapeupreto/prepare-to-use-phpunit9
Browse files Browse the repository at this point in the history
Remove deprecated PHPUnit attributes and annotations
  • Loading branch information
mpociot authored May 29, 2020
2 parents efdb8b8 + 5dee83c commit 0ce7c2e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<logging>
<log type="tap" target="build/report.tap"/>
<log type="junit" target="build/report.junit.xml"/>
<log type="coverage-html" target="build/coverage" charset="UTF-8" yui="true" highlight="true"/>
<log type="coverage-html" target="build/coverage"/>
<log type="coverage-text" target="build/coverage.txt"/>
<log type="coverage-clover" target="build/logs/clover.xml"/>
</logging>
Expand Down
4 changes: 3 additions & 1 deletion tests/CredentialTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use Orchestra\Testbench\TestCase;
use Illuminate\Encryption\Encrypter;
use BeyondCode\Credentials\Credentials;
use Illuminate\Contracts\Encryption\DecryptException;
use BeyondCode\Credentials\CredentialsServiceProvider;

class CredentialTest extends TestCase
Expand Down Expand Up @@ -88,10 +89,11 @@ public function it_returns_decrypted_data()

/**
* @test
* @expectedException Illuminate\Contracts\Encryption\DecryptException
*/
public function it_can_not_decrypt_with_the_wrong_key()
{
$this->expectException(DecryptException::class);

$masterKey = Str::random(16);

// create fake credentials
Expand Down

0 comments on commit 0ce7c2e

Please sign in to comment.