2017 © Pedro Peláez
 

library behat-sfk

Provides SFK functionality for Behat

image

realtime.eu/behat-sfk

Provides SFK functionality for Behat

  • Wednesday, April 1, 2015
  • by martijn4evers
  • Repository
  • 1 Watchers
  • 0 Stars
  • 93 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 3 % Grown

The README.md

behat-sfk

The Swiss File Knife File Tree Processor - Extension for Behat, (*1)

This is a Behat extension I created for testing some PHP code against a FTP server. At the moment this extension is only tested with the ftpserv command., (*2)

To install

  1. Include Realtime\SfkBehat\Extension as extension in your behat configuration file, see: http://docs.behat.org/guides/7.config.html#extensions, (*3)

  2. Add as subcontext:, (*4)

    • $this->useContext('subcontext_alias', new \Realtime\SfkBehat\Context());

Steps

Given a FTP server

Given a local FTP server running on port "PORT" with these options "JSON_MAP"
-or-
Given a local FTP server running on port "PORT" with these options:
"""
JSON_MAP
"""

PORT = Target port to run the FTP server on, e.g. the default port 21. JSON_MAP = JSON key > value object with the following options:, (*5)

{
  "username" : "jeff",     // run ftp server with this username
  "password" : "p@sw0rd",  // run ftp server with this password
  "pasv_ip" : "127.0.0.1"  // return this ip adres in PASV response
                              (default returns the first network interface IP found)
}

Assert FTPed file

Then FTPed file "NAME" must be created, containing:
"""
CONTENT
"""

NAME = Name of the uploaded file. CONTENT = Content of the uploaded file., (*6)

The Versions

01/04 2015

dev-master

9999999-dev

Provides SFK functionality for Behat

  Sources   Download

The Requires

 

behat sfk

01/04 2015

v1.0.0

1.0.0.0

Provides SFK functionality for Behat

  Sources   Download

The Requires

 

behat sfk