PHPackages                             wsteel/tp50unit - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. wsteel/tp50unit

ActivePhpunit[Testing &amp; Quality](/categories/testing)

wsteel/tp50unit
===============

A simple unit test for thinkphp5.0

v0.1.5(7y ago)124MITPHP

Since Aug 4Pushed 7y ago1 watchersCompare

[ Source](https://github.com/wsteel/tp50unit)[ Packagist](https://packagist.org/packages/wsteel/tp50unit)[ Docs](https://github.com/wsteel/tp50unit)[ RSS](/packages/wsteel-tp50unit/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (7)Used By (0)

tp50unit , unit test for thinkphp5.0, only test
===============================================

[](#tp50unit--unit-test-for-thinkphp50-only-test)

test thinkphp5.0 app's logic by phpstorm 2018

**usage**

```
composer require wsteel/php50unit

```

**require**

```
"php": ">=7.0.0",
"topthink/framework": "5.0.*"
"phpunit/phpunit": "6.*"

```

**demo**

filename

```
tests/demo/demoTest.php

```

content

```
namespace tests\demo;

use wsteel\tp50unit\TestCase;

class demoTest extends TestCase
{

    public function testTrue()
    {
        $this->assertTrue(true);
    }

    public function testFalse()
    {
        $this->assertFalse(false, 'false');
    }

    public function testModel()
    {
        $e = \app\serverapi\model\Users::get(1)->toArray();
        $this->assertNotEmpty($e);
    }

    public function testM()
    {
        $user = model('users', 'serverapi\model');
        $e = $user->where('id', 1)->find()->toArray();
        $this->assertNotEmpty($e);
    }

    public function testDB()
    {
        $user = \think\Db::name('server_user');
        $e = $user->where('id', 1)->find();
        $this->assertNotEmpty($e);
    }

    public function testConfig()
    {
        $config = config('serverapi');
        $this->assertNotEmpty($config);
    }
}
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~9 days

Total

6

Last Release

2795d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/20486291?v=4)[wsteel](/maintainers/wsteel)[@wsteel](https://github.com/wsteel)

---

Tags

phpunitthinkphp5tp50unit

### Embed Badge

![Health badge](/badges/wsteel-tp50unit/health.svg)

```
[![Health](https://phpackages.com/badges/wsteel-tp50unit/health.svg)](https://phpackages.com/packages/wsteel-tp50unit)
```

###  Alternatives

[phpunit/phpunit

The PHP Unit Testing framework.

20.0k910.7M134.8k](/packages/phpunit-phpunit)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[johnkary/phpunit-speedtrap

Find and report on slow tests in your PHPUnit test suite

78137.2M122](/packages/johnkary-phpunit-speedtrap)[spatie/phpunit-snapshot-assertions

Snapshot testing with PHPUnit

69417.9M510](/packages/spatie-phpunit-snapshot-assertions)[dg/bypass-finals

Removes final keyword from source code on-the-fly and allows mocking of final methods and classes

56426.3M456](/packages/dg-bypass-finals)[phpspec/prophecy-phpunit

Integrating the Prophecy mocking library in PHPUnit test cases

19254.9M1.4k](/packages/phpspec-prophecy-phpunit)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
