This repository has been archived by the owner on May 13, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create separate fromString methods to prevent method call to CacheCon…
…trol::fromString
- Loading branch information
Showing
7 changed files
with
60 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
|
||
namespace MichehTest\Cache\Header; | ||
|
||
use Micheh\Cache\Header\RequestCacheControl; | ||
|
||
/** | ||
* @author Michel Hunziker <[email protected]> | ||
* @copyright Copyright (c) 2015, Michel Hunziker <[email protected]> | ||
|
@@ -14,6 +16,15 @@ class RequestCacheControlTest extends CacheControlTestCase | |
*/ | ||
protected $controlClass = 'Micheh\Cache\Header\RequestCacheControl'; | ||
|
||
/** | ||
* @covers Micheh\Cache\Header\RequestCacheControl::fromString | ||
*/ | ||
public function testFromString() | ||
{ | ||
$control = RequestCacheControl::fromString('max-age=100'); | ||
$this->assertInstanceOf($this->controlClass, $control); | ||
} | ||
|
||
/** | ||
* @covers Micheh\Cache\Header\RequestCacheControl::withMaxStale | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters