Download the PHP
package draw/tester without Composer
On this page you can find all versions of the php package
draw/tester. It is possible to download/install
these versions without Composer. Possible dependencies are resolved
automatically.
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.
This package provide a set of tools to help you test your application.
Data Tester
This library is a wrapper around PHPUnit Assert class to be able to use a fluent interface on the data you want to test.
Here is a quick example of how to use it in a PHPUnit TestCase:
PHPUnit Extension
This package also provide a PHPUnit extension to make it easier to write test.
CarbonReset
If you are using Carbon in your project, you might want to reset the Carbon class between each test to make sure you have a consistent state.
Register the extension in your phpunit configuration file.
This will reset your carbon class between each test and test suite like it would in TestCass::tearDown and TestCass::tearDownAfterClass.
SetUpAutowire
A bit like the Service auto wiring would work via a service container, this extension allow you to autowire properties
base on attribute that implement AutowireInterface.
Make sure to register is in your phpunit configuration file.
Once this is done, your test need to implement the AutowiredInterface interface so the extension will hook it.
Having the extension by itself doesn't do much, you need to put some attribute on the property you need to autowire.
Note that the autowired system doesn't work on static properties.
This might seem a bit useless, but in a framework context using service it will more sense.
The AutowireService from draw/tester-bundle is a good example of this in Symfony.
Since the auto wiring is done in the setUp hook of phpunit extension you cannot use them in the setup method of you test.
If you need to access those property in your setUp method, you can use the AutowiredCompletionAwareInterface instead.
Creating you own Autowire attribute
You can create your own attribute to autowire your own property.
You just need to create an attribute that implement the AutowireInterface interface.
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 draw/tester contains the following files
Loading the files please wait ....
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.