File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change 11<?php
22
3+ namespace Tmdb \Tests \Common ;
4+
5+ use PHPUnit \Framework \Attributes \Test ;
36use PHPUnit \Framework \TestCase ;
47use Tmdb \Common \ObjectHydrator ;
58use Tmdb \Model \AbstractModel ;
1720 */
1821class ObjectHydratorTest extends TestCase
1922{
20- /**
21- * @test
22- */
23+ #[Test]
2324 public function canHydrateObject ()
2425 {
2526 $ objectHydrator = new ObjectHydrator ();
@@ -32,15 +33,12 @@ public function canHydrateObject()
3233 ]
3334 );
3435
35- $ this ->assertInstanceOf (' TestModel ' , $ subject );
36+ $ this ->assertInstanceOf (TestModel::class , $ subject );
3637 $ this ->assertEquals (15 , $ subject ->getId ());
3738 $ this ->assertEquals ('Michael ' , $ subject ->getName ());
3839 }
3940
40- /**
41- *
42- * @test
43- */
41+ #[Test]
4442 public function callingNonExistingMethodThrowsException ()
4543 {
4644 $ this ->expectException (\Tmdb \Exception \RuntimeException::class);
You can’t perform that action at this time.
0 commit comments