https://github.com/sergeymakinen/yii2-tests
Common Yii 2 extension tests stuff
https://github.com/sergeymakinen/yii2-tests
php php-library phpunit test tests unit-testing unittest yii2 yii2-extension
Last synced: 4 months ago
JSON representation
Common Yii 2 extension tests stuff
- Host: GitHub
- URL: https://github.com/sergeymakinen/yii2-tests
- Owner: sergeymakinen
- License: mit
- Archived: true
- Created: 2016-12-02T23:27:33.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-09-15T20:21:08.000Z (over 4 years ago)
- Last Synced: 2025-01-12T10:40:01.724Z (4 months ago)
- Topics: php, php-library, phpunit, test, tests, unit-testing, unittest, yii2, yii2-extension
- Language: PHP
- Homepage:
- Size: 55.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Yii 2 tests stuff
Common Yii 2 extension tests stuff. I use it in my extension tests but you're also free to use. :)
[](https://scrutinizer-ci.com/g/sergeymakinen/yii2-tests) [](https://travis-ci.org/sergeymakinen/yii2-tests) [](https://codecov.io/gh/sergeymakinen/yii2-tests) [](https://insight.sensiolabs.com/projects/406a3388-8e6c-4979-a943-b1ad1b8aeed4)
[](https://packagist.org/packages/sergeymakinen/yii2-tests) [](https://packagist.org/packages/sergeymakinen/yii2-tests) [](LICENSE)
## Installation
The preferred way to install this extension is through [composer](https://getcomposer.org/download/).
Either run
```bash
composer require --dev "sergeymakinen/yii2-tests:^2.0"
```or add
```json
"sergeymakinen/yii2-tests": "^2.0"
```to the require-dev section of your `composer.json` file.
## Usage
```php
class MyClassTest extends \sergeymakinen\yii\tests\TestCase
{
// Use protected methods defined in the TestCase class
}
```