Ouzo\ContentType::set PHP Method

set() public static method

public static set ( $contentType )
    public static function set($contentType)
    {
        self::$contentType = $contentType;
    }

Usage Example

Exemplo n.º 1
0
 /**
  * @test
  */
 public function shouldSetContentType()
 {
     //given
     $_SERVER['CONTENT_TYPE'] = 'application/json';
     //when
     ContentType::set('text/plain');
     //then
     $this->assertEquals('text/plain', ContentType::value());
 }
All Usage Examples Of Ouzo\ContentType::set