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 em PHP Laravel: Começando com TDD
Search
Guilherme Augusto
June 01, 2025
Programming
23
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Testes Unitários em PHP Laravel: Começando com TDD
DevParaná 06/12/2024
Guilherme Augusto
June 01, 2025
More Decks by Guilherme Augusto
See All by Guilherme Augusto
Event Driven Architecture
nikolayevsk404
0
26
React além desse mundo
nikolayevsk404
0
26
Frontend responsável: Técnicas com JavaScript para descarregar o Backend
nikolayevsk404
0
21
SEMINÁRIO VIVAWORKS: Como a IA me ajuda a evitar erros e melhorar meu código
nikolayevsk404
0
26
Other Decks in Programming
See All in Programming
FDEが実現するAI駆動経営の現在地
gonta
2
270
言語を使う側から、作る側へ。 自作 Lisp で得た新たな気づき。
andpad
0
160
ドリフトを絶対に許さない(?)CDK運用 / CDK Ops with Zero Tolerance for Drifts (?)
akihisaikeda
1
180
ITヒヤリハットを整理してみた ~ライフサイクルと原因から考える再発防止策~
koukimiura
1
140
freee が目指す データ マネジメント戦略 AI-Ready 時代を支える 攻めのガバナンスとは
freee
PRO
0
300
Go 1.27 における memory allocation の高速化
andpad
0
120
関東Kaggler会_NVIDIA_Nemotron_コンペ_振り返り
rick_ds
0
490
the container ship “Apple Silicon”@WWDC26 Recap -Japan-\(region).swift
shingangan
0
110
【やさしく解説 設計編・中級 #6】良いアーキテクチャとは ~ 一本の登り道の、行き先 ~
panda728
PRO
0
210
Laravel Boostに学ぶ、AIにPHPを書かせる技術 〜OSSの実装から蒸留するエージェント制御の王道〜
kentaroutakeda
3
670
Detecting Compromised CI with eBPF and Cilium Tetragon
lizrice
0
160
Japan Community Day at Kubecon + CloudNativeCon Japan 2026: Learning Container Privilege Control by Building My Own Low-Level Container Runtime
ternbusty
1
150
Featured
See All Featured
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.8k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.5k
Building a Scalable Design System with Sketch
lauravandoore
463
34k
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
790
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
56
3.4k
We Have a Design System, Now What?
morganepeng
55
8.3k
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
450
Building an army of robots
kneath
306
46k
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.5k
How to make the Groovebox
asonas
2
2.3k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
3k
Building Applications with DynamoDB
mza
96
7.2k
Transcript
TESTES UNITÁRIOS EM PHP LARAVEL COMEÇANDO COM TDD COMEÇAR!!!
Dev. Gamer. Guitar Player. GUILHERME AUGUSTO ADS, DBA, GAME DEV
@NIKOLAYEVSK404
Importância dos testes unitários
Importância dos testes unitários
FASES Importância dos testes unitários. O que é TDD (Test-Driven
Development). Estrutura de testes no Laravel. Boas práticas em testes unitários.
Importância dos testes unitários Redução de bugs em produção. Facilitar
refatorações. Garantir que o código funcione como esperado. REDUZIr bugs. Facilitar refatorações. FASE 1
O QUE É TDD? FASE 2 DESENVOLVIMENTO ORIENTADO A TESTES!
Importância dos testes unitários
Importância dos testes unitários
Tempo ENTREGA TESTES & PRODUTIVIDADE
ESTRUTURA DE TESTES NO LARAVEL FASE 3 PHPUnit? PEST? Como
configurar e organizar os testes no Laravel..
Importância dos testes unitários PHPUNIT PEST
FASE 4 B O A S P R Á T
I C A S E M T E S T E S U N I T Á R I O S ! Testar funcionalidades isoladas. 100% COBERTURA? + SEGURANÇA? Testar funcionalidades isoladas. Evitar dependências externas. Utilizar mocks e stubs quando necessário.
M O C K S : S I M U
L A M I N T E R A Ç Õ E S E V A L I D A M C O M P O R T A M E N T O S . S T U B S : S I M U L A M R E S P O S T A S E I S O L A M O C Ó D I G O .
CHEFÃO!!! L I V E C O D I N
G ! ! !
MUITO OBRIGADO!!! FIM!!! dark-web-studio.web.app