public function testExample()
 {
     $nomi = ['Lorenzo', 'Davide', 'Thomas', 'Daniele', 'Simone'];
     $service = new RandomNameChooserService($nomi);
     $foundName = $service->choose();
     $this->assertContains($foundName, $nomi);
 }
 public function indexAction()
 {
     $nomi = ['Lorenzo', 'Davide', 'Thomas', 'Daniele', 'Simone'];
     $service = new RandomNameChooserService($nomi);
     $foundName = $service->choose();
     $viewModel = new ViewModel();
     $viewModel->setVariable('nomeCasuale', $foundName);
     return $viewModel;
 }