Download the PHP package dcodeteam/phpunit-for-bitrix without Composer
On this page you can find all versions of the php package dcodeteam/phpunit-for-bitrix. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dcodeteam/phpunit-for-bitrix
More information about dcodeteam/phpunit-for-bitrix
Files in dcodeteam/phpunit-for-bitrix
Package phpunit-for-bitrix
Short Description Based on https://github.com/osotov/phpunit-for-bitrix. Base test class for unit tests inside 1C-Bitrix framework environment
License MIT
Homepage https://github.com/dcodeteam/phpunit-for-bitrix
Informations about the package phpunit-for-bitrix
phpunit-for-bitrix
Based on osotov/phpunit-for-bitrix.
Base test class for unit tests inside 1C-Bitrix framework environment
note
This package requires latest versions of php (>= 5.5.9) and phpunit (>=4.7.0 <7.0.0)
It might work fine with latest versions (7+) but was tested only with phpunit ^6 (6.5.8).
installation
To install package, run the command below and you will get the latest version
Copy phpunit.xml.dist file from package to document root.
Set up your tests directory inside
usage
If you use old phpunit (>5.0.0) extend Dcode\Bitrix\TestCase
class in
your test cases.
This class uses mock framework Mockery to ease mock and stub creation and it uses Faker to help you with creation of dummy data.
For new php unit (>=5.0.0) use \PHPUnit\Framework\TestCase
.
All versions of phpunit-for-bitrix with dependencies
phpunit/phpunit Version >=4.7.0
mockery/mockery Version >=0.9.0
fzaninotto/faker Version 1.*