Posts marked with “testing”

Practical Static Analysis

by · October 2, 2019

0
 

All developers know bugs are bad and finding them can be difficult. The good news is tools to help us find and prevent bugs are becoming more powerful. This article shows how to use advanced static analyzers on your current project to help you produce cleaner, bug-free code.

 

Puphpeteer, 25 Years of PHP, and Joe Ferguson

by · September 24, 2019

0
 

In Episode 24 Eric, John, and Oscar discuss some of the articles in the September 2019 issue “Master of Puppets”. Topics History of PHP, celebrating “25 Years of PHP”, and the Impact Awards at php[world] Using Puphpeteer to automate Chromium browser tasks and testing. Code style, and refactoring legacy code. Code editors from VIM (and […]

 

End-to-End Testing Automation With PuPHPeteer

by · September 3, 2019

0
 

In general, we perceive the frontend part of a user-facing application as difficult to test in an automated way, and we often relegate these checks to a manual task. In this article, we examine how to use the Puppeteer tool and its PHP bridge, PuPHPeteer, to ensure deterministic validation of the browser side of a web application.

 

Frontend Fundamentals and Chris Hartjes

by · April 25, 2019

0
 

Eric, John, and Oscar record together again to discuss the April 2019 issue on the new frontend fundamentals, php[tek], and quite a lot more about web browsers than anyone anticipated.

 

Jenkins Automation

by · January 7, 2019

0
 

When you want to guarantee code quality, do continuous deployments, or any other automation you need a robust continuous integration server. While there are many great (hosted) solutions like Travis CI, CircleCI, and others, when it comes to full control or the need for private hosting, Jenkins is the perfect candidate. Jenkins has a reputation […]

 

Testing Strategy With the Help of Static Analysis

by · December 21, 2018

0
 

When developing an application, our aim as software developers is to make sure it does what it ought to do and to keep the number of defects as low as possible. We should also strive to make our lives easier, to counter external circumstances like tight deadlines and ever-changing requirements causing the exact opposite. That’s […]

 

Easier Mocking with Mockery

by ·

0
 

Mockery tries to provide an easy to read and understand API, which is also versatile enough, so any scenario that might come up when working with mock objects in our test cases are covered. In this first part, we’ll see how Mockery can be used to create different test doubles and how they fit into […]

 

How to Learn PHP Unit Testing With Katas

by · December 11, 2018

0
 

Sometimes code is first tested when the unfortunate client or user feels like using the feature and tests the developer’s work. Hopefully, they’re not disappointed. That’s why you should be interested in unit testing and Test-Driven Development (TDD)—because it makes your life as a programmer better.

 

Magniphpicent 7.3 – September 2018

by · September 4, 2018

0
 

In this issue: Xdebug, Freelancing, Parsing text, MySQL Generated Columns, Gitflow, PhpStorm, and more.

 

The Workshop: Describe Your Tests with Kahlan

by ·

0
 

This month we’re covering a full-featured unit and Behavior-Driven Development (BDD) test framework named Kahlan. Kahlan is similar to RSpec (Ruby) and JSpec (Java) using BDD style syntax where you describe the behavior your application should have.