scabbiafw/scabbia2-testing

This package is abandoned and no longer maintained. The author suggests using the eserozvataf/scabbia2-testing package instead.

Scabbia2 Testing Component

v0.1.5 2015-09-24 10:05 UTC

This package is not auto-updated.

Last update: 2022-02-01 12:51:01 UTC


README

This component provides a code testing framework and environment. Simply execute ./vendor/bin/scabbia scabbia:testing:test to start unit tests.

Build Status Scrutinizer Code Quality Total Downloads Latest Stable Version Latest Unstable Version Documentation Status

Usage

Writing a Test Fixture

namespace MyProject\Tests;

use Scabbia\Testing\UnitTestFixture;

class MyTest extends UnitTestFixture {
    protected $parser;

    protected function setUp() {
        $this->parser = new \Scabbia\Yaml\Parser\Parser();
    }

    protected function tearDown() {
        $this->parser = null;
    }

    public function testCase1() {
        $this->assertEquals('a', 'a');
    }

    public function testCase2() {
        $this->expectException('Scabbia\\Yaml\\ParseException');

        $this->parser->parse('/&afasda:sd|_*a');
    }
}

Links

Contributing

It is publicly open for any contribution. Bugfixes, new features and extra modules are welcome. All contributions should be filed on the eserozvataf/scabbia2-testing repository.

  • To contribute to code: Fork the repo, push your changes to your fork, and submit a pull request.
  • To report a bug: If something does not work, please report it using GitHub issues.
  • To support: Donate