public function testCubexHeaders() { if (!defined('PHP_START')) { define('PHP_START', microtime(true)); } $response = new Response(); $response->setCubexHeaders(); $this->assertContains('X-Execution-Time', (string) $response); $response = new Response(); $response->disableCubexHeaders(); $response->setCubexHeaders(); $this->assertNotContains('X-Execution-Time', (string) $response); $response = new Response(); $response->disableCubexHeaders(); $response->enableCubexHeaders(); $response->setCubexHeaders(); $this->assertContains('X-Execution-Time', (string) $response); }