You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
754 B
25 lines
754 B
<?php
|
|
|
|
|
|
namespace TestException;
|
|
|
|
use Exception;
|
|
use Exceptions\InvalidUsernameOrPasswordException;
|
|
use PHPUnit\Framework\TestCase;
|
|
use Exceptions\InvalidLoginOrPasswordException;
|
|
|
|
class InvalidUsernameOrPasswordExceptionTest extends TestCase
|
|
{
|
|
/**
|
|
* @covers InvalidUsernameOrPasswordException::constructor
|
|
* @covers InvalidUsernameOrPasswordException::constructor
|
|
*/
|
|
public function testConstructor()
|
|
{
|
|
$exception = new InvalidUsernameOrPasswordException();
|
|
$this->assertInstanceOf(InvalidUsernameOrPasswordException::class, $exception);
|
|
$this->assertInstanceOf(Exception::class, $exception);
|
|
$this->assertEquals("Nom d'utilisateur ou mot de passe invalide", $exception->getMessage());
|
|
}
|
|
}
|