Download the PHP package timitao/behatclipboard without Composer

On this page you can find all versions of the php package timitao/behatclipboard. 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 behatclipboard

License Latest Stable Version Latest Unstable Version Total Downloads SensioLabsInsight Scrutinizer Code Quality Build Status

BehatClipboard

BehatClipboard is an integration layer between contexts in Behat 3.0+ and it provides:

Purpose of this is that, I'm testing REST API. In return I get JSON that want call universal way. I'm saving last respond to clipboard and freely call this by clipboard(last_response.body.KEY.KEY.KEY)

Flow

System generate a container that hold data. We could save there and read inside context. Clipboard will we shared between all context that implement interface Behat\ClipboardExtension\Context\ClipboardContextAwareInterface;

Extension add event for transform data in scenario with given prefix and pattern.

In default, it will look for example: clipboard(test1), where test1 is key from clipboard and replace in scenario before execute step. The transform not depend on given context.

Given Clipboard save the value "10" on key "test1"
#in next step clipboard.test1 will be transformed to 10, and send to step
And Clipboard over key "clipboard(test1)" have "10" 

Minimum functionality you need to implement in your context is saving to clipboard. Like in Behat\ClipboardExtension\Context\FeatureContext:

/**
 * @Then Clipboard save the value :arg1 on key :arg2
 *
 * @param $arg1
 * @param $arg2
 */
public function clipboardSaveTheValueOnKey($arg1, $arg2)
{
    $this->clipboard->set($arg2, $arg1);
}

Installing extension

The easiest way to install is by using Composer:

or composer.json

"require": {
    "timitao/behatclipboard": "1.0.*"
},

Action

Base context allow:

Examples

Look at this clipboard.feature

Default

We can define default values for clipboard by:

extensions:
    Behat\ClipboardExtension\ClipboardExtension:
        defaults:
            key1: value1
            key2.key2 : value2

Extra

Additionally, it assist dotNotification.

If you save array on [test=>[test2=>15]] in scenario, you could call this by

Configuration

Actually used configuration:

Suggestion

Suggested to use with Behat Assert Context.

Versioning

Staring version 1.0.0, will follow Semantic Versioning v2.0.0.

Contributors


All versions of behatclipboard with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4
behat/behat Version ~3.0,>=3.0.5
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 timitao/behatclipboard contains the following files

Loading the files please wait ....