Testing Framework

Installs: 28

Dependents: 2

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/philippwitzmann/testing

1.1 2019-12-31 09:27 UTC

This package is auto-updated.

Last update: 2025-09-29 02:29:56 UTC


README

This library aims to provide basic functionality to write tests.

Installation

composer require --dev philippwitzmann/testing

Usage

Create a new Test File

<?php

use PhilippWitzmann\Testing\TestCase;

class SomeClassTest extends TestCase
{
    protected function setUpTest()
    {
        // Do Initialisation for your mocks and subject here
    }
    
    protected function tearDownTest()
    {
        // Revert any leftovers from your tests
    }
    
    public function testSomething()
    {
        $this->assertTrue(true);
    }
}

Running tests

phpunit --configuration config/phpunit.xml

Checking codestyle

phpcs