Download the PHP package divineomega/phantomjs-laravel-testing without Composer

On this page you can find all versions of the php package divineomega/phantomjs-laravel-testing. 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 phantomjs-laravel-testing

PhantomJS Laravel Testing

The PhantomJS Laravel Testing package allows you to easily test your Laravel application's JavaScript functionality. It makes use of the PhantomJS headless browser to emulate how a real use would interact with your pages. If you have done regular Laravel testing, you'll be happy to know that this package attempts to match its syntax as much as possible.

💡 NOTE: If you're starting a new project, I recommend using Laravel Dusk instead. PhantomJS development is being suspended and will likely not receive any future updates.

Features

Requirements

Installation

  1. Add composer script "PhantomInstaller\\Installer::installPhantomJS" to composer.json post-install-cmd and post-update-cmd arrays.
  2. Install via composer require divineomega/phantomjs-laravel-testing.
  3. Add service provider DivineOmega\PhantomJSLaravelTesting\ServiceProvider::class to config/app.php providers array.
  4. Add global middleware \DivineOmega\PhantomJSLaravelTesting\Http\Middleware\GlobalMiddleware::class to app/Http/Kernel.php middleware array.

Usage

Simply change your test classes to extend PhantomJSTestCase instead of TestCase, then run your unit tests as you normally do. PhantomJS will automatically be started up when required.

An example test case is shown below.


All versions of phantomjs-laravel-testing with dependencies

PHP Build Version
Package Version
Requires laravel/framework Version 5.1.*
facebook/webdriver Version ^1.2
phpunit/phpunit Version ~4.0
jakoch/phantomjs-installer Version 2.1.1-p08
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 divineomega/phantomjs-laravel-testing contains the following files

Loading the files please wait ....