public function testCoercesListsOfValues()
{
$listOfBool = Type::listOf(Type::boolean());
$undefined = Utils::undefined();
$this->runTestCase($listOfBool, 'true', [true]);
$this->runTestCase($listOfBool, '123', $undefined);
$this->runTestCase($listOfBool, 'null', null);
$this->runTestCase($listOfBool, '[true, false]', [true, false]);
$this->runTestCase($listOfBool, '[true, 123]', $undefined);
$this->runTestCase($listOfBool, '[true, null]', [true, null]);
$this->runTestCase($listOfBool, '{ true: true }', $undefined);
}