Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jphp-group/tester
Unit Testing Framework for JPHP and JPPM
https://github.com/jphp-group/tester
jphp php testing unit-testing unittest
Last synced: about 10 hours ago
JSON representation
Unit Testing Framework for JPHP and JPPM
- Host: GitHub
- URL: https://github.com/jphp-group/tester
- Owner: jphp-group
- License: apache-2.0
- Created: 2018-05-08T13:04:17.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-29T19:14:40.000Z (over 4 years ago)
- Last Synced: 2024-11-02T16:35:57.622Z (4 days ago)
- Topics: jphp, php, testing, unit-testing, unittest
- Language: PHP
- Homepage:
- Size: 20.5 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-jphp - Tester - a unit test framework for jphp and jppm. (Uncategorized / Uncategorized)
README
# Tester
[![Build Status](https://travis-ci.org/jphp-group/tester.svg?branch=master)](https://travis-ci.org/jphp-group/tester)
Unit Testing Framework for JPPM
# How to use?
1. Add `tester` dependency to `devDeps`.
```
jppm add tester -dev
```2. Create `tests` directory in root of your package dir.
3. Create your first test class, e.g `tests/SimpleTest.php`:```php
use tester\{TestCase, Assert};class SimpleTest extends TestCase
{
function testFeature()
{
$actual = "expected";
Assert::isEqual("expected", $actual);
}
}
```4. Run your tests.
```bash
jppm test
```