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.
20 lines
611 B
20 lines
611 B
<?php
|
|
|
|
|
|
namespace TestException;
|
|
|
|
use Exception;
|
|
use Exceptions\InvalidUsernameOrPasswordException;
|
|
use PHPUnit\Framework\TestCase;
|
|
use Exceptions\InvalidLoginOrPasswordException;
|
|
|
|
class InvalidUsernameOrPasswordExceptionTest extends TestCase
|
|
{
|
|
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());
|
|
}
|
|
} |