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
69
Boas Práticas com PHP V2
lafraga93
0
160
Boas Práticas com PHP
lafraga93
0
30
Other Decks in Programming
See All in Programming
GC言語のWasm化とComponent Modelサポートの実践と課題 - Scalaの場合
tanishiking
0
120
AI時代のソフトウェア開発でも「人が仕様を書く」から始めよう-医療IT現場での実践とこれから
koukimiura
0
150
Takumiから考えるSecurity_Maturity_Model.pdf
gessy0129
1
150
How to stabilize UI tests using XCTest
akkeylab
0
130
Swift ConcurrencyでよりSwiftyに
yuukiw00w
0
270
モダンOBSプラグイン開発
umireon
0
150
AIに任せる範囲を安全に広げるためにやっていること
fukucheee
0
140
コードレビューをしない選択 #でぃーぷらすトウキョウ
kajitack
3
1k
技術検証結果の整理と解析をAIに任せよう!
keisukeikeda
0
130
最初からAWS CDKで技術検証してもいいんじゃない?
akihisaikeda
4
160
Kubernetesでセルフホストが簡単なNewSQLを求めて / Seeking a NewSQL Database That's Simple to Self-Host on Kubernetes
nnaka2992
0
150
Fundamentals of Software Engineering In the Age of AI
therealdanvega
2
260
Featured
See All Featured
Raft: Consensus for Rubyists
vanstee
141
7.4k
Building the Perfect Custom Keyboard
takai
2
710
Building an army of robots
kneath
306
46k
[SF Ruby Conf 2025] Rails X
palkan
2
830
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8k
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
73
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
1
2.4k
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
1
680
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
1
1.3k
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
290
We Have a Design System, Now What?
morganepeng
55
8k
Product Roadmaps are Hard
iamctodd
PRO
55
12k
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!