@@ -60,7 +60,7 @@ public function testWhenEqualIsFalse(): void
6060 public function testInvalidProperty (): void
6161 {
6262 $ this ->expectException (InvalidProperty::class);
63- $ this ->expectErrorMessage ('Invalid property <other> for class <TinyBlocks\Vo\Mock\MultipleValueMock>. ' );
63+ $ this ->expectExceptionMessage ('Invalid property <other> for class <TinyBlocks\Vo\Mock\MultipleValueMock>. ' );
6464
6565 $ multiple = new MultipleValueMock (
6666 id: 123 ,
@@ -69,13 +69,13 @@ public function testInvalidProperty(): void
6969 new TransactionMock (id: 200 , amount: new AmountMock (value: 11.01 , currency: 'BRL ' ))
7070 ]
7171 );
72- $ multiple ->__get ('other ' );
72+ $ multiple ->__get (key: 'other ' );
7373 }
7474
7575 public function testPropertyCannotBeChanged (): void
7676 {
7777 $ this ->expectException (PropertyCannotBeChanged::class);
78- $ this ->expectErrorMessage (
78+ $ this ->expectExceptionMessage (
7979 'Property <other> cannot be changed in class <TinyBlocks\Vo\Mock\MultipleValueMock>. '
8080 );
8181
@@ -86,13 +86,13 @@ public function testPropertyCannotBeChanged(): void
8686 new TransactionMock (id: 200 , amount: new AmountMock (value: 11.01 , currency: 'BRL ' ))
8787 ]
8888 );
89- $ multiple ->__set ('other ' , new StdClass ());
89+ $ multiple ->__set (key: 'other ' , value: new StdClass ());
9090 }
9191
9292 public function testPropertyCannotBeDeactivated (): void
9393 {
9494 $ this ->expectException (PropertyCannotBeDeactivated::class);
95- $ this ->expectErrorMessage (
95+ $ this ->expectExceptionMessage (
9696 'Property <other> cannot be deactivated in class <TinyBlocks\Vo\Mock\MultipleValueMock>. '
9797 );
9898
@@ -103,6 +103,6 @@ public function testPropertyCannotBeDeactivated(): void
103103 new TransactionMock (id: 200 , amount: new AmountMock (value: 11.01 , currency: 'BRL ' ))
104104 ]
105105 );
106- $ multiple ->__unset ('other ' );
106+ $ multiple ->__unset (key: 'other ' );
107107 }
108108}
0 commit comments