PHPackages                             wsteel/tp60unit - 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/tp60unit

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

wsteel/tp60unit
===============

A simple unit test for thinkphp6.0

v0.0.2(6y ago)167MITPHP

Since Mar 24Pushed 6y ago1 watchersCompare

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

READMEChangelog (2)DependenciesVersions (3)Used By (0)

tp60unit , unit test for thinkphp6.0, only test
===============================================

[](#tp60unit--unit-test-for-thinkphp60-only-test)

test thinkphp6.0 app's logic by phpstorm 2020

**usage**

```
composer require wsteel/php60unit

```

**require**

```
"php": ">=7.2.0",
"topthink/framework": "6.0.*"
"phpunit/phpunit": "8.*"

```

**phpstorm setting**

File | Settings | Languages &amp; Frameworks | PHP | Test Frameworks

```
PHPUnit library -> Path to phpunit.phar -> _YOUR_phpunit-*.phar

Test Runner -> Default bootstrap file:  __YOUR_APP__\vendor\autoload.php

```

**demo**

filename

```
tests/demo/demoTest.php

```

content

```
namespace tests\demo;

use wsteel\tp60unit\TestCase;

class demoTest extends TestCase
{

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

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

    public function testModel()
    {
        $e = \app\model\User::find(1);
        dump($e);
        $this->assertNotEmpty($e);
    }

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

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

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity47

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 ~0 days

Total

2

Last Release

2246d ago

### Community

Maintainers

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

---

Tags

phpunitthinkphp6.0tp60unit

### Embed Badge

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

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

###  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)
