From 38073e96a27c0c27ed908fd8d7139b34d31a4050 Mon Sep 17 00:00:00 2001 From: Daimona <38216014+Daimona@users.noreply.github.com> Date: Mon, 20 Jan 2020 19:05:04 +0100 Subject: [PATCH 1/4] Update StringFormatterTest.php --- tests/ValueFormatters/StringFormatterTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ValueFormatters/StringFormatterTest.php b/tests/ValueFormatters/StringFormatterTest.php index a227a52..d0554f0 100644 --- a/tests/ValueFormatters/StringFormatterTest.php +++ b/tests/ValueFormatters/StringFormatterTest.php @@ -47,7 +47,7 @@ public function validProvider() { */ public function testInvalidFormat( $value ) { $formatter = new StringFormatter(); - $this->setExpectedException( InvalidArgumentException::class ); + $this->expectException( InvalidArgumentException::class ); $formatter->format( $value ); } From a3431aa2c6ce9a84ebe6263cd6449f2592d643be Mon Sep 17 00:00:00 2001 From: Daimona <38216014+Daimona@users.noreply.github.com> Date: Mon, 20 Jan 2020 19:06:00 +0100 Subject: [PATCH 2/4] Update NullStringNormalizerTest.php --- tests/ValueParsers/Normalizers/NullStringNormalizerTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ValueParsers/Normalizers/NullStringNormalizerTest.php b/tests/ValueParsers/Normalizers/NullStringNormalizerTest.php index c58fd2e..9a2bf05 100644 --- a/tests/ValueParsers/Normalizers/NullStringNormalizerTest.php +++ b/tests/ValueParsers/Normalizers/NullStringNormalizerTest.php @@ -39,7 +39,7 @@ public function stringProvider() { */ public function testNormalizeException( $value ) { $normalizer = new NullStringNormalizer(); - $this->setExpectedException( InvalidArgumentException::class ); + $this->expectException( InvalidArgumentException::class ); $normalizer->normalize( $value ); } From d8a8d01710eeb48854ac9b40c60f88784918200b Mon Sep 17 00:00:00 2001 From: Daimona <38216014+Daimona@users.noreply.github.com> Date: Mon, 20 Jan 2020 19:06:20 +0100 Subject: [PATCH 3/4] Update TrimmingStringNormalizerTest.php --- tests/ValueParsers/Normalizers/TrimmingStringNormalizerTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ValueParsers/Normalizers/TrimmingStringNormalizerTest.php b/tests/ValueParsers/Normalizers/TrimmingStringNormalizerTest.php index dc13a09..b573ea7 100644 --- a/tests/ValueParsers/Normalizers/TrimmingStringNormalizerTest.php +++ b/tests/ValueParsers/Normalizers/TrimmingStringNormalizerTest.php @@ -40,7 +40,7 @@ public function stringProvider() { */ public function testNormalizeException( $value ) { $normalizer = new TrimmingStringNormalizer(); - $this->setExpectedException( 'InvalidArgumentException' ); + $this->expectException( 'InvalidArgumentException' ); $normalizer->normalize( $value ); } From a121b34f05759d09388cc7f808be817f456a7b9f Mon Sep 17 00:00:00 2001 From: Daimona <38216014+Daimona@users.noreply.github.com> Date: Mon, 20 Jan 2020 19:06:51 +0100 Subject: [PATCH 4/4] Update MonolingualTextValueTest.php --- tests/DataValues/MonolingualTextValueTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/DataValues/MonolingualTextValueTest.php b/tests/DataValues/MonolingualTextValueTest.php index 3891208..979df00 100644 --- a/tests/DataValues/MonolingualTextValueTest.php +++ b/tests/DataValues/MonolingualTextValueTest.php @@ -59,7 +59,7 @@ public function testNewFromArray() { * @dataProvider invalidArrayProvider */ public function testNewFromArrayWithInvalidArray( array $array ) { - $this->setExpectedException( IllegalValueException::class ); + $this->expectException( IllegalValueException::class ); MonolingualTextValue::newFromArray( $array ); }