Download the PHP package i22/functional-test-bundle without Composer

On this page you can find all versions of the php package i22/functional-test-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package functional-test-bundle

i22 Functional Test Bundle

A Symfony bundle to simplify functional testing with the help of AliceBundle.

Table of contents:

Installation

  1. Download the Bundle

  2. Enable the Bundle

    With Symfony 3.x adding the Bundle to app/AppKernel.php

    With Symfony 4.x adding the Bundle to config/bundles.php\ (Should be done with auto-configuration, but activated for all environments)

Basic usage

Loading fixtures for each test class

Instead of setting up the database with one big fixture file for all tests you can define seperate small fixture-sets customized for your test case.

Setup your Test Class to extend from WebTestCase

In order to load your customized fixtures automatically place a fixture folder with your fixtures beneath your test file

If you want do define from where to load your fixtures, you can override the method getFixtureFilePaths()

Authorize User

in case u need to authorize a user for your functional test, you can use the UserAuthorizationTrait to login the user.

the login method assumes that your firewall is named 'default'. in other cases use the second argument of the login method to specify how your firewall is named.

No Translator - working with translation keys

the bundle autoconfigures a FakeTranslator in test environment as the @default.translator service, so that instead of translating your translation keys, the translator will respond the original key.

for testing purpose it is usefull to test against the key instead of changing translations.

if you want to disable this feature, change the default configuration as follows:

Disabled auto csrf protection for forms

the bundle autoconfigures the symfony form with disabling the auto protection of forms instead of disabling the whole csrf protection services. so you are able to still use the csrf token manager to generate and use tokens for validation, but it simplifies the form post handling, because you dont need to add the _token value

if you want to disable this feature, change the default configuration as follows:


All versions of functional-test-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0.0
doctrine/data-fixtures Version ^1.3
hautelook/alice-bundle Version ^2.0
symfony/framework-bundle Version ^4.4
symfony/phpunit-bridge Version ^4.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package i22/functional-test-bundle contains the following files

Loading the files please wait ....