return [ [true
],
[false
],
];
} /**
* @dataProvider defaultPanelProvider
*/
public function testDefaultPanel(string
$expectedPanel, Profile
$profile) { $this->
assertDefaultPanel($expectedPanel,
$profile);
} public static function defaultPanelProvider(): \Generator
{ // Test default behavior
$profile =
new Profile('xxxxxx'
);
$profile->
addCollector($requestDataCollector =
new RequestDataCollector());
yield [$requestDataCollector->
getName(),
$profile];
// Test exception
$profile =
new Profile('xxxxxx'
);