public function testCollectWhenSecurityIsDisabled() { $collector = new SecurityDataCollector(); $collector->collect($this->getRequest(), $this->getResponse()); $this->assertSame('security', $collector->getName()); $this->assertFalse($collector->isEnabled()); $this->assertFalse($collector->isAuthenticated()); $this->assertNull($collector->getTokenClass()); $this->assertCount(0, $collector->getRoles()); $this->assertEmpty($collector->getUser()); }