Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Testes Unitários com PHP
Search
Gustavo Fraga
October 22, 2019
Programming
30
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Testes Unitários com PHP
Gustavo Fraga
October 22, 2019
More Decks by Gustavo Fraga
See All by Gustavo Fraga
Integração Contínua com GitHub, TravisCI e Heroku
lafraga93
0
72
Boas Práticas com PHP V2
lafraga93
0
170
Boas Práticas com PHP
lafraga93
0
32
Other Decks in Programming
See All in Programming
iOSDC Japan 2026 - Swiftで作って学ぼう!データベース自作入門
kaseken
2
150
Go のフラットな パッケージに 「ファイル単位の private」を 〜Linter “declscope” を作った話〜
mpyw
0
220
手動確認はもう限界 〜XCUITestでCustom URL Schemeの遷移を起動種別ごとに自動テストする〜 / Testing Custom URL Schemes with XCUITest
otouto
0
160
海上で動くGoサーバー: goroutineとchannelでさばく航行データストリーム
atsuki_seo
0
100
Building an Out-of-Order CPU
latte72
1
760
What We Talk About When We Talk About XP
m_seki
2
600
一参加者から『中の人』へ 〜全通PHPerがブースに立って学んだ、カンファレンスを100倍楽しむコツ〜
wp_daisuke
0
150
初心者DevRelとして参加者だった私が、DevRel Talks!#2に登壇するまでにしてきたこと
sokohirai
0
370
AIエージェント時代のコードレビューを設計する
nogu66
6
2.7k
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
320
AHC070解法紹介
eijirou
0
110
技術的負債を組織課題として解く-増えすぎたマイクロサービスとの戦い-
reimaru
1
1.1k
Featured
See All Featured
エンジニアに許された特別な時間の終わり
watany
108
250k
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
410
Building Applications with DynamoDB
mza
96
7.2k
The Mindset for Success: Future Career Progression
greggifford
PRO
0
490
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
370
A designer walks into a library…
pauljervisheath
211
25k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
30k
Building the Perfect Custom Keyboard
takai
2
870
Six Lessons from altMBA
skipperchong
29
4.5k
Testing 201, or: Great Expectations
jmmastey
46
8.3k
Producing Creativity
orderedlist
PRO
348
41k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
35
2.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!