Skip to content

Commit

Permalink
test: Add test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
DannyvdSluijs committed May 26, 2024
1 parent 9e3c631 commit b7475c0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/Uri/Retrievers/FileGetContentsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,15 @@ public function testContentType()
$this->assertTrue($fetchContentType->invoke($res, array('Content-Type: application/json')));
$this->assertFalse($fetchContentType->invoke($res, array('X-Some-Header: whateverValue')));
}

public function testCanHandleHttp301PermanentRedirect()
{
$res = new FileGetContents();

$res->retrieve('http://asyncapi.com/definitions/2.0.0/asyncapi.json');

$this->assertSame('application/schema+json', $res->getContentType());
}
}
}

Expand Down

0 comments on commit b7475c0

Please sign in to comment.