Skip to content

Unit Testing Framework for JPHP and JPPM

License

Notifications You must be signed in to change notification settings

jphp-group/tester

Repository files navigation

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