Posts marked with “testing”

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.

 

Episode 9: Testing in Practice

by · April 20, 2018

0
 

In this Episode Our hosts, Eric van Johnson and John Congdon dive into Testing in Practice and the April 2018 issue of php magazine and interview Robert Basic, one of the contributors to Mockery. Oscar talks about the importance of training for employees and rants against image slideshows.

 

Testing in Practice – April 2018

by · April 2, 2018

0
 

PHP Unit, Mockery, Type Hints, Async PHP, building a REST API, training programs, PHP isolation and security, serverless computing, Laravel auth, and more.