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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
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
Amazon Bedrockを活用したRAGの品質管理パイプライン構築
tosuri13
4
270
AI Schema Enrichment for your Oracle AI Database
thatjeffsmith
0
260
フルサイクルエンジニアリングをAI Agentで全自動化したい 〜構想と現在地〜
kamina_zzz
0
400
2026年 エンジニアリング自己学習法
yumechi
0
130
HTTPプロトコル正しく理解していますか? 〜かわいい猫と共に学ぼう。ฅ^•ω•^ฅ ニャ〜
hekuchan
2
680
16年目のピクシブ百科事典を支える最新の技術基盤 / The Modern Tech Stack Powering Pixiv Encyclopedia in its 16th Year
ahuglajbclajep
5
1k
Vibe Coding - AI 驅動的軟體開發
mickyp100
0
170
Unicodeどうしてる? PHPから見たUnicode対応と他言語での対応についてのお伺い
youkidearitai
PRO
1
2.5k
【卒業研究】会話ログ分析によるユーザーごとの関心に応じた話題提案手法
momok47
0
190
AIエージェント、”どう作るか”で差は出るか? / AI Agents: Does the "How" Make a Difference?
rkaga
4
2k
なるべく楽してバックエンドに型をつけたい!(楽とは言ってない)
hibiki_cube
0
140
Smart Handoff/Pickup ガイド - Claude Code セッション管理
yukiigarashi
0
130
Featured
See All Featured
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
Un-Boring Meetings
codingconduct
0
200
Reflections from 52 weeks, 52 projects
jeffersonlam
356
21k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.4k
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
130
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
79
Odyssey Design
rkendrick25
PRO
1
490
Making the Leap to Tech Lead
cromwellryan
135
9.7k
Evolving SEO for Evolving Search Engines
ryanjones
0
120
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
0
170
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
0
1.9k
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!