public static function value()
{
self::$contentType = self::$contentType ?: self::getFromServer();
return self::$contentType;
}
/** * @test */ public function shouldSetContentType() { //given $_SERVER['CONTENT_TYPE'] = 'application/json'; //when ContentType::set('text/plain'); //then $this->assertEquals('text/plain', ContentType::value()); }