This commit is contained in:
2020-10-06 14:27:47 +07:00
commit 586be80cf6
16613 changed files with 3274099 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
paths:
tests: tests
output: tests/_output
data: tests/_data
support: tests/_support
envs: tests/_envs
actor_suffix: Tester
extensions:
enabled:
- Codeception\Extension\RunFailed

View File

@@ -0,0 +1,3 @@
modules:
enabled:
- \Helper\Dummy

View File

@@ -0,0 +1 @@
extends: ./_presets/preset.codeception.yml

View File

@@ -0,0 +1 @@
extends: ./_presets/missing.preset.codeception.yml

View File

@@ -0,0 +1,26 @@
<?php
/**
* Inherited Methods
* @method void wantToTest($text)
* @method void wantTo($text)
* @method void execute($callable)
* @method void expectTo($prediction)
* @method void expect($prediction)
* @method void amGoingTo($argumentation)
* @method void am($role)
* @method void lookForwardTo($achieveValue)
* @method void comment($description)
* @method \Codeception\Lib\Friend haveFriend($name, $actorClass = NULL)
*
* @SuppressWarnings(PHPMD)
*/
class DummyTester extends \Codeception\Actor
{
use _generated\DummyTesterActions;
/**
* Define custom actions here
*/
}

View File

@@ -0,0 +1,27 @@
<?php
namespace Helper;
// here you can define custom actions
// all public methods declared in helper class will be available in $I
use Codeception\TestInterface;
class Dummy extends \Codeception\Module
{
public function _before(TestInterface $test)
{
$this->debug($this->config);
}
public function seePathIsSet()
{
$this->assertNotEmpty($this->config['path']);
}
public function seeVarsAreSet()
{
$vars = $this->config['vars'];
$this->assertContains('val1', $vars);
$this->assertContains('val2', $vars);
}
}

View File

@@ -0,0 +1 @@
*.php

View File

@@ -0,0 +1,2 @@
presetfile: ./../_presets/preset.unit.suite.yml
class_name: DummyTester

View File

@@ -0,0 +1,11 @@
<?php
class PresetTest extends \Codeception\Test\Unit
{
public function testSomeFeature()
{
$this->assertEquals(true, true);
$this->assertNotEquals(true, false);
}
}