---
title: "Discussion on \"PHP: Pra que mockar?\" | Hashnode"
description: "Discussion on \"PHP: Pra que mockar?\". Se você já escreve testes, em algum momento, deve ter recebido orientações para mockar uma classe com o objetivo de fazer um teste mais simples. Se você nunca passou por isso ou se ainda não entendeu o motivo de usar, esse artigo é pra você.\nE antes ..."
url: "https://hashnode.com/posts/php-pra-que-mockar/61f9580443e34d1181694d79"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [PHP: Pra que mockar?](https://blog.kaiquegarcia.dev/php-pra-que-mockar?utm_source=hashnode&utm_medium=feed)

Se você já escreve testes, em algum momento, deve ter recebido orientações para mockar uma classe com o objetivo de fazer um teste mais simples. Se você nunca passou por isso ou se ainda não entendeu o motivo de usar, esse artigo é pra você. E antes ...

Feb 1, 2022 · 6 min read · blog.kaiquegarcia.dev  
Read the article

-   [#php](https://hashnode.com/tag/php)
-   [#learning](https://hashnode.com/tag/learning)
-   [#learn-coding](https://hashnode.com/tag/learn-coding)
-   [#learning-journey](https://hashnode.com/tag/learning-journey)
-   [#learn](https://hashnode.com/tag/learn)

## Written by

[Kaique Garcia](https://hashnode.com/@kaiquegarcia)

@kaiquegarcia · Sergipe, BR

  
[View profile](https://hashnode.com/@kaiquegarcia)

Sr Backend Developer

My name is Kaique Garcia, but you can call me Kiko. I'm a developer since 2014, a guitar player since 2008, a World Wide Web explorer since 2000 and a living guy since 1992 (haha). My hobby is to have hobbies (I can tell you more than 20 hobbies I got from my childhood). My pleasure is to solve problems, that's the way I came to the development area. Ok, lemme finish it... I like to meet people, so don't worry about speaking to me!

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
