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