@@ -68,7 +68,7 @@ protected function setUp()
68
68
*/
69
69
public function testDefaultNotReallyRestrictiveSettings ()
70
70
{
71
- $ checker = $ this ->getChecker ();
71
+ $ this -> assertNotNull ( $ checker = $ this ->getChecker () );
72
72
73
73
$ parameters = $ this ->parser ->parse (
74
74
$ this ->prepareRequest ($ this ->requestParams )
@@ -82,10 +82,10 @@ public function testDefaultNotReallyRestrictiveSettings()
82
82
*/
83
83
public function testAllowedInputPaths ()
84
84
{
85
- $ checker = $ this ->getChecker (
85
+ $ this -> assertNotNull ( $ checker = $ this ->getChecker (
86
86
false ,
87
87
['author ' , 'comments ' , 'comments.author ' , 'and.one.more.path ' ]
88
- );
88
+ )) ;
89
89
90
90
$ parameters = $ this ->parser ->parse (
91
91
$ this ->prepareRequest ($ this ->requestParams )
@@ -123,11 +123,11 @@ public function testNotAllowedInputPaths()
123
123
*/
124
124
public function testAllowedFieldSets ()
125
125
{
126
- $ checker = $ this ->getChecker (
126
+ $ this -> assertNotNull ( $ checker = $ this ->getChecker (
127
127
false ,
128
128
null ,
129
129
['type1 ' => ['fields1 ' , 'fields2 ' , 'fields3 ' ],]
130
- );
130
+ )) ;
131
131
132
132
$ parameters = $ this ->parser ->parse (
133
133
$ this ->prepareRequest ($ this ->requestParams )
@@ -141,11 +141,11 @@ public function testAllowedFieldSets()
141
141
*/
142
142
public function testAllowedAllFieldSets ()
143
143
{
144
- $ checker = $ this ->getChecker (
144
+ $ this -> assertNotNull ( $ checker = $ this ->getChecker (
145
145
false ,
146
146
null ,
147
147
['type1 ' => null ] // all fields are allowed for type1
148
- );
148
+ )) ;
149
149
150
150
$ parameters = $ this ->parser ->parse (
151
151
$ this ->prepareRequest ($ this ->requestParams )
@@ -267,12 +267,12 @@ public function testNotAllowedFieldSets()
267
267
public function testAllowedSearchParams ()
268
268
{
269
269
$ allowedSortParams = ['created ' , 'title ' , 'name.with.dots ' , 'and-others ' ];
270
- $ checker = $ this ->getChecker (
270
+ $ this -> assertNotNull ( $ checker = $ this ->getChecker (
271
271
false ,
272
272
null ,
273
273
null ,
274
274
$ allowedSortParams
275
- );
275
+ )) ;
276
276
277
277
$ parameters = $ this ->parser ->parse (
278
278
$ this ->prepareRequest ($ this ->requestParams )
@@ -314,9 +314,9 @@ public function testNotAllowedSortParams()
314
314
*/
315
315
public function testAllowedUnrecognizedParameters ()
316
316
{
317
- $ checker = $ this ->getChecker (
317
+ $ this -> assertNotNull ( $ checker = $ this ->getChecker (
318
318
true
319
- );
319
+ )) ;
320
320
321
321
$ parameters = $ this ->parser ->parse (
322
322
$ this ->prepareRequest (
0 commit comments