---
title: "Discussion on \"Method Chaining in PHP with PHPUnit test\" | Hashnode"
description: "Discussion on \"Method Chaining in PHP with PHPUnit test\". What is method chaining\nMethod chaining is where you can call multiple methods after one another in one line like so\n$methodChain->addHelloToChain()->addSpaceToChain()->addThereToChain()->getOutputOfChain();\nLet's write some code\nSetup an initial cla..."
url: "https://hashnode.com/posts/method-chaining-in-php-with-phpunit-test/61ad1042a375fb2266f3ea5b"
---

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

Discussion

# [Method Chaining in PHP with PHPUnit test](https://blog.azcodez.com/method-chaining-in-php-with-phpunit-test?utm_source=hashnode&utm_medium=feed)

What is method chaining Method chaining is where you can call multiple methods after one another in one line like so $methodChain->addHelloToChain()->addSpaceToChain()->addThereToChain()->getOutputOfChain(); Let's write some code Setup an initial cla...

Dec 5, 2021 · 2 min read · blog.azcodez.com  
Updated Aug 6, 2022  
Read the article

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

## 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.
