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)
116116 $ m ->setAccessible (true );
117117
118118 $ m ->invoke ($ t , $ nameWording );
119+ $ this ->expectNotToPerformAssertions ();
119120 }
120121
121122 public function testInvalidateTypeNameWording ()
Original file line number Diff line number Diff line change @@ -10,7 +10,9 @@ class CurlTest extends TestCase
1010 public function testRetrieveFile ()
1111 {
1212 $ 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 );
1416 }
1517
1618 public function testRetrieveNonexistantFile ()
@@ -26,7 +28,9 @@ public function testRetrieveNonexistantFile()
2628 public function testNoContentType ()
2729 {
2830 $ 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 );
3034 }
3135 }
3236}
Original file line number Diff line number Diff line change @@ -358,7 +358,9 @@ public function testInvalidContentTypeEndpointsAdded()
358358 $ retriever = new UriRetriever ();
359359 $ retriever ->addInvalidContentTypeEndpoint ('http://example.com ' );
360360
361- $ retriever ->confirmMediaType ($ mock , 'http://example.com ' );
361+ $ result = $ retriever ->confirmMediaType ($ mock , 'http://example.com ' );
362+
363+ self ::assertTrue ($ result );
362364 }
363365
364366 public function testSchemaCache ()
You can’t perform that action at this time.
0 commit comments