File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed
Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 1111
1212namespace Symfony \Component \Messenger \Bridge \Beanstalkd \Tests \Transport ;
1313
14+ use PHPUnit \Framework \Attributes \DataProvider ;
1415use PHPUnit \Framework \TestCase ;
1516use Symfony \Component \Messenger \Bridge \Beanstalkd \Tests \Fixtures \DummyMessage ;
1617use Symfony \Component \Messenger \Bridge \Beanstalkd \Transport \BeanstalkdPriorityStamp ;
@@ -90,9 +91,7 @@ public function testItRejectTheMessageIfThereIsAMessageDecodingFailedException()
9091 $ receiver ->get ();
9192 }
9293
93- /**
94- * @dataProvider provideRejectCases
95- */
94+ #[DataProvider('provideRejectCases ' )]
9695 public function testReject (array $ stamps , ?int $ priority , bool $ forceDelete )
9796 {
9897 $ serializer = $ this ->createSerializer ();
Original file line number Diff line number Diff line change 2727use Pheanstalk \Values \TubeList ;
2828use Pheanstalk \Values \TubeName ;
2929use Pheanstalk \Values \TubeStats ;
30+ use PHPUnit \Framework \Attributes \TestWith ;
3031use PHPUnit \Framework \TestCase ;
3132use Symfony \Component \Messenger \Bridge \Beanstalkd \Transport \Connection ;
3233use Symfony \Component \Messenger \Exception \InvalidArgumentException as MessengerInvalidArgumentException ;
@@ -266,11 +267,9 @@ public function testAckWhenABeanstalkdExceptionOccurs()
266267 $ connection ->ack ($ id );
267268 }
268269
269- /**
270- * @testWith [false, false]
271- * [false, true]
272- * [true, true]
273- */
270+ #[TestWith([false , false ])]
271+ #[TestWith([false , true ])]
272+ #[TestWith([true , true ])]
274273 public function testReject (bool $ buryOnReject , bool $ forceDelete )
275274 {
276275 $ id = '123456 ' ;
You can’t perform that action at this time.
0 commit comments