---
title: "Discussion on \"PHPUnit checking method is called once\" | Hashnode"
description: "Discussion on \"PHPUnit checking method is called once\". Use PHP Unit to check if a function was called once"
url: "https://hashnode.com/posts/phpunit-checking-method-is-called-once/617b01b56584fe6ae5986ab2"
---

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

Discussion

# [PHPUnit checking method is called once](https://blog.azcodez.com/phpunit-checking-method-is-called-once?utm_source=hashnode&utm_medium=feed)

Use PHP Unit to check if a function was called once

Oct 28, 2021 · 3 min read · blog.azcodez.com  
Updated Feb 12, 2022  
Read the article

-   [#php](https://hashnode.com/tag/php)
-   [#software-development](https://hashnode.com/tag/software-development)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#coding](https://hashnode.com/tag/coding)
-   [#testing](https://hashnode.com/tag/testing)

## Written by

[Asrin Dayananda](https://hashnode.com/@azcodez)

@azcodez · United Kingdom

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

Cloud & Software Engineer 👨‍💻

Software engineer focusing on PHP, JavaScript, HTML, CSS, CI/CD, GitHub, AWS, Azure &amp; Magento Commerce. I enjoy code for good projects, tech, gym, nature, travel, fried chicken, and coffee. All my articles are educational only from my experience. Feel free to connect.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
