Skip to content
Snippets Groups Projects
Commit ce702cea authored by Nadir Sunar's avatar Nadir Sunar Committed by Anja Leichsenring
Browse files

[TASK] replaced @expectedException in ext:rsaauth

Resolves: #76496
Releases: master
Change-Id: I2a4213d7a7572e094659a8045b13f2f2a42710ca
Reviewed-on: https://review.typo3.org/48484


Reviewed-by: default avatarFrank Naegler <frank.naegler@typo3.org>
Tested-by: default avatarFrank Naegler <frank.naegler@typo3.org>
Reviewed-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
parent 06da9db8
Branches
Tags
No related merge requests found
......@@ -69,10 +69,11 @@ class KeypairTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
/**
* @test
*
* @expectedException \BadMethodCallException
*/
public function setExponentCalledTwoTimesThrowsException()
{
$this->expectException(\BadMethodCallException::class);
$this->expectExceptionCode(1296062830);
$this->subject->setExponent(123456);
$this->subject->setExponent(123456);
}
......@@ -104,10 +105,11 @@ class KeypairTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
/**
* @test
*
* @expectedException \BadMethodCallException
*/
public function setPrivateKeyCalledTwoTimesThrowsException()
{
$this->expectException(\BadMethodCallException::class);
$this->expectExceptionCode(1296062831);
$this->subject->setPrivateKey('foo');
$this->subject->setPrivateKey('foo');
}
......@@ -139,10 +141,11 @@ class KeypairTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
/**
* @test
*
* @expectedException \BadMethodCallException
*/
public function setPublicKeyCalledTwoTimesThrowsException()
{
$this->expectException(\BadMethodCallException::class);
$this->expectExceptionCode(1296062832);
$this->subject->setPublicKey(123456);
$this->subject->setPublicKey(123456);
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment