Lock in $30 Savings on PRO—Offer Ends Soon! ⏳
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
25
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
WebRTC と Rust と8K 60fps
tnoho
2
2k
Claude Codeの「Compacting Conversation」を体感50%減! CLAUDE.md + 8 Skills で挑むコンテキスト管理術
kmurahama
1
390
開発に寄りそう自動テストの実現
goyoki
2
1.1k
C-Shared Buildで突破するAI Agent バックテストの壁
po3rin
0
390
マスタデータ問題、マイクロサービスでどう解くか
kts
0
110
AI 駆動開発ライフサイクル(AI-DLC):ソフトウェアエンジニアリングの再構築 / AI-DLC Introduction
kanamasa
3
260
DevFest Android in Korea 2025 - 개발자 커뮤니티를 통해 얻는 가치
wisemuji
0
150
組み合わせ爆発にのまれない - 責務分割 x テスト
halhorn
1
150
tsgolintはいかにしてtypescript-goの非公開APIを呼び出しているのか
syumai
7
2.2k
안드로이드 9년차 개발자, 프론트엔드 주니어로 커리어 리셋하기
maryang
1
120
tparseでgo testの出力を見やすくする
utgwkk
2
240
Graviton と Nitro と私
maroon1st
0
110
Featured
See All Featured
GraphQLとの向き合い方2022年版
quramy
50
14k
The Cult of Friendly URLs
andyhume
79
6.7k
VelocityConf: Rendering Performance Case Studies
addyosmani
333
24k
A Modern Web Designer's Workflow
chriscoyier
698
190k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Fashionably flexible responsive web design (full day workshop)
malarkey
407
66k
The Power of CSS Pseudo Elements
geoffreycrofte
80
6.1k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.6k
For a Future-Friendly Web
brad_frost
180
10k
Statistics for Hackers
jakevdp
799
230k
A better future with KSS
kneath
240
18k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
9.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!