Skip to content

cactus-blossom-it-services-limited/Test-Driven-Development-with-PHP-8

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Test-Driven Development with PHP 8

Test-Driven Development with PHP 8, published by Packt

Test-Driven Development with PHP 8

This is the code repository for PHP Web Development with Laminas, published by Packt.

Build extensible, reliable, and maintainable enterprise-level applications using TDD and BDD with PHP

What is this book about?

This book is for PHP software developers looking to implement TDD and BDD in their projects. An understanding of object-oriented programming is required to get the most out of this book. Professional software development experience will also be beneficial to understand real-life business cases.

This book covers the following exciting features:

  • Understand how to start a software project
  • Discover how to use Jira as a tool to organize your tasks
  • Explore when and how to write unit, integration, and functional tests using PHPUnit
  • Write behavior-driven tests using Behat
  • Apply SOLID principles to help you write more testable code
  • Get the most out of your automated tests by using continuous integration
  • Use continuous delivery to help you prepare your application for deployment

If you feel this book is for you, get your copy today!

https://www.packtpub.com/

Instructions and Navigations

All of the project files are organized into folders. For example, Chapter03.

The code will look like the following:

class Display 
{ 
    public function outputSound() 
    { 
        $dog1 = new Dog(); 

        $dog2 = $dog1; 
        
        $dog1->setSound("Barky Bark"); 

        // Will return "Barky Bark" which was set to $dog1. 

        echo $dog2->returnSound(); 
    } 
}

Erata

  • Page no 159: Typo on filename, “behay.yml” Correct filename is “behat.yml”.

Following is what you need for this book:

PHP web developers end up building complex enterprise projects without prior experience in test-driven and behavior-driven development which results in software that’s complex and difficult to maintain. This step-by-step guide helps you manage the complexities of large-scale web applications. It takes you through the processes of working on a project, starting from understanding business requirements and translating them into actual maintainable software, to automated deployments.

With the following software and hardware list you can run all code files present in the book (Chapter 01-11).

We also provide a PDF file that has color images of the screenshots/diagrams used in this book. Click here to download it.

Related products

Get to Know the Author

Rainier Sarabia is a Software Engineering Manager, who currently works in Melbourne, Australia for Astute Payroll, a Deel company. He has worked on hundreds of complex software projects, including massive enterprise SaaS products while leading and training senior engineers from all over the world. His favorite programming languages are PHP, C#, Java, and Javascript which he uses for both professional and personal projects. He co-founded his first tech company back in 2014, with over 400,000 users. Outside of working hours, he is an amateur astronomer. He spends most of his time doing astrophotography focusing on deep-sky objects like nebulae and galaxies.

Download a free PDF

If you have already purchased a print or Kindle version of this book, you can get a DRM-free PDF version at no cost.
Simply click on the link to claim your free PDF.

https://packt.link/free-ebook/9781803230757

About

Test-Driven Development with PHP 8, published by Packt

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 86.5%
  • Shell 4.7%
  • Twig 4.1%
  • Gherkin 2.9%
  • Dockerfile 1.8%