Tests that the Twig engine handles PHP data correctly.
function testTwigVariableDataTypes() {
config('system.theme')
->set('default', 'test_theme')
->save();
$this
->drupalGet('twig-theme-test/php-variables');
foreach (_test_theme_twig_php_values() as $type => $value) {
$this
->assertRaw('<li>' . $type . ': ' . $value['expected'] . '</li>');
}
}