panel() public method

Get the list of loaded panels
public panel ( string $name ) : DebugPanel | null
$name string The name of the panel you want to get.
return DebugKit\DebugPanel | null The panel or null.
 /**
  * Test loading panels.
  *
  * @return void
  */
 public function testSetupLoadingPanels()
 {
     $bar = new DebugBarFilter($this->events, []);
     $bar->setup();
     $this->assertContains('SqlLog', $bar->loadedPanels());
     $this->assertGreaterThan(1, $this->events->listeners('Controller.shutdown'));
     $this->assertInstanceOf('DebugKit\\Panel\\SqlLogPanel', $bar->panel('SqlLog'));
 }