$ret =
$tester->
execute(['class' => 'FormType'
],
['decorated' => false
]);
$this->
assertEquals(0,
$ret, 'Returns 0 in case of success'
);
$this->
assertStringContainsString('Symfony\Component\Form\Extension\Core\Type\FormType (Block prefix: "form")',
$tester->
getDisplay());
} public function testDebugDateTimeType() { $tester =
$this->
createCommandTester();
$tester->
execute(['class' => 'DateTime'
],
['decorated' => false, 'interactive' => false
]);
$tester->
assertCommandIsSuccessful('Returns 0 in case of success'
);
$this->
assertStringContainsString('Symfony\Component\Form\Extension\Core\Type\DateTimeType (Block prefix: "datetime")',
$tester->
getDisplay());
} public function testDebugFormTypeOption() { $tester =
$this->
createCommandTester();
$ret =
$tester->
execute(['class' => 'FormType', 'option' => 'method'
],
['decorated' => false
]);
$this->
assertEquals(0,
$ret, 'Returns 0 in case of success'
);
$this->
assertStringContainsString('Symfony\Component\Form\Extension\Core\Type\FormType (method)',
$tester->
getDisplay());
}