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
Testando PHP na Prática - 5º Encontro de Devs P...
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Ian Rodrigues
March 16, 2019
Technology
79
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Testando PHP na Prática - 5º Encontro de Devs PHP com Rapadura
Ian Rodrigues
March 16, 2019
Transcript
31 slides
Testando PHP na prática! 16 de Março de 2019
Fala pessoal! Software Engineer @ Oowlish Medium: @ianrodrigues Github: @ianrodrigues
“Eu escrevo testes porque eu não sou perfeito”
None
testar é o ato de verificar se o software ou
parte dele está livre de defeitos
Caso 1
None
Caso 2
None
None
None
2h fora do ar
~ US$ 70.000,00
~ R$ 267.000,00
Exemplo 1
None
Exemplo 2
None
None
Código “Legado”
código sem testes o que é “correto”?
alto acoplamento baixa coesão violação da SRP
Meu Objetivo
respeitar o que funciona não quebrar entregar funcionalidade
em um ritmo “sustentável”
“hello darkness, my old friend”
Exemplo 3 live coding
Indo Além
TDD Mutation Tests Continuous Integration
Laracasts Journey: Testing Adam Wathan Magic Tricks of Testing
PHPUnit Codeception Behat PHPSpec
Obrigado!
More Decks by Ian Rodrigues
See All by Ian Rodrigues
Trabalhando com Value Objects no PHP
ianrodrigues
0
420
Refactoring: porquê, quando e como
ianrodrigues
1
150
Refactoring: porque, quando e como
ianrodrigues
0
120
Building APIs with Lumen
ianrodrigues
0
74
Other Decks in Technology
See All in Technology
メディアアートを〈拡張〉する——器官学と個体化論を手がかりに
_kotobuki_
1
400
フロントエンドのテストカバレッジは 100%強制がいい
bengo4com
7
3.9k
みん強Lightning! データ基盤ひとりでできるかな
endonanana
0
230
「個社」ではなく「業界」の課題を解く AI 対話開発 ー 価値を広げる設計と、価値を守るエンジニアリング ー
ivry_presentationmaterials
4
920
AIエージェントのアーキテクチャ設計
nsatoh
0
600
Is the Website Dying?
miriamschwab
0
260
本の挿絵に困ったから挿絵メーカーを自作した
yoshimura_datam
1
130
Amazon Bedrock AgentCore の基礎とセキュリティ・ガバナンス
ren8k
0
290
LLMごとの文章力を測ってみた話
yoshimura_datam
0
120
自動計装なしでECSサービスをApplication Signalsに載せるまで
ota1022
2
480
メルカリの小規模チーム「Pod」で、 エンジニアがデータアナリストなしで、 AIを使ってデータ分析の自走を目指す取り組み
jackojacko_
1
380
猫でもわかるKiro初心者編(2026年11月版)
kentapapa
1
130
Featured
See All Featured
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
970
Visualization
eitanlees
153
17k
Facilitating Awesome Meetings
lara
57
7.2k
Well, that’s weird…
csswizardry
3
260
We Are The Robots
honzajavorek
0
470
Optimizing for Happiness
mojombo
378
72k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
3
3.9k
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
1
490
The Cost Of JavaScript in 2023
addyosmani
56
10k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
50
10k
HDC tutorial
michielstock
2
1k