Download the PHP package braincrafted/testing-bundle without Composer

On this page you can find all versions of the php package braincrafted/testing-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 testing-bundle

BraincraftedTestingBundle

Handcrafted in Vienna by Florian Eckerstorfer.

About

This bundle currently provides an abstract class to better isolate functional tests of Symfony2 applications. The WebTestCase class drops the schema, recreates it and loads all fixture files. Currently DoctrineFixturesBundle is a required dependency of this bundle.

At some point this bundle may contain other useful classes, services and helpers related to testing.

Installation

You need to add bundle to your composer.json file:

Tip: You should replace @stable with a specific version.

Compatibility

TestingBundle is developed to always work with the latest version of Symfony. The following table helps you choose the right version of TestingBundle.

Symfony version TestingBundle version
v2.3.* v0.1.*
v2.4.*-v2.5.* v0.2.*-v0.3.*
v2.6+ v0.4+

The master branch has been updated to be compatible with Symfony 2.3. If you are using Symfony <2.3 you can use the 0.1 branch.

Add the bundle to your kernel (only activate the bundle in the dev and test environment, you don't need to have it activated in the production environment):

Usage

The test cases that you want isolate must extend Braincrafted\Bundle\TestingBundle\Test\WebTestCase.

By default WebTestCase provides a setUp() and a tearDown() method that boot respectively shut down the kernel. However, if you have your own setUp() and/or tearDown() methods in your test case you need to manually do this.

If you require a client in your test case, you can use the createClient() method:

createClient() will call setUpKernel() when no kernel is available at this point.

You can also access the dependency injection container of the kernel:

Render Crawler HTML

The WebTestCase class also has an nice helper method that returns the HTML code of a crawler. You can use it in all test cases that subclass Braincrafted\Bundle\TestingBundle\Test\WebTestCase:

Testing Translation Keys

BraincraftedTestingBundle installs an alternative translator that is only activated in the test environment. This translator returns the translation key instead of the translated text. That way you can use the translation keys in your functional tests instead of the translated text.

Change Log

Version 0.4.2 (15 February 2016)

Version 0.4.1 (20 April 2015)

Version 0.4 (6 February 2015)

Version 0.3.3 (6 February 2015)

Version 0.3.2 (26 October 2014)

Version 0.3.1 (25 August 2014)

Version 0.3 (18 November 2013)

License

The MIT License (MIT)

Copyright (c) 2012-2015 Florian Eckerstorfer

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


All versions of testing-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.3
symfony/symfony Version >=2.6
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 braincrafted/testing-bundle contains the following files

Loading the files please wait ....