/tester

tester - Платформа модульного тестирования для JPHP и JPPM

Primary LanguagePHPApache License 2.0Apache-2.0

Tester

Build Status

Unit Testing Framework for JPPM

How to use?

  1. Add tester dependency to devDeps.
jppm add tester -dev
  1. Create tests directory in root of your package dir.
  2. Create your first test class, e.g tests/SimpleTest.php:
use tester\{TestCase, Assert};

class SimpleTest extends TestCase 
{
  function testFeature()
  {
    $actual = "expected";
    
    Assert::isEqual("expected", $actual);
  }
}
  1. Run your tests.
jppm test