File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -116,6 +116,7 @@ public function testValidateTypeNameWording($nameWording)
116
116
$ m ->setAccessible (true );
117
117
118
118
$ m ->invoke ($ t , $ nameWording );
119
+ $ this ->expectNotToPerformAssertions ();
119
120
}
120
121
121
122
public function testInvalidateTypeNameWording ()
Original file line number Diff line number Diff line change @@ -10,7 +10,9 @@ class CurlTest extends TestCase
10
10
public function testRetrieveFile ()
11
11
{
12
12
$ c = new Curl ();
13
- $ c ->retrieve (realpath (__DIR__ . '/../../fixtures/foobar.json ' ));
13
+ $ result = $ c ->retrieve (realpath (__DIR__ . '/../../fixtures/foobar.json ' ));
14
+
15
+ self ::assertStringEqualsFileCanonicalizing (realpath (__DIR__ . '/../../fixtures/foobar.json ' ), $ result );
14
16
}
15
17
16
18
public function testRetrieveNonexistantFile ()
@@ -26,7 +28,9 @@ public function testRetrieveNonexistantFile()
26
28
public function testNoContentType ()
27
29
{
28
30
$ c = new Curl ();
29
- $ c ->retrieve (realpath (__DIR__ . '/../../fixtures ' ) . '/foobar-noheader.json ' );
31
+ $ result = $ c ->retrieve (realpath (__DIR__ . '/../../fixtures ' ) . '/foobar-noheader.json ' );
32
+
33
+ self ::assertStringEqualsFileCanonicalizing (realpath (__DIR__ . '/../../fixtures/foobar.json ' ), $ result );
30
34
}
31
35
}
32
36
}
Original file line number Diff line number Diff line change @@ -358,7 +358,9 @@ public function testInvalidContentTypeEndpointsAdded()
358
358
$ retriever = new UriRetriever ();
359
359
$ retriever ->addInvalidContentTypeEndpoint ('http://example.com ' );
360
360
361
- $ retriever ->confirmMediaType ($ mock , 'http://example.com ' );
361
+ $ result = $ retriever ->confirmMediaType ($ mock , 'http://example.com ' );
362
+
363
+ self ::assertTrue ($ result );
362
364
}
363
365
364
366
public function testSchemaCache ()
You can’t perform that action at this time.
0 commit comments