Download the PHP package proklung/phpunit-testing-tools without Composer

On this page you can find all versions of the php package proklung/phpunit-testing-tools. 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 phpunit-testing-tools

Кастомные инструменты для PHPUnit тестов

INTERNAL

Установка

composer require --dev proklung/phpunit-testing-tools

Всякое

Как построить тестовый контейнер

Создать класс:

Отнаследовать от него тест.

Подгрузятся конфиги сервисов из указанных файлов по указанному пути (относительно DOCUMENT_ROOT тестов).

Мокинг сервисов для функциональных тестов

Механизм (на базе создания прокси-сервисов по заданному списку) взят из бандла и адаптирован под локальные нужды.

BootTestKernelTrait

CommandTestCase

Базовый класс для тестирования консольных команд.

Методы:

Трэйт DefaultDataProviders

Несколько общих дата-провайдеров

Мокер функций

Обертка над.

Пример (в тесте, унаследованном от BaseTestCase):

Namespace - пространство имен, в котором мокается функция.

Или частичное моканье (в зависимости от аргументов):

При использовании этой фичи рекомендуется (во избежании проблем) на тест ставить аннотации:

Трэйт ServiceLocatorConstructorTrait

Конструктор сервис-локаторов Symfony для тестов.

Метод:

Если передать название класса в конфиге, то внутри метода класс будет инстанцирован.

Console test

Форк пакета

Или:

Прочее

Invader (из пакета)

This is how you can get the value of the private property using the invade function.

The invade function also allows you to change private values.

Using invade you can also call private functions.


All versions of phpunit-testing-tools with dependencies

PHP Build Version
Package Version
Requires phpunit/phpunit Version ^7.5.2 || ^8.0 || ^9.0
mockery/mockery Version ^1.4
fakerphp/faker Version ^1
illuminate/support Version ~6 | ~7 | ~8
illuminate/container Version ~6 | ~7 | ~8
symfony/dependency-injection Version ^4.4 || ^5.0
symfony/http-kernel Version ^4.4 || ^5.0
symfony/config Version ^4.4 || ^5.0
symfony/mailer Version ^4.4 || ^5.0
symfony/mime Version ^4.4 || ^5.0
symfony/framework-bundle Version ^4.4 || ^5.0
guzzlehttp/guzzle Version ^6.0 || ^7.0
php-mock/php-mock-mockery Version ^1.3
helmich/phpunit-json-assert Version ^3.4
estahn/phpunit-json-assertions Version ^v4.0.0
symfony/routing Version ^4.4 || ^5.0
dms/phpunit-arraysubset-asserts Version ^0.3.0
symfony/dom-crawler Version ^4.4 || ^5.0
symfony/yaml Version ^4.4 || ^5.0
symfony/property-info Version ^4.4 || ^5.0
phpstan/phpstan Version ^0.12.64 || ^1.0.0
phpstan/extension-installer Version ^1.1
phpstan/phpstan-mockery Version ^0.12.11 || ^1.0.0
phpstan/phpstan-beberlei-assert Version ^0.12.4 || ^1.0.0
phpstan/phpstan-deprecation-rules Version ^0.12.6 || ^1.0.0
phpstan/phpstan-phpunit Version ^0.12.17 || ^1.0.0
phpstan/phpstan-symfony Version ^0.12.12 || ^1.0.0
phpstan/phpstan-doctrine Version ^0.12.26 || ^1.0.0
vimeo/psalm Version ^4.8.1
psalm/plugin-symfony Version ^2.4 || ^3
psalm/plugin-mockery Version ^0.9.0
dg/bypass-finals Version ^1.3
squizlabs/php_codesniffer Version ^3.6.0
brain/monkey Version ^2.6.0
friendsofphp/proxy-manager-lts Version ^1.0
ext-json Version *
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 proklung/phpunit-testing-tools contains the following files

Loading the files please wait ....