Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > it.comp.www.php > #21696
| From | Alessandro Pellizzari <shuriken@amiran.it> |
|---|---|
| Newsgroups | it.comp.www.php |
| Subject | Re: Class 'Symfony\Bundle\FrameworkBundle\Test\WebTestCase' not found |
| Date | 2017-09-06 10:15 +0100 |
| Message-ID | <f19sl1F2gp6U1@mid.individual.net> (permalink) |
| References | (1 earlier) <ooj797$19ti$1@gioia.aioe.org> <3154f934-9728-4555-9a06-b286bc989c61@googlegroups.com> <oom13j$1u0o$1@gioia.aioe.org> <f183diFkqg3U1@mid.individual.net> <oommsi$19ev$1@gioia.aioe.org> |
On 05/09/2017 18:28, Simonex wrote: > Il 05/09/2017 18:58, Alessandro Pellizzari ha scritto: >> >> Per testare JS l'unico modo è lanciare un browser headless e fornirgli >> comandi. > In genere cosa si usa? Phantomjs? Di solito lascio quel lavoro ai frontender, se posso, ma sì, so che usavano PhantomJS, almeno per un po'. Poi ci eravamo messi a scrivere un wrapper attorno a CasperJS e l'abbiamo messo open source: https://github.com/DiceHoldingsInc/casperjs-php-driver (non ci ho lavorato, quindi non ti so dire molto) > Quindi anche tu niente FW? > Quindi vai di *composer require...* ? Ho usato prima Silex (ma senza i Symfony components) e poi Slim. Sì, tendo a partire da un microframework e costruire sopra. Di recente sto pensando di eliminare anche i DIC (tipo Pimple) e usare semplicemente un router e le classi PSR-7. :) >> Io normalmente usavo Guzzle per scaricare la pagina, e poi DOMQuery >> per verificare il contenuto, ma in realtà ho usato poco anche questo. >> Il grosso del mio lavoro negli ultimi 2 anni è stato lato API, quindi >> testavo direttamente il JSON e i response code. > > Cioè? > Perdonami, sono ancora agli inizi :) La tendenza degli ultimi anni è di separare completamente la business logic dalla UI, e farle comunicare tramite messaggi. Il modo più diffuso e semplice è di usare JSON come protocollo messaggi. Così puoi fare il "lato server" nel linguaggio che vuoi e servi semplicemente dati (gestendo l'autenticazione, la formattazione, il filtraggio, ecc.). E la UI la fai anche lei nel linguaggio che vuoi, anche se poi il frontend vero e proprio devi per forza farlo in JS (o Typescript o qualche altra cosa che transpila in javascript). Bye.
Back to it.comp.www.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Class 'Symfony\Bundle\FrameworkBundle\Test\WebTestCase' not found Simonex <simo@sumo.it> - 2017-08-18 14:30 +0200
Re: Class 'Symfony\Bundle\FrameworkBundle\Test\WebTestCase' not found Simonex <simo@sumo.it> - 2017-09-04 11:44 +0200
Re: Class 'Symfony\Bundle\FrameworkBundle\Test\WebTestCase' not found fmassei@gmail.com - 2017-09-04 11:24 -0700
Re: Class 'Symfony\Bundle\FrameworkBundle\Test\WebTestCase' not found Simonex <simo@sumo.it> - 2017-09-05 13:17 +0200
Re: Class 'Symfony\Bundle\FrameworkBundle\Test\WebTestCase' not found fmassei@gmail.com - 2017-09-05 05:26 -0700
Re: Class 'Symfony\Bundle\FrameworkBundle\Test\WebTestCase' not found Simonex <simo@sumo.it> - 2017-09-05 15:04 +0200
Re: Class 'Symfony\Bundle\FrameworkBundle\Test\WebTestCase' not found fmassei@gmail.com - 2017-09-05 06:25 -0700
Re: Class 'Symfony\Bundle\FrameworkBundle\Test\WebTestCase' not found Alessandro Pellizzari <shuriken@amiran.it> - 2017-09-05 17:58 +0100
Re: Class 'Symfony\Bundle\FrameworkBundle\Test\WebTestCase' not found Simonex <simo@sumo.it> - 2017-09-05 19:28 +0200
Re: Class 'Symfony\Bundle\FrameworkBundle\Test\WebTestCase' not found fmassei@gmail.com - 2017-09-05 17:14 -0700
Re: Class 'Symfony\Bundle\FrameworkBundle\Test\WebTestCase' not found Alessandro Pellizzari <shuriken@amiran.it> - 2017-09-06 10:15 +0100
Re: Class 'Symfony\Bundle\FrameworkBundle\Test\WebTestCase' not found Simonex <simo@sumo.it> - 2017-09-06 19:13 +0200
Re: Class 'Symfony\Bundle\FrameworkBundle\Test\WebTestCase' not found Alessandro Pellizzari <shuriken@amiran.it> - 2017-09-07 10:12 +0100
Re: Class 'Symfony\Bundle\FrameworkBundle\Test\WebTestCase' not found Simonex <simo@sumo.it> - 2017-09-07 16:49 +0200
Re: Class 'Symfony\Bundle\FrameworkBundle\Test\WebTestCase' not found Alessandro Pellizzari <shuriken@amiran.it> - 2017-09-07 16:38 +0100
csiph-web