Skip to content
Snippets Groups Projects
Commit 1726e57c authored by Sebastien's avatar Sebastien
Browse files

Merge branch 'tuleap-35-add-php-test-frameworks-dependencies' into 'main'

Add PHP test frameworks dependencies

See merge request !6
parents 5e19d8f2 3890b8d6
Branches
Tags
1 merge request!6Add PHP test frameworks dependencies
Showing
with 1299 additions and 2 deletions
namespace: App\Tests
paths:
tests: tests
output: tests/_output
data: tests/_data
support: tests/_support
envs: tests/_envs
actor_suffix: Tester
extensions:
enabled:
- Codeception\Extension\RunFailed
params:
- .env
This diff is collapsed.
{ {
"behat/gherkin": {
"version": "v4.9.0"
},
"codeception/codeception": {
"version": "4.1",
"recipe": {
"repo": "github.com/symfony/recipes-contrib",
"branch": "master",
"version": "2.3",
"ref": "30798e46831f4fc641fca83c0423918518901cd7"
},
"files": [
"codeception.yml",
"tests/_data/.gitignore",
"tests/_output/.gitignore",
"tests/_support/AcceptanceTester.php",
"tests/_support/FunctionalTester.php",
"tests/_support/Helper/Acceptance.php",
"tests/_support/Helper/Functional.php",
"tests/_support/Helper/Unit.php",
"tests/_support/UnitTester.php",
"tests/_support/_generated/.gitignore",
"tests/acceptance.suite.yml",
"tests/acceptance/.gitignore",
"tests/functional.suite.yml",
"tests/functional/.gitignore",
"tests/unit.suite.yml",
"tests/unit/.gitignore"
]
},
"codeception/lib-asserts": {
"version": "1.13.2"
},
"codeception/lib-innerbrowser": {
"version": "1.5.1"
},
"codeception/module-asserts": {
"version": "1.3.1"
},
"codeception/module-phpbrowser": {
"version": "1.0.2"
},
"codeception/module-symfony": {
"version": "2.0.5"
},
"codeception/phpunit-wrapper": {
"version": "9.0.6"
},
"codeception/stub": {
"version": "3.7.0"
},
"composer/package-versions-deprecated": { "composer/package-versions-deprecated": {
"version": "1.11.99.4" "version": "1.11.99.4"
}, },
...@@ -88,6 +139,15 @@ ...@@ -88,6 +139,15 @@
"friendsofphp/proxy-manager-lts": { "friendsofphp/proxy-manager-lts": {
"version": "v1.0.5" "version": "v1.0.5"
}, },
"guzzlehttp/guzzle": {
"version": "7.4.0"
},
"guzzlehttp/promises": {
"version": "1.5.1"
},
"guzzlehttp/psr7": {
"version": "2.1.0"
},
"laminas/laminas-code": { "laminas/laminas-code": {
"version": "4.4.3" "version": "4.4.3"
}, },
...@@ -168,12 +228,24 @@ ...@@ -168,12 +228,24 @@
"psr/event-dispatcher": { "psr/event-dispatcher": {
"version": "1.0.0" "version": "1.0.0"
}, },
"psr/http-client": {
"version": "1.0.1"
},
"psr/http-factory": {
"version": "1.0.1"
},
"psr/http-message": {
"version": "1.0.1"
},
"psr/link": { "psr/link": {
"version": "1.0.0" "version": "1.0.0"
}, },
"psr/log": { "psr/log": {
"version": "1.1.4" "version": "1.1.4"
}, },
"ralouphie/getallheaders": {
"version": "3.0.3"
},
"sebastian/cli-parser": { "sebastian/cli-parser": {
"version": "1.0.1" "version": "1.0.1"
}, },
......
*
!.gitignore
<?php
namespace App\Tests;
/**
* 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 AcceptanceTester extends \Codeception\Actor
{
use _generated\AcceptanceTesterActions;
/**
* Define custom actions here
*/
}
<?php
namespace App\Tests;
/**
* 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 FunctionalTester extends \Codeception\Actor
{
use _generated\FunctionalTesterActions;
/**
* Define custom actions here
*/
}
<?php
namespace App\Tests\Helper;
// here you can define custom actions
// all public methods declared in helper class will be available in $I
class Acceptance extends \Codeception\Module
{
}
<?php
namespace App\Tests\Helper;
// here you can define custom actions
// all public methods declared in helper class will be available in $I
class Functional extends \Codeception\Module
{
}
<?php
namespace App\Tests\Helper;
// here you can define custom actions
// all public methods declared in helper class will be available in $I
class Unit extends \Codeception\Module
{
}
<?php
namespace App\Tests;
/**
* 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 UnitTester extends \Codeception\Actor
{
use _generated\UnitTesterActions;
/**
* Define custom actions here
*/
}
*
!.gitignore
# Codeception Test Suite Configuration
#
# Suite for acceptance tests.
# Perform tests in browser using the WebDriver or PhpBrowser.
# If you need both WebDriver and PHPBrowser tests - create a separate suite.
actor: AcceptanceTester
modules:
enabled:
- PhpBrowser:
url: http://localhost:8000
- \App\Tests\Helper\Acceptance
# Codeception Test Suite Configuration
#
# Suite for functional tests
# Emulate web requests and make application process them
# Include one of framework modules (Symfony2, Yii2, Laravel5) to use it
# Remove this suite if you don't use frameworks
actor: FunctionalTester
modules:
enabled:
- Symfony:
app_path: 'src'
environment: 'test'
# - Doctrine2:
# depends: Symfony
# cleanup: true
- \App\Tests\Helper\Functional
# Codeception Test Suite Configuration
#
# Suite for unit or integration tests.
actor: UnitTester
modules:
enabled:
- Asserts
- \App\Tests\Helper\Unit
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment