Testing in PHP

Learn PHP testing, unit tests, acceptance tests, testing web applications using Selenium, data mocking, stubbing, and more in this online course.

Introduction to web application testing in PHP

Lesson 1

Introduction to web application testing in PHP

The tutorial explains why it's necessary to test software and why it needs to be done by a machine. Describes the basic test types, introduces the v-model.
Written by David Capka
FreeUnrated Show description
Introduction to unit tests in PHP and PHPUnit installation

Lesson 2

Introduction to unit tests in PHP and PHPUnit installation

In the tutorial, we'll install the Codeception test framework for PHP and generate our first unit test for PHPUnit.
Written by David Capka
FreeUnrated Show description
PHP Testing - Finishing Unit Tests

Lesson 3

PHP Testing - Finishing Unit Tests

In a PHP tutorial, we'll cover a simple class with tests and run them. We'll learn individual assert methods and test exceptions.
Written by David Capka
FreeUnrated Show description
PHPUnit DataProvider and BestPractices

Lesson 4

PHPUnit DataProvider and BestPractices

In the tutorial, we'll learn to use the @dataProvider annotation, test private and protected methods, and mention best practices for PHP testing.
Written by David Capka
PROUnrated Show description
PHP Testing - Xdebug and coverage reports

Lesson 5

PHP Testing - Xdebug and coverage reports

We'll learn to debug PHP applications at runtime using Xdebug and configure it in this tutorial. We'll generate test coverage and code quality reports.
Written by David Capka
PROUnrated Show description
Dependency Injection and Test doubles

Lesson 6

Dependency Injection and Test doubles

In the tutorial, we'll explain the Dependency Injection design pattern and introduce the test doubles - Dummy, Fake, Stub, Spy and, of course, Mock.
Written by David Capka
PROUnrated Show description
MockBuilder and mock / stub methods

Lesson 7

MockBuilder and mock / stub methods

In this tutorial, we'll proceed to different implementations of mock objects and stub / mock methods in PHPUnit.
Written by David Capka
PROUnrated Show description
Fake, Codeception Stub and AspectMock

Lesson 8

Fake, Codeception Stub and AspectMock

In this tutorial, we'll learn to change stub's implementation using the Fake test double, introduce the Codeception PHPunit wrapper, and AspectMock.
Written by David Capka
PROUnrated Show description
Unit Tests of Commercial Applications I

Lesson 9

Unit Tests of Commercial Applications I

In this tutorial, we'll test the date and time in PHP using PHPUnit to simulate its changes and test how libraries response to them.
Written by David Capka
PROUnrated Show description
Unit tests of Commercial Applications II

Lesson 10

Unit tests of Commercial Applications II

In the tutorial, we'll test random value generators, show a database wrapper test, and test multiple exceptions through anonymous functions.
Written by David Capka
PROUnrated Show description
Unit tests of Commercial Applications III

Lesson 11

Unit tests of Commercial Applications III

In this tutorial, we'll learn how to submit forms using PHPUnit, including simulating file uploads. We'll show you how to assert images with tolerance.
Written by David Capka
PROUnrated Show description
Introduction to acceptance tests in PHP and creating GUI

Lesson 12

Introduction to acceptance tests in PHP and creating GUI

In this tutorial, we'll begin an introduction to acceptance testing in PHP (clicking through our app automatically) and create a form for our class.
Written by David Capka
PROUnrated Show description
PHP testing - Creating Selenium acceptance tests

Lesson 13

PHP testing - Creating Selenium acceptance tests

In this tutorial, we'll cover a simple calculator in PHP with acceptance tests in the Codeception framework and run them using the Selenium server.
Written by David Capka
PROUnrated Show description
PhpBrowser vs. WebDriver and Selenium server configuration

Lesson 14

PhpBrowser vs. WebDriver and Selenium server configuration

In the tutorial, we'll run acceptance tests for a web application programmed in PHP on PhpBrowser and WebDriver via the Selenium server which we configure.
Written by David Capka
PROUnrated Show description
PHP Testing - Selenium WebDriver syntax overview

Lesson 15

PHP Testing - Selenium WebDriver syntax overview

The tutorial details the Selenium WebDriver syntax of the Codeception test framework. Assertions, comments, grabbers, waiting, browser control.
Written by David Capka
PROUnrated Show description
PHP Testing - More Selenium WebDriver Syntax

Lesson 16

PHP Testing - More Selenium WebDriver Syntax

This tutorial details the Selenium WebDriver syntax of the Codeception PHP framework. Controlling the browser, forms, sessions, and multiuser testing.
Written by David Capka
PROUnrated Show description
PHP Testing - Useful AcceptanceTester class extensions

Lesson 17

PHP Testing - Useful AcceptanceTester class extensions

We'll extend the AcceptanceTester class of useful methods for our projects such as printing to STDERR, time, signing in, reading emails, db, CSS support.
Written by David Capka
PROUnrated Show description
PHP Testing - Acceptance tests of commercial applications I

Lesson 18

PHP Testing - Acceptance tests of commercial applications I

In this tutorial, we'll return to the problems with waiting and show several interesting test codes from real commercial PHP applications.
Written by David Capka
PROUnrated Show description
PHP Testing - Acceptance tests of commercial applications II

Lesson 19

PHP Testing - Acceptance tests of commercial applications II

In this tutorial, we'll introduce more real-world codes dealing with interesting situations in commercial scenarios. We'll finish by simulating a payment.
Written by David Capka
PROUnrated Show description
PHP Testing - Quality Assurance, CAN PIG RIDE, and ISTQB

Lesson 20

PHP Testing - Quality Assurance, CAN PIG RIDE, and ISTQB

In this PHP tutorial about testing web apps, we'll explain terms such as SLA, QA, SQA, go through CAN PIG RIDE and ISTQB practices (pesticides paradox).
Written by David Capka
PROUnrated Show description
PHP Testing - Business Standards and Usability

Lesson 21

PHP Testing - Business Standards and Usability

The ISO 9001 and IEEE 829 business standards, verification vs. validation, test. approaches (regressive tests...), user interface tests, UX vs. UI.
Written by David Capka
PROUnrated Show description
PHP Testing - Performance testing using cloud services

Lesson 22

PHP Testing - Performance testing using cloud services

This tutorial will introduce performance testing. We'll learn to test that our PHP application can handle a given number of users working simultaneously,
Written by David Capka
PROUnrated Show description
PHP Testing - Practicing Apache JMeter

Lesson 23

PHP Testing - Practicing Apache JMeter

In this PHP tutorial, we'll learn basics of using Apache JMeter and test our application by it, this time on localhost.
Written by David Capka
PROUnrated Show description


 

Activities (5)