Skip to content

Commit 2fd60fa

Browse files
committed
use type safe asserts
1 parent 26413e6 commit 2fd60fa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

testsDependency/BaconQRCodeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function testDependency(): void
2222
$tfa = new TwoFactorAuth('Test&Issuer', 6, 30, Algorithm::Sha1, $qr);
2323

2424
$data = $this->DecodeDataUri($tfa->getQRCodeImageAsDataUri('Test&Label', 'VMR466AB62ZBOKHE'));
25-
$this->assertEquals('image/svg+xml', $data['mimetype']);
25+
$this->assertSame('image/svg+xml', $data['mimetype']);
2626
}
2727

2828
public function testBadTextColour(): void

testsDependency/EndroidQRCodeTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ public function testDependency(): void
1919
$qr = new EndroidQrCodeProvider();
2020
$tfa = new TwoFactorAuth('Test&Issuer', 6, 30, Algorithm::Sha1, $qr);
2121
$data = $this->DecodeDataUri($tfa->getQRCodeImageAsDataUri('Test&Label', 'VMR466AB62ZBOKHE'));
22-
$this->assertEquals('image/png', $data['mimetype']);
23-
$this->assertEquals('base64', $data['encoding']);
22+
$this->assertSame('image/png', $data['mimetype']);
23+
$this->assertSame('base64', $data['encoding']);
2424
$this->assertNotEmpty($data['data']);
2525
}
2626
}

0 commit comments

Comments
 (0)