initial commit

This commit is contained in:
2015-09-17 22:03:15 +02:00
commit 4edcf5536e
185 changed files with 5484 additions and 0 deletions

2
tests/codeception/console/.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
# these files are auto generated by codeception build
/unit/UnitTester.php

View File

@@ -0,0 +1,16 @@
<?php
defined('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_ENV') or define('YII_ENV', 'test');
defined('YII_APP_BASE_PATH') or define('YII_APP_BASE_PATH', dirname(dirname(dirname(__DIR__))));
require_once(YII_APP_BASE_PATH . '/vendor/autoload.php');
require_once(YII_APP_BASE_PATH . '/vendor/yiisoft/yii2/Yii.php');
require_once(YII_APP_BASE_PATH . '/common/config/bootstrap.php');
require_once(YII_APP_BASE_PATH . '/console/config/bootstrap.php');
// set correct script paths
$_SERVER['SERVER_NAME'] = 'localhost';
$_SERVER['SERVER_PORT'] = '80';
Yii::setAlias('@tests', dirname(dirname(__DIR__)));

View File

@@ -0,0 +1,2 @@
*
!.gitignore

View File

@@ -0,0 +1,13 @@
namespace: tests\codeception\console
actor: Tester
paths:
tests: .
log: _output
data: _data
helpers: _support
settings:
bootstrap: _bootstrap.php
suite_class: \PHPUnit_Framework_TestSuite
colors: true
memory_limit: 1024M
log: true

View File

@@ -0,0 +1,6 @@
# Codeception Test Suite Configuration
# suite for unit (internal) tests.
# RUN `build` COMMAND AFTER ADDING/REMOVING MODULES.
class_name: UnitTester

View File

@@ -0,0 +1,11 @@
<?php
namespace tests\codeception\console\unit;
/**
* @inheritdoc
*/
class DbTestCase extends \yii\codeception\DbTestCase
{
public $appConfig = '@tests/codeception/config/console/config.php';
}

View File

@@ -0,0 +1,11 @@
<?php
namespace tests\codeception\console\unit;
/**
* @inheritdoc
*/
class TestCase extends \yii\codeception\TestCase
{
public $appConfig = '@tests/codeception/config/console/config.php';
}

View File

@@ -0,0 +1,2 @@
<?php
// Here you can initialize variables that will for your tests