Posts marked with “testing”

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.

 

Treasures, Old & New – May 2018

by · May 1, 2018

1
 

Writing clean code, managing technical debt, testing with Mockery, Toxic Tech, API specifications, and more.

 

Easier Mocking with Mockery, Part 2

by ·

0
 

In part one, we laid the practical groundwork for using test doubles. Let’s explore the parts of Mockery that, in some cases, exit the realm of everyday usage and see how it can help us in dealing with scenarios we might have thought impossible to test like static method calls, spying on objects, and more.

 

Testing Strategy With the Help of Static Analysis

by · April 26, 2018

2
 

By Ondrej Mirtes. In this article, I’d like to introduce you to the concept of type safety and how it can improve the reliability and stability of your code. Once your code is more type-safe, and that fact is verified by automated tools, you can cherry-pick which parts of your application need extensive unit tests and where you can rely just on well-defined types.