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
27
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
66
Boas Práticas com PHP V2
lafraga93
0
160
Boas Práticas com PHP
lafraga93
0
29
Other Decks in Programming
See All in Programming
AIによる高速開発をどう制御するか? ガードレール設置で開発速度と品質を両立させたチームの事例
tonkotsuboy_com
7
2.1k
humanlayerのブログから学ぶ、良いCLAUDE.mdの書き方
tsukamoto1783
0
190
Basic Architectures
denyspoltorak
0
660
コマンドとリード間の連携に対する脅威分析フレームワーク
pandayumi
1
450
AIエージェント、”どう作るか”で差は出るか? / AI Agents: Does the "How" Make a Difference?
rkaga
4
2k
それ、本当に安全? ファイルアップロードで見落としがちなセキュリティリスクと対策
penpeen
7
3.8k
AIエージェントのキホンから学ぶ「エージェンティックコーディング」実践入門
masahiro_nishimi
5
380
[KNOTS 2026登壇資料]AIで拡張‧交差する プロダクト開発のプロセス および携わるメンバーの役割
hisatake
0
270
責任感のあるCloudWatchアラームを設計しよう
akihisaikeda
3
170
AIによる開発の民主化を支える コンテキスト管理のこれまでとこれから
mulyu
3
150
メルカリのリーダビリティチームが取り組む、AI時代のスケーラブルな品質文化
cloverrose
2
510
Patterns of Patterns
denyspoltorak
0
1.4k
Featured
See All Featured
For a Future-Friendly Web
brad_frost
182
10k
Bash Introduction
62gerente
615
210k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.4k
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
0
320
The World Runs on Bad Software
bkeepers
PRO
72
12k
A better future with KSS
kneath
240
18k
YesSQL, Process and Tooling at Scale
rocio
174
15k
Un-Boring Meetings
codingconduct
0
200
Prompt Engineering for Job Search
mfonobong
0
160
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3.2k
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
0
410
Evolving SEO for Evolving Search Engines
ryanjones
0
120
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!