Lock in $30 Savings on PRO—Offer Ends Soon! ⏳
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Testando PHP na Prática - 5º Encontro de Devs P...
Search
Ian Rodrigues
March 16, 2019
Technology
1
68
Testando PHP na Prática - 5º Encontro de Devs PHP com Rapadura
Ian Rodrigues
March 16, 2019
Tweet
Share
More Decks by Ian Rodrigues
See All by Ian Rodrigues
Trabalhando com Value Objects no PHP
ianrodrigues
0
370
Refactoring: porquê, quando e como
ianrodrigues
1
120
Refactoring: porque, quando e como
ianrodrigues
0
97
Building APIs with Lumen
ianrodrigues
0
63
Other Decks in Technology
See All in Technology
Snowflakeでデータ基盤を もう一度作り直すなら / rebuilding-data-platform-with-snowflake
pei0804
6
1.6k
AI時代の新規LLMプロダクト開発: Findy Insightsを3ヶ月で立ち上げた舞台裏と振り返り
dakuon
0
190
Fashion×AI「似合う」を届けるためのWEARのAI戦略
zozotech
PRO
2
830
会社紹介資料 / Sansan Company Profile
sansan33
PRO
11
390k
AI-DLCを現場にインストールしてみた:プロトタイプ開発で分かったこと・やめたこと
recruitengineers
PRO
2
150
打 造 A I 驅 動 的 G i t H u b ⾃ 動 化 ⼯ 作 流 程
appleboy
0
350
AI駆動開発の実践とその未来
eltociear
0
130
re:Invent2025 コンテナ系アップデート振り返り(+CloudWatchログのアップデート紹介)
masukawa
0
390
【U/day Tokyo 2025】Cygames流 最新スマートフォンゲームの技術設計 〜『Shadowverse: Worlds Beyond』におけるアーキテクチャ再設計の挑戦~
cygames
PRO
2
550
今からでも間に合う!速習Devin入門とその活用方法
ismk
1
750
re:Invent 2025 ~何をする者であり、どこへいくのか~
tetutetu214
0
220
Jakarta Agentic AI Specification - Status and Future
reza_rahman
0
110
Featured
See All Featured
It's Worth the Effort
3n
187
29k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
1.6k
[RailsConf 2023] Rails as a piece of cake
palkan
58
6.2k
A better future with KSS
kneath
240
18k
A designer walks into a library…
pauljervisheath
210
24k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
Building an army of robots
kneath
306
46k
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
390
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
2.7k
Faster Mobile Websites
deanohume
310
31k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
5.8k
Transcript
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!