/** * Test that ext is not set with confusing android accepts headers. * * @return void */ public function testInitializeAmbiguousAndroidAccepts() { Router::reload(); Router::$initialized = true; $this->request->env('HTTP_ACCEPT', 'application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5'); $this->RequestHandler->ext = null; $this->RequestHandler->startup(new Event('Controller.startup', $this->Controller)); $this->assertNull($this->RequestHandler->ext); }