1
0
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:
Steve Grunwell 2019-09-17 09:29:46 -04:00
parent 4f927ffe8a
commit ebab5aaa48

View File

@ -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);