Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Testes Unitários com PHP
Search
Gustavo Fraga
October 22, 2019
Programming
1
19
Testes Unitários com PHP
Gustavo Fraga
October 22, 2019
Tweet
Share
More Decks by Gustavo Fraga
See All by Gustavo Fraga
Integração Contínua com GitHub, TravisCI e Heroku
lafraga93
0
58
Boas Práticas com PHP V2
lafraga93
0
120
Boas Práticas com PHP
lafraga93
0
22
Other Decks in Programming
See All in Programming
Goのmultiple errorsについて (2024年4月版)
syumai
2
490
1BRC--Nerd Sniping the Java Community
gunnarmorling
0
340
Goのエラースタックトレースの歴史と今後
sonatard
7
1.1k
Ruby Function Composition
bkuhlmann
1
330
AWS Application Composerで始める、 サーバーレスなデータ基盤構築 / 20240406-jawsug-hokuriku-shinkansen
kasacchiful
1
260
try!Swift Tokyo 2024 参加報告 LT
akidon0000
1
220
Fragment Composition of GraphQL
quramy
2
160
Semantic search with Django and pgvector
pauloxnet
0
240
Compose-View Interop in Practice (mDevCamp 2024)
stewemetal
0
120
Hanami and htmx
bkuhlmann
0
200
Node.js v22 で変わること
yosuke_furukawa
PRO
2
350
PHP8.3の機能を振り返る / Review of PHP 8.3 features
seike460
PRO
1
110
Featured
See All Featured
WebSockets: Embracing the real-time Web
robhawkes
59
7k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
6
1.5k
Code Reviewing Like a Champion
maltzj
514
39k
Reflections from 52 weeks, 52 projects
jeffersonlam
345
19k
Thoughts on Productivity
jonyablonski
58
3.8k
Art, The Web, and Tiny UX
lynnandtonic
289
19k
Designing the Hi-DPI Web
ddemaree
276
33k
Making the Leap to Tech Lead
cromwellryan
124
8.5k
How To Stay Up To Date on Web Technology
chriscoyier
782
250k
Gamification - CAS2011
davidbonilla
76
4.6k
Designing for humans not robots
tammielis
248
25k
BBQ
matthewcrist
80
8.8k
Transcript
None
Testes Unitários com PHP
https://blog.lafraga.me/ @lafraga93 no , no e no Gustavo Fraga Software
Developer https://imasters.com.br/perfil/gustavofraga
Como será o webinar?
• Por que testar, tipos de teste e teste de
unidade • Realizando testes manuais • Realizando testes com o PHPUnit • Feedback dos testes, boas práticas e refatoração
Por que Testar?
• Garante a integridade da aplicação • Redução de bugs
• Colabora com um bom design de classes *
Tipos de Teste
• Unidade • Integração • Usabilidade
Testes de Unidade
• Testar a menor unidade do software • Garantir o
retorno correto para cada método
aplicação exemplo
None
realizando testes manuais
None
realizando testes com phpunit
>_ composer require --dev phpunit/phpunit ^8
None
refactoring
• Dependa de abstrações, leia-se interfaces • “Escute” os testes!
• Testes repetidos ou parecidos • Lembrem-se, vamos testar as regras!
None
Obrigado!