mirror of
https://github.com/fzaninotto/Faker.git
synced 2025-04-21 16:01:56 +02:00
Keep InvalidArgumentException as a string, rather than relying on InvalidArgumentException::class, which only works in PHP 5.5+
This commit is contained in:
parent
4f927ffe8a
commit
ebab5aaa48
@ -42,7 +42,7 @@ class TextTest extends TestCase
|
||||
|
||||
public function testTextMaxIndex()
|
||||
{
|
||||
$this->setExpectedException(\InvalidArgumentException::class);
|
||||
$this->setExpectedException('InvalidArgumentException');
|
||||
|
||||
$this->generator->realText(200, 11);
|
||||
|
||||
@ -51,7 +51,7 @@ class TextTest extends TestCase
|
||||
|
||||
public function testTextMinIndex()
|
||||
{
|
||||
$this->setExpectedException(\InvalidArgumentException::class);
|
||||
$this->setExpectedException('InvalidArgumentException');
|
||||
|
||||
$this->generator->realText(200, 0);
|
||||
|
||||
@ -60,7 +60,7 @@ class TextTest extends TestCase
|
||||
|
||||
public function testTextMinLength()
|
||||
{
|
||||
$this->setExpectedException(\InvalidArgumentException::class);
|
||||
$this->setExpectedException('InvalidArgumentException');
|
||||
|
||||
$this->generator->realText(9);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user