public static function tearDownAfterClass(): void
{ date_default_timezone_set(self::
$timezone);
} public function testItOutputsStylesAndScriptsOnFirstDescribeCall() { $output =
new BufferedOutput();
$dumper =
$this->
createMock(HtmlDumper::
class);
$dumper->
method('dump'
)->
willReturn('[DUMPED]'
);
$descriptor =
new HtmlDescriptor($dumper);
$descriptor->
describe($output,
new Data([[123
]]),
['timestamp' => 1544804268.3668
], 1
);
$this->
assertStringMatchesFormat('<style>%A</style><script>%A</script>%A',
$output->
fetch(), 'styles & scripts are output'
);
$descriptor->
describe($output,
new Data([[123
]]),
['timestamp' => 1544804268.3668
], 1
);
$this->
assertStringNotMatchesFormat('<style>%A</style><script>%A</script>%A',
$output->
fetch(), 'styles & scripts are output only once'
);
} /**
* @dataProvider provideContext
*/