8
8
use BladeComponents \Undraw \Api \IllustrationsResponse ;
9
9
use BladeComponents \Undraw \Tests \TestCase ;
10
10
use GuzzleHttp \Psr7 \Response ;
11
+ use PHPUnit \Framework \Attributes \Test ;
11
12
12
13
final class IllustrationsResponseTest extends TestCase
13
14
{
14
- /** @test */
15
+ #[Test]
15
16
public function it_should_return_the_next_page_correctly (): void
16
17
{
17
18
// Arrange
@@ -26,7 +27,7 @@ public function it_should_return_the_next_page_correctly(): void
26
27
$ this ->assertSame ($ expectedNextPage , $ nextPage );
27
28
}
28
29
29
- /** @test */
30
+ #[Test]
30
31
public function it_should_return_zero_for_next_page_when_the_status_code_is_not_200 (): void
31
32
{
32
33
// Arrange
@@ -46,7 +47,7 @@ public function it_should_return_zero_for_next_page_when_the_status_code_is_not_
46
47
$ this ->assertSame ($ expectedNextPage , $ nextPage );
47
48
}
48
49
49
- /** @test */
50
+ #[Test]
50
51
public function it_should_return_true_when_there_are_more_pages (): void
51
52
{
52
53
// Arrange
@@ -60,7 +61,7 @@ public function it_should_return_true_when_there_are_more_pages(): void
60
61
$ this ->assertTrue ($ hasMore );
61
62
}
62
63
63
- /** @test */
64
+ #[Test]
64
65
public function it_should_return_false_for_has_more_when_the_status_code_is_not_200 (): void
65
66
{
66
67
// Arrange
@@ -79,7 +80,7 @@ public function it_should_return_false_for_has_more_when_the_status_code_is_not_
79
80
$ this ->assertFalse ($ hasMore );
80
81
}
81
82
82
- /** @test */
83
+ #[Test]
83
84
public function it_returns_an_empty_array_when_the_status_code_is_not_200 (): void
84
85
{
85
86
// Arrange
@@ -98,7 +99,7 @@ public function it_returns_an_empty_array_when_the_status_code_is_not_200(): voi
98
99
$ this ->assertEmpty ($ illustrations );
99
100
}
100
101
101
- /** @test */
102
+ #[Test]
102
103
public function it_returns_an_empty_array_when_there_are_no_illustrations (): void
103
104
{
104
105
// Arrange
@@ -112,7 +113,7 @@ public function it_returns_an_empty_array_when_there_are_no_illustrations(): voi
112
113
$ this ->assertEmpty ($ illustrations );
113
114
}
114
115
115
- /** @test */
116
+ #[Test]
116
117
public function it_returns_a_list_of_illustrations (): void
117
118
{
118
119
// Arrange
0 commit comments