Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 23 |
Posts | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 23 |
index | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 23 |
<?php namespace App\Controllers; | |
use Framework\MVC\Controller; | |
class Posts extends Controller | |
{ | |
public function index() | |
{ | |
$ua = $this->request->getHeader('user-agent'); | |
\var_dump($ua); | |
$ua = $this->request->getHeaders(); | |
\var_dump($ua); | |
$ua = $this->request->getEncodings(); | |
\var_dump($ua); | |
$ua = $this->request->negotiateEncoding(['gz', 'gzip', 'deflate']); | |
\var_dump($ua); | |
$ua = $this->request->getLanguages(); | |
\var_dump($ua); | |
$ua = $this->request->negotiateLanguage(['pt', 'en-US']); | |
\var_dump($ua); | |
$ua = $this->request->getContentType(); | |
\var_dump($ua); | |
$ua = $this->request->getAccepts(); | |
\var_dump($ua); | |
$ua = $this->request->negotiateCharset(['utf-8', 'utf-16']); | |
\var_dump($ua); | |
$ua = $this->request->getCSRFToken(); | |
\var_dump($ua); | |
$this->response->setCSRFToken(\rand(0, 1000)); | |
} | |
} |