12
12
use Art4 \JsonApiClient \Factory ;
13
13
use Art4 \JsonApiClient \Manager ;
14
14
use Art4 \JsonApiClient \Tests \Fixtures \Factory as FixtureFactory ;
15
+ use PHPUnit \Framework \MockObject \MockObject ;
15
16
16
17
/**
17
18
* Helper Trait
18
19
*/
19
20
trait HelperTrait
20
21
{
22
+ /** @var Manager&MockObject */
21
23
protected Manager $ manager ;
22
24
25
+ /** @var Factory&MockObject */
23
26
protected Factory $ factory ;
24
27
28
+ /** @var Accessable&MockObject */
25
29
protected Accessable $ parent ;
26
30
27
31
/**
28
32
* Json Values Provider
29
33
*
30
- * @see http://json.org/
34
+ * @return array<array<mixed>>
31
35
*/
32
36
public static function jsonValuesProvider (): array
33
37
{
@@ -47,7 +51,7 @@ public static function jsonValuesProvider(): array
47
51
/**
48
52
* Json Values Provider but without the object
49
53
*
50
- * @see http://json.org/
54
+ * @return array<array<mixed>>
51
55
*/
52
56
public static function jsonValuesProviderWithoutObject (): array
53
57
{
@@ -61,7 +65,7 @@ public static function jsonValuesProviderWithoutObject(): array
61
65
/**
62
66
* Json Values Provider but without the array
63
67
*
64
- * @see http://json.org/
68
+ * @return array<array<mixed>>
65
69
*/
66
70
public static function jsonValuesProviderWithoutArray (): array
67
71
{
@@ -75,7 +79,7 @@ public static function jsonValuesProviderWithoutArray(): array
75
79
/**
76
80
* Json Values Provider but without the string
77
81
*
78
- * @see http://json.org/
82
+ * @return array<array<mixed>>
79
83
*/
80
84
public static function jsonValuesProviderWithoutString (): array
81
85
{
@@ -89,7 +93,7 @@ public static function jsonValuesProviderWithoutString(): array
89
93
/**
90
94
* Json Values Provider but without the object and string
91
95
*
92
- * @see http://json.org/
96
+ * @return array<array<mixed>>
93
97
*/
94
98
public static function jsonValuesProviderWithoutObjectAndString (): array
95
99
{
@@ -104,7 +108,7 @@ public static function jsonValuesProviderWithoutObjectAndString(): array
104
108
/**
105
109
* Json Values as string Provider
106
110
*
107
- * @see http://json.org/
111
+ * @return array<array<string>>
108
112
*/
109
113
public static function jsonValuesAsStringProvider (): array
110
114
{
@@ -124,7 +128,7 @@ public static function jsonValuesAsStringProvider(): array
124
128
/**
125
129
* Json Values as string Provider but without the object
126
130
*
127
- * @see http://json.org/
131
+ * @return array<array<string>>
128
132
*/
129
133
public static function jsonValuesAsStringProviderWithoutObject (): array
130
134
{
@@ -145,7 +149,7 @@ public function buildManagerMock()
145
149
$ factory ->testcase = $ this ;
146
150
147
151
// Mock Manager
148
- $ manager = $ this ->createMock (' Art4\JsonApiClient\Utils\FactoryManagerInterface ' );
152
+ $ manager = $ this ->createMock (Manager::class );
149
153
150
154
$ manager ->expects ($ this ->any ())
151
155
->method ('getFactory ' )
0 commit comments