Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

gem structure and some notice fixes

  • Loading branch information...
commit 14316e6f98d7cb917bc488b786bff5bffdc35caf 1 parent 96aca43
Alessandro Dal Grande aledalgrande authored
Showing with 83 additions and 5,951 deletions.
  1. +0 −2  .document
  2. +3 −1 .gitignore
  3. +7 −0 Gemfile
  4. 0  README → README.md
  5. +44 −33 Rakefile
  6. +7 −0 bin/cucumber_php
  7. +0 −28 cuke4php
  8. +1 −1  features/support/Env.php
  9. +16 −14 lib/CucumberScenario.php
  10. +3 −5 lib/CucumberSteps.php
  11. +1 −4 lib/Cuke4Php.php
  12. +1 −1  bin/cuke4php.php → php_bin/cuke4php
  13. +0 −329 phpdoc/Cuke4Php/CucumberScenario.html
  14. +0 −547 phpdoc/Cuke4Php/CucumberScenarioTest.html
  15. +0 −399 phpdoc/Cuke4Php/CucumberSteps.html
  16. +0 −484 phpdoc/Cuke4Php/Cuke4Php.html
  17. +0 −385 phpdoc/Cuke4Php/Cuke4PhpTest.html
  18. +0 −171 phpdoc/Cuke4Php/TestException.html
  19. +0 −441 phpdoc/Cuke4Php/TestSteps.html
  20. +0 −476 phpdoc/Cuke4Php/WireSteps.html
  21. +0 −62 phpdoc/Cuke4Php/_bin---cuke4php.php.html
  22. +0 −60 phpdoc/Cuke4Php/_features---step_definitions---TestSteps.php.html
  23. +0 −60 phpdoc/Cuke4Php/_features---step_definitions---WireSteps.php.html
  24. +0 −61 phpdoc/Cuke4Php/_features---support---Env.php.html
  25. +0 −61 phpdoc/Cuke4Php/_lib---Cucumber.php.html
  26. +0 −88 phpdoc/Cuke4Php/_lib---CucumberScenario.php.html
  27. +0 −60 phpdoc/Cuke4Php/_lib---CucumberSteps.php.html
  28. +0 −60 phpdoc/Cuke4Php/_lib---Cuke4Php.php.html
  29. +0 −110 phpdoc/Cuke4Php/_tests---lib---CucumberScenarioTest.php.html
  30. +0 −88 phpdoc/Cuke4Php/_tests---lib---Cuke4PhpTest.php.html
  31. +0 −13 phpdoc/blank.html
  32. +0 −42 phpdoc/classtrees_Cuke4Php.html
  33. +0 −762 phpdoc/elementindex.html
  34. +0 −759 phpdoc/elementindex_Cuke4Php.html
  35. +0 −22 phpdoc/errors.html
  36. +0 −24 phpdoc/index.html
  37. +0 −50 phpdoc/li_Cuke4Php.html
  38. +0 −32 phpdoc/media/banner.css
  39. +0 −144 phpdoc/media/stylesheet.css
  40. +0 −27 phpdoc/packages.html
  41. +0 −45 rakefile.rb
2  .document
View
@@ -1,5 +1,3 @@
-README.rdoc
-lib/**/*.rb
bin/*
features/**/*.feature
LICENSE
4 .gitignore
View
@@ -1,2 +1,4 @@
.idea
-._*
+._*
+pkg
+Gemfile.lock
7 Gemfile
View
@@ -0,0 +1,7 @@
+source "http://rubygems.org"
+
+group :development do
+ gem 'bundler', '~> 1.0'
+end
+
+gem 'cucumber'
0  README → README.md
View
File renamed without changes
77 Rakefile
View
@@ -5,49 +5,60 @@ begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "cuke4php"
- gem.summary = %Q{TODO: one-line summary of your gem}
- gem.description = %Q{TODO: longer description of your gem}
- gem.email = "aledalgrande@develon.com"
- gem.homepage = "http://github.com/aledalgrande/cuke4php"
- gem.authors = ["Alessandro Dal Grande"]
- gem.add_development_dependency "thoughtbot-shoulda", ">= 0"
- # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
+ gem.summary = %Q{Implementation of the Cucumber wire protocol for PHP projects}
+ gem.description = %Q{Using this protocol it is possible to directly interact with PHP code at any level without the need for a web server. To accomplish this, when cucumber is running against a directory containing feature files and it cannot resolve a particular step definition, it will ask a known wire server (as defined in a .wire file) to interpret and run those steps.}
+ gem.email = "aledalgrande@gmail.com"
+ gem.homepage = "http://github.com/olbrich/cuke4php"
+ gem.authors = ["Kevin Olbrich", "Alessandro Dal Grande"]
+ gem.executables = 'cucumber_php'
+ gem.files.exclude 'phpdoc'
+ gem.post_install_message =<<eos
+********************************************************************************
+
+ Please install PHPUnit >= 3.5 if you've not already done it!
+
+ Add PEAR channels:
+ pear channel-discover pear.phpunit.de
+ pear channel-discover components.ez.no
+ pear channel-discover pear.symfony-project.com
+
+ Install PHPUnit:
+ pear install phpunit/PHPUnit
+
+********************************************************************************
+eos
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end
-require 'rake/testtask'
-Rake::TestTask.new(:test) do |test|
- test.libs << 'lib' << 'test'
- test.pattern = 'test/**/test_*.rb'
- test.verbose = true
-end
+require 'cucumber/rake/task'
+Cucumber::Rake::Task.new(:features)
-begin
- require 'rcov/rcovtask'
- Rcov::RcovTask.new do |test|
- test.libs << 'test'
- test.pattern = 'test/**/test_*.rb'
- test.verbose = true
- end
-rescue LoadError
- task :rcov do
- abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
- end
+task :default => :features
+
+namespace :server do
+
+ desc "start cuke4php server"
+ task :start do
+ sh "#{File.dirname(__FILE__)}/php_bin/cuke4php #{ARGV.first ? ARGV.first : 'features'} &"
+ end
+
+ desc "stop cuke4php server"
+ task :stop do
+ sh "echo 'quit' | nc #{ENV['SERVER'] || 'localhost'} #{ENV['PORT'] || 16816}"
+ end
end
-task :test => :check_dependencies
+namespace :doc do
-task :default => :test
+ task :default => :phpdoc
-require 'rake/rdoctask'
-Rake::RDocTask.new do |rdoc|
- version = File.exist?('VERSION') ? File.read('VERSION') : ""
+ desc "Generate PhpDocs -- requires PhpDocumentor"
+ task :phpdoc do
+ sh "rm -rf phpdoc/"
+ sh "phpdoc -f *.php -d ./lib -t phpdoc/ --title Cuke4Php -dn Cuke4Php -dc Cuke4Php -it @one,@two,@wire"
+ end
- rdoc.rdoc_dir = 'rdoc'
- rdoc.title = "cuke4php #{version}"
- rdoc.rdoc_files.include('README*')
- rdoc.rdoc_files.include('lib/**/*.rb')
end
7 bin/cucumber_php
View
@@ -0,0 +1,7 @@
+#!/usr/bin/env ruby
+require 'rake'
+
+sh "#{File.dirname(__FILE__)}/../php_bin/cuke4php #{ARGV.last ? ARGV.last : 'features'} &"
+sleep 1
+sh "cucumber #{ARGV.join(' ')}"
+sh "echo 'quit' | nc localhost 16816"
28 cuke4php
View
@@ -1,28 +0,0 @@
-#!/bin/bash
-
-usage() {
- cat <<EOT
-Usage: $0 <features_directory>
- Starts the Cuke4Php server
- -p <port> set the prot to listen to, defaults to 16816
- -h help
-EOT
-}
-
-
-while getopts "hp:" opt; do
- case $opt in
- h)
- usage
- exit 0
- ;;
- p)
- PORT=$OPTARG
- ;;
- \?)
- echo "Invalid option: -$OPTARG" >&2
- ;;
- esac
-done
-cd `dirname $0`
-bin/cuke4php.php -p $PORT ${!OPTIND}
2  features/support/Env.php
View
@@ -6,6 +6,6 @@
/**
* load the PHPUnit framework
*/
-require_once "PHPUnit/Framework.php";
+require_once "PHPUnit/Autoload.php";
?>
30 lib/CucumberScenario.php
View
@@ -60,13 +60,14 @@ static function setInstance($oMock) {
*/
function invokeBeforeHooks($aTags) {
foreach ($this->aWorld['before'] as $aBeforeHook) {
- if (count($aBeforeHook['tags']) == 0 || count(array_intersect($aTags, $aBeforeHook['tags'])) > 0) {
- $oStep = CucumberSteps::getInstance($aBeforeHook['class'], $this->aGlobals);
- $oResult = $oStep->invoke($aBeforeHook['method']);
- if ($oResult === false) {
- return array('failure');
- }
- }
+ if (array_key_exists('tags', $aBeforeHook))
+ if (count($aBeforeHook['tags']) == 0 || count(array_intersect($aTags, $aBeforeHook['tags'])) > 0) {
+ $oStep = CucumberSteps::getInstance($aBeforeHook['class'], $this->aGlobals);
+ $oResult = $oStep->invoke($aBeforeHook['method']);
+ if ($oResult === false) {
+ return array('failure');
+ }
+ }
}
return array('success');
}
@@ -78,13 +79,14 @@ function invokeBeforeHooks($aTags) {
*/
function invokeAfterHooks($aTags) {
foreach ($this->aWorld['after'] as $aAfterHook) {
- if (count($aAfterHook['tags']) == 0 || count(array_intersect($aTags, $aAfterHook['tags'])) > 0) {
- $oStep = CucumberSteps::getInstance($aAfterHook['class'], $this->aGlobals);
- $oResult = $oStep->invoke($aAfterHook['method']);
- if ($oResult === false) {
- return array('failure');
- }
- }
+ if (array_key_exists('tags', $aAfterHook))
+ if (count($aAfterHook['tags']) == 0 || count(array_intersect($aTags, $aAfterHook['tags'])) > 0) {
+ $oStep = CucumberSteps::getInstance($aAfterHook['class'], $this->aGlobals);
+ $oResult = $oStep->invoke($aAfterHook['method']);
+ if ($oResult === false) {
+ return array('failure');
+ }
+ }
}
return array('success');
}
8 lib/CucumberSteps.php
View
@@ -25,11 +25,9 @@ public static function markPending($sMessage = "Not Implemented") {
self::markTestIncomplete($sMessage);
}
- public static function getSubclasses()
- {
+ public static function getSubclasses() {
$aClasses = array();
- foreach (get_declared_classes() as $sClassName)
- {
+ foreach (get_declared_classes() as $sClassName) {
if (is_subclass_of($sClassName, 'CucumberSteps') && (stripos($sClassName,"Mock") === false))
$aClasses[] = $sClassName;
}
@@ -70,7 +68,7 @@ static function clearMocks() {
* or an instance of the appropriate step class with the globals initialized
*/
static function getInstance($sClass, $aGlobals) {
- if (self::$aMocks[$sClass]) {
+ if (array_key_exists($sClass, self::$aMocks) && self::$aMocks[$sClass]) {
return self::$aMocks[$sClass];
} else {
return new $sClass($aGlobals);
5 lib/Cuke4Php.php
View
@@ -108,7 +108,6 @@ function run() {
$this->bRun = true;
while ($this->bRun && ($connection = socket_accept($this->oSocket))) {
socket_getpeername($connection, $raddr, $rport);
- print "Received Connection from $raddr:$rport\n";
while ($this->bRun && ($input = socket_read($connection, 1024 * 4))) {
$data = trim($input);
if ($data !== "") {
@@ -116,14 +115,12 @@ function run() {
socket_write($connection, $output);
}
}
- print "closing connection\n";
socket_close($connection);
sleep(1);
}
}
function process($sInput) {
- echo "$sInput\n";
switch ($sInput) {
case "quit":
case "bye":
@@ -232,7 +229,7 @@ function snippetText($aSnippet) {
$sMethodBody = <<<EOT
/**
-* {$aSnippet->step_keyword}/^$sStepName$/
+* {$aSnippet->step_keyword} /^$sStepName$/
**/
public function $sMethodName($sParams) {
self::markPending();
2  bin/cuke4php.php → php_bin/cuke4php
View
@@ -5,7 +5,7 @@
* @package Cuke4Php
*/
-require_once 'PHPUnit/Framework.php';
+require_once 'PHPUnit/Autoload.php';
/**
* load the Cuke4Php server
*/
329 phpdoc/Cuke4Php/CucumberScenario.html
View
@@ -1,329 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <!-- template designed by Marco Von Ballmoos -->
- <title>Docs For Class CucumberScenario</title>
- <link rel="stylesheet" href="../media/stylesheet.css" />
- <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
- </head>
- <body>
- <div class="page-body">
-<h2 class="class-name">Class CucumberScenario</h2>
-
-<a name="sec-description"></a>
-<div class="info-box">
- <div class="info-box-title">Description</div>
- <div class="nav-bar">
- <span class="disabled">Description</span> |
- <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
- | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
-
- </div>
- <div class="info-box-body">
- <!-- ========== Info from phpDoc block ========= -->
-<p class="short-description">class CucumberScenario</p>
-<p class="description"><p>Defines a Cucumber Scenario</p></p>
- <p class="notes">
- Located in <a class="field" href="_lib---CucumberScenario.php.html">/lib/CucumberScenario.php</a> (line <span class="field">16</span>)
- </p>
-
-
- <pre></pre>
-
- </div>
-</div>
-
-
-
- <a name="sec-var-summary"></a>
- <div class="info-box">
- <div class="info-box-title">Variable Summary</span></div>
- <div class="nav-bar">
- <a href="#sec-description">Description</a> |
- <span class="disabled">Vars</span> (<a href="#sec-vars">details</a>)
- |
- <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
-
- </div>
- <div class="info-box-body">
- <div class="var-summary">
- <div class="var-title">
- <span class="var-type">mixed</span>
- <a href="#$aGlobals" title="details" class="var-name">$aGlobals</a>
- </div>
- </div>
- </div>
- </div>
-
- <a name="sec-method-summary"></a>
- <div class="info-box">
- <div class="info-box-title">Method Summary</span></div>
- <div class="nav-bar">
- <a href="#sec-description">Description</a> |
- <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
-
- |
- <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
- </div>
- <div class="info-box-body">
- <div class="method-summary">
- <div class="method-definition">
- static <span class="method-result"><a href="../Cuke4Php/CucumberScenario.html">CucumberScenario</a></span>
- <a href="#getInstance" title="details" class="method-name">getInstance</a>
- (<span class="var-type">$aWorld</span>&nbsp;<span class="var-name">$aWorld</span>)
- </div>
- <div class="method-definition">
- static <span class="method-result">void</span>
- <a href="#setInstance" title="details" class="method-name">setInstance</a>
- (<span class="var-type">$oMock</span>&nbsp;<span class="var-name">$oMock</span>)
- </div>
-
- <div class="method-definition">
- <span class="method-result">void</span>
- <a href="#__construct" title="details" class="method-name">__construct</a>
- ([<span class="var-type">array</span>&nbsp;<span class="var-name">$_aWorld</span> = <span class="var-default">array()</span>])
- </div>
- <div class="method-definition">
- <span class="method-result">mixed</span>
- <a href="#invoke" title="details" class="method-name">invoke</a>
- (<span class="var-type">$iStepId</span>&nbsp;<span class="var-name">$iStepId</span>, <span class="var-type">$aArgs</span>&nbsp;<span class="var-name">$aArgs</span>)
- </div>
- <div class="method-definition">
- <span class="method-result">array</span>
- <a href="#invokeAfterHooks" title="details" class="method-name">invokeAfterHooks</a>
- (<span class="var-type">$aTags</span>&nbsp;<span class="var-name">$aTags</span>)
- </div>
- <div class="method-definition">
- <span class="method-result">array</span>
- <a href="#invokeBeforeHooks" title="details" class="method-name">invokeBeforeHooks</a>
- (<span class="var-type">$aTags</span>&nbsp;<span class="var-name">$aTags</span>)
- </div>
- </div>
- </div>
- </div>
-
- <a name="sec-vars"></a>
- <div class="info-box">
- <div class="info-box-title">Variables</div>
- <div class="nav-bar">
- <a href="#sec-description">Description</a> |
- <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>)
-
-
- |
- <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
-
- </div>
- <div class="info-box-body">
- <a name="var$aGlobals" id="$aGlobals"><!-- --></A>
-<div class="oddrow">
-
- <div class="var-header">
- <span class="var-title">
- <span class="var-type">mixed</span>
- <span class="var-name">$aGlobals</span>
- = <span class="var-default">array()</span> (line <span class="line-number">19</span>)
- </span>
- </div>
-
- <!-- ========== Info from phpDoc block ========= -->
- <ul class="tags">
- <li><span class="field">access:</span> public</li>
- </ul>
-
-
-
-
-
-</div>
-
- </div>
- </div>
-
- <a name="sec-methods"></a>
- <div class="info-box">
- <div class="info-box-title">Methods</div>
- <div class="nav-bar">
- <a href="#sec-description">Description</a> |
- <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
- <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
-
- </div>
- <div class="info-box-body">
- <A NAME='method_detail'></A>
-<a name="methodgetInstance" id="getInstance"><!-- --></a>
-<div class="evenrow">
-
- <div class="method-header">
- <span class="method-title">static method getInstance</span> (line <span class="line-number">39</span>)
- </div>
-
- <!-- ========== Info from phpDoc block ========= -->
-
- <div class="method-signature">
- static
- <span class="method-result"><a href="../Cuke4Php/CucumberScenario.html">CucumberScenario</a></span>
- <span class="method-name">
- getInstance
- </span>
- (<span class="var-type">$aWorld</span>&nbsp;<span class="var-name">$aWorld</span>)
- </div>
-
- <ul class="parameters">
- <li>
- <span class="var-type">$aWorld</span>
- <span class="var-name">$aWorld</span> </li>
- </ul>
-
-
- </div>
-<a name="methodsetInstance" id="setInstance"><!-- --></a>
-<div class="oddrow">
-
- <div class="method-header">
- <span class="method-title">static method setInstance</span> (line <span class="line-number">52</span>)
- </div>
-
- <!-- ========== Info from phpDoc block ========= -->
-
- <div class="method-signature">
- static
- <span class="method-result">void</span>
- <span class="method-name">
- setInstance
- </span>
- (<span class="var-type">$oMock</span>&nbsp;<span class="var-name">$oMock</span>)
- </div>
-
- <ul class="parameters">
- <li>
- <span class="var-type">$oMock</span>
- <span class="var-name">$oMock</span> </li>
- </ul>
-
-
- </div>
-
-<a name="method__construct" id="__construct"><!-- --></a>
-<div class="evenrow">
-
- <div class="method-header">
- <span class="method-title">Constructor __construct</span> (line <span class="line-number">30</span>)
- </div>
-
- <!-- ========== Info from phpDoc block ========= -->
-
- <div class="method-signature">
- <span class="method-result">void</span>
- <span class="method-name">
- __construct
- </span>
- ([<span class="var-type">array</span>&nbsp;<span class="var-name">$_aWorld</span> = <span class="var-default">array()</span>])
- </div>
-
- <ul class="parameters">
- <li>
- <span class="var-type">array</span>
- <span class="var-name">$_aWorld</span> </li>
- </ul>
-
-
- </div>
-<a name="methodinvoke" id="invoke"><!-- --></a>
-<div class="oddrow">
-
- <div class="method-header">
- <span class="method-title">invoke</span> (line <span class="line-number">102</span>)
- </div>
-
- <!-- ========== Info from phpDoc block ========= -->
- <ul class="tags">
- <li><span class="field">return:</span> Invokes a step. Steps can use PHPUnit assertions and will mark themselves as pending if the self::markTestIncomplete() or self:markTestSkipped() functions are called. Failed expectations are returned as messages while all other Exceptions are reported back as exceptions.</li>
- </ul>
-
- <div class="method-signature">
- <span class="method-result">mixed</span>
- <span class="method-name">
- invoke
- </span>
- (<span class="var-type">$iStepId</span>&nbsp;<span class="var-name">$iStepId</span>, <span class="var-type">$aArgs</span>&nbsp;<span class="var-name">$aArgs</span>)
- </div>
-
- <ul class="parameters">
- <li>
- <span class="var-type">$iStepId</span>
- <span class="var-name">$iStepId</span> </li>
- <li>
- <span class="var-type">$aArgs</span>
- <span class="var-name">$aArgs</span> </li>
- </ul>
-
-
- </div>
-<a name="methodinvokeAfterHooks" id="invokeAfterHooks"><!-- --></a>
-<div class="evenrow">
-
- <div class="method-header">
- <span class="method-title">invokeAfterHooks</span> (line <span class="line-number">79</span>)
- </div>
-
- <!-- ========== Info from phpDoc block ========= -->
- <ul class="tags">
- <li><span class="field">return:</span> invoke all after hooks defined that either have no tags, or tags that match the tags of the current scenario</li>
- </ul>
-
- <div class="method-signature">
- <span class="method-result">array</span>
- <span class="method-name">
- invokeAfterHooks
- </span>
- (<span class="var-type">$aTags</span>&nbsp;<span class="var-name">$aTags</span>)
- </div>
-
- <ul class="parameters">
- <li>
- <span class="var-type">$aTags</span>
- <span class="var-name">$aTags</span> </li>
- </ul>
-
-
- </div>
-<a name="methodinvokeBeforeHooks" id="invokeBeforeHooks"><!-- --></a>
-<div class="oddrow">
-
- <div class="method-header">
- <span class="method-title">invokeBeforeHooks</span> (line <span class="line-number">61</span>)
- </div>
-
- <!-- ========== Info from phpDoc block ========= -->
- <ul class="tags">
- <li><span class="field">return:</span> invokes all the before hooks defined that either have no tags or tags corresponding to this scenario's tags</li>
- </ul>
-
- <div class="method-signature">
- <span class="method-result">array</span>
- <span class="method-name">
- invokeBeforeHooks
- </span>
- (<span class="var-type">$aTags</span>&nbsp;<span class="var-name">$aTags</span>)
- </div>
-
- <ul class="parameters">
- <li>
- <span class="var-type">$aTags</span>
- <span class="var-name">$aTags</span> </li>
- </ul>
-
-
- </div>
-
- </div>
- </div>
-
-
- <p class="notes" id="credit">
- Documentation generated on Thu, 30 Dec 2010 23:25:49 -0500 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
- </p>
- </div></body>
-</html>
547 phpdoc/Cuke4Php/CucumberScenarioTest.html
View
@@ -1,547 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <!-- template designed by Marco Von Ballmoos -->
- <title>Docs For Class CucumberScenarioTest</title>
- <link rel="stylesheet" href="../media/stylesheet.css" />
- <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
- </head>
- <body>
- <div class="page-body">
-<h2 class="class-name">Class CucumberScenarioTest</h2>
-
-<a name="sec-description"></a>
-<div class="info-box">
- <div class="info-box-title">Description</div>
- <div class="nav-bar">
- <span class="disabled">Description</span> |
- <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
- | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
-
- </div>
- <div class="info-box-body">
- <!-- ========== Info from phpDoc block ========= -->
-<p class="short-description">class CucumberScenarioTest</p>
- <p class="notes">
- Located in <a class="field" href="_tests---lib---CucumberScenarioTest.php.html">/tests/lib/CucumberScenarioTest.php</a> (line <span class="field">28</span>)
- </p>
-
-
- <pre>PHPUnit_Framework_TestCase
- |
- --CucumberScenarioTest</pre>
-
- </div>
-</div>
-
-
-
- <a name="sec-var-summary"></a>
- <div class="info-box">
- <div class="info-box-title">Variable Summary</span></div>
- <div class="nav-bar">
- <a href="#sec-description">Description</a> |
- <span class="disabled">Vars</span> (<a href="#sec-vars">details</a>)
- |
- <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
-
- </div>
- <div class="info-box-body">
- <div class="var-summary">
- <div class="var-title">
- <span class="var-type">mixed</span>
- <a href="#$aTags" title="details" class="var-name">$aTags</a>
- </div>
- <div class="var-title">
- <span class="var-type">mixed</span>
- <a href="#$aWorld" title="details" class="var-name">$aWorld</a>
- </div>
- <div class="var-title">
- <span class="var-type">mixed</span>
- <a href="#$oMockHook" title="details" class="var-name">$oMockHook</a>
- </div>
- <div class="var-title">
- <span class="var-type">mixed</span>
- <a href="#$oScenario" title="details" class="var-name">$oScenario</a>
- </div>
- </div>
- </div>
- </div>
-
- <a name="sec-method-summary"></a>
- <div class="info-box">
- <div class="info-box-title">Method Summary</span></div>
- <div class="nav-bar">
- <a href="#sec-description">Description</a> |
- <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
-
- |
- <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
- </div>
- <div class="info-box-body">
- <div class="method-summary">
-
- <div class="method-definition">
- <span class="method-result">void</span>
- <a href="#setup" title="details" class="method-name">setup</a>
- ()
- </div>
- <div class="method-definition">
- <span class="method-result">void</span>
- <a href="#testInvokeShouldFailWhenAssertionNotMet" title="details" class="method-name">testInvokeShouldFailWhenAssertionNotMet</a>
- ()
- </div>
- <div class="method-definition">
- <span class="method-result">void</span>
- <a href="#testInvokeShouldFailWhenExceptionThrown" title="details" class="method-name">testInvokeShouldFailWhenExceptionThrown</a>
- ()
- </div>
- <div class="method-definition">
- <span class="method-result">void</span>
- <a href="#testInvokeShouldReturnPendingWhenIncomplete" title="details" class="method-name">testInvokeShouldReturnPendingWhenIncomplete</a>
- ()
- </div>
- <div class="method-definition">
- <span class="method-result">void</span>
- <a href="#testInvokeShouldReturnPendingWhenPending" title="details" class="method-name">testInvokeShouldReturnPendingWhenPending</a>
- ()
- </div>
- <div class="method-definition">
- <span class="method-result">void</span>
- <a href="#testInvokeShouldReturnPendingWhenSkipped" title="details" class="method-name">testInvokeShouldReturnPendingWhenSkipped</a>
- ()
- </div>
- <div class="method-definition">
- <span class="method-result">void</span>
- <a href="#testInvokeShouldReturnSuccess" title="details" class="method-name">testInvokeShouldReturnSuccess</a>
- ()
- </div>
- <div class="method-definition">
- <span class="method-result">void</span>
- <a href="#testInvokeShouldSucceedWithParameters" title="details" class="method-name">testInvokeShouldSucceedWithParameters</a>
- ()
- </div>
- <div class="method-definition">
- <span class="method-result">void</span>
- <a href="#testShouldRunAfterHooksWithAMatchingTag" title="details" class="method-name">testShouldRunAfterHooksWithAMatchingTag</a>
- ()
- </div>
- <div class="method-definition">
- <span class="method-result">void</span>
- <a href="#testShouldRunAfterHooksWithNoTags" title="details" class="method-name">testShouldRunAfterHooksWithNoTags</a>
- ()
- </div>
- <div class="method-definition">
- <span class="method-result">void</span>
- <a href="#testShouldRunBeforeHooksWithAMatchingTag" title="details" class="method-name">testShouldRunBeforeHooksWithAMatchingTag</a>
- ()
- </div>
- <div class="method-definition">
- <span class="method-result">void</span>
- <a href="#testShouldRunBeforeHooksWithNoTags" title="details" class="method-name">testShouldRunBeforeHooksWithNoTags</a>
- ()
- </div>
- </div>
- </div>
- </div>
-
- <a name="sec-vars"></a>
- <div class="info-box">
- <div class="info-box-title">Variables</div>
- <div class="nav-bar">
- <a href="#sec-description">Description</a> |
- <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>)
-
-
- |
- <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
-
- </div>
- <div class="info-box-body">
- <a name="var$aTags" id="$aTags"><!-- --></A>
-<div class="oddrow">
-
- <div class="var-header">
- <span class="var-title">
- <span class="var-type">mixed</span>
- <span class="var-name">$aTags</span>
- (line <span class="line-number">32</span>)
- </span>
- </div>
-
- <!-- ========== Info from phpDoc block ========= -->
- <ul class="tags">
- <li><span class="field">access:</span> public</li>
- </ul>
-
-
-
-
-
-</div>
-<a name="var$aWorld" id="$aWorld"><!-- --></A>
-<div class="evenrow">
-
- <div class="var-header">
- <span class="var-title">
- <span class="var-type">mixed</span>
- <span class="var-name">$aWorld</span>
- (line <span class="line-number">31</span>)
- </span>
- </div>
-
- <!-- ========== Info from phpDoc block ========= -->
- <ul class="tags">
- <li><span class="field">access:</span> public</li>
- </ul>
-
-
-
-
-
-</div>
-<a name="var$oMockHook" id="$oMockHook"><!-- --></A>
-<div class="oddrow">
-
- <div class="var-header">
- <span class="var-title">
- <span class="var-type">mixed</span>
- <span class="var-name">$oMockHook</span>
- (line <span class="line-number">33</span>)
- </span>
- </div>
-
- <!-- ========== Info from phpDoc block ========= -->
- <ul class="tags">
- <li><span class="field">access:</span> public</li>
- </ul>
-
-
-
-
-
-</div>
-<a name="var$oScenario" id="$oScenario"><!-- --></A>
-<div class="evenrow">
-
- <div class="var-header">
- <span class="var-title">
- <span class="var-type">mixed</span>
- <span class="var-name">$oScenario</span>
- (line <span class="line-number">30</span>)
- </span>
- </div>
-
- <!-- ========== Info from phpDoc block ========= -->
- <ul class="tags">
- <li><span class="field">access:</span> public</li>
- </ul>
-
-
-
-
-
-</div>
-
- </div>
- </div>
-
- <a name="sec-methods"></a>
- <div class="info-box">
- <div class="info-box-title">Methods</div>
- <div class="nav-bar">
- <a href="#sec-description">Description</a> |
- <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
- <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
-
- </div>
- <div class="info-box-body">
- <A NAME='method_detail'></A>
-
-<a name="methodsetup" id="setup"><!-- --></a>
-<div class="oddrow">
-
- <div class="method-header">
- <span class="method-title">setup</span> (line <span class="line-number">35</span>)
- </div>
-
- <!-- ========== Info from phpDoc block ========= -->
- <ul class="tags">
- <li><span class="field">access:</span> public</li>
- </ul>
-
- <div class="method-signature">
- <span class="method-result">void</span>
- <span class="method-name">
- setup
- </span>
- ()
- </div>
-
-
-
- </div>
-<a name="methodtestInvokeShouldFailWhenAssertionNotMet" id="testInvokeShouldFailWhenAssertionNotMet"><!-- --></a>
-<div class="evenrow">
-
- <div class="method-header">
- <span class="method-title">testInvokeShouldFailWhenAssertionNotMet</span> (line <span class="line-number">147</span>)
- </div>
-
- <!-- ========== Info from phpDoc block ========= -->
- <ul class="tags">
- <li><span class="field">access:</span> public</li>
- </ul>
-
- <div class="method-signature">
- <span class="method-result">void</span>
- <span class="method-name">
- testInvokeShouldFailWhenAssertionNotMet
- </span>
- ()
- </div>
-
-
-
- </div>
-<a name="methodtestInvokeShouldFailWhenExceptionThrown" id="testInvokeShouldFailWhenExceptionThrown"><!-- --></a>
-<div class="oddrow">
-
- <div class="method-header">
- <span class="method-title">testInvokeShouldFailWhenExceptionThrown</span> (line <span class="line-number">151</span>)
- </div>
-
- <!-- ========== Info from phpDoc block ========= -->
- <ul class="tags">
- <li><span class="field">access:</span> public</li>
- </ul>
-
- <div class="method-signature">
- <span class="method-result">void</span>
- <span class="method-name">
- testInvokeShouldFailWhenExceptionThrown
- </span>
- ()
- </div>
-
-
-
- </div>
-<a name="methodtestInvokeShouldReturnPendingWhenIncomplete" id="testInvokeShouldReturnPendingWhenIncomplete"><!-- --></a>
-<div class="evenrow">
-
- <div class="method-header">
- <span class="method-title">testInvokeShouldReturnPendingWhenIncomplete</span> (line <span class="line-number">135</span>)
- </div>
-
- <!-- ========== Info from phpDoc block ========= -->
- <ul class="tags">
- <li><span class="field">access:</span> public</li>
- </ul>
-
- <div class="method-signature">
- <span class="method-result">void</span>
- <span class="method-name">
- testInvokeShouldReturnPendingWhenIncomplete
- </span>
- ()
- </div>
-
-
-
- </div>
-<a name="methodtestInvokeShouldReturnPendingWhenPending" id="testInvokeShouldReturnPendingWhenPending"><!-- --></a>
-<div class="oddrow">
-
- <div class="method-header">
- <span class="method-title">testInvokeShouldReturnPendingWhenPending</span> (line <span class="line-number">143</span>)
- </div>
-
- <!-- ========== Info from phpDoc block ========= -->
- <ul class="tags">
- <li><span class="field">access:</span> public</li>
- </ul>
-
- <div class="method-signature">
- <span class="method-result">void</span>
- <span class="method-name">
- testInvokeShouldReturnPendingWhenPending
- </span>
- ()
- </div>
-
-
-
- </div>
-<a name="methodtestInvokeShouldReturnPendingWhenSkipped" id="testInvokeShouldReturnPendingWhenSkipped"><!-- --></a>
-<div class="evenrow">
-
- <div class="method-header">
- <span class="method-title">testInvokeShouldReturnPendingWhenSkipped</span> (line <span class="line-number">139</span>)
- </div>
-
- <!-- ========== Info from phpDoc block ========= -->
- <ul class="tags">
- <li><span class="field">access:</span> public</li>
- </ul>
-
- <div class="method-signature">
- <span class="method-result">void</span>
- <span class="method-name">
- testInvokeShouldReturnPendingWhenSkipped
- </span>
- ()
- </div>
-
-
-
- </div>
-<a name="methodtestInvokeShouldReturnSuccess" id="testInvokeShouldReturnSuccess"><!-- --></a>
-<div class="oddrow">
-
- <div class="method-header">
- <span class="method-title">testInvokeShouldReturnSuccess</span> (line <span class="line-number">131</span>)
- </div>
-
- <!-- ========== Info from phpDoc block ========= -->
- <ul class="tags">
- <li><span class="field">access:</span> public</li>
- </ul>
-
- <div class="method-signature">
- <span class="method-result">void</span>
- <span class="method-name">
- testInvokeShouldReturnSuccess
- </span>
- ()
- </div>
-
-
-
- </div>
-<a name="methodtestInvokeShouldSucceedWithParameters" id="testInvokeShouldSucceedWithParameters"><!-- --></a>
-<div class="evenrow">
-
- <div class="method-header">
- <span class="method-title">testInvokeShouldSucceedWithParameters</span> (line <span class="line-number">155</span>)
- </div>
-
- <!-- ========== Info from phpDoc block ========= -->
- <ul class="tags">
- <li><span class="field">access:</span> public</li>
- </ul>
-
- <div class="method-signature">
- <span class="method-result">void</span>
- <span class="method-name">
- testInvokeShouldSucceedWithParameters
- </span>
- ()
- </div>
-
-
-
- </div>
-<a name="methodtestShouldRunAfterHooksWithAMatchingTag" id="testShouldRunAfterHooksWithAMatchingTag"><!-- --></a>
-<div class="oddrow">
-
- <div class="method-header">
- <span class="method-title">testShouldRunAfterHooksWithAMatchingTag</span> (line <span class="line-number">118</span>)
- </div>
-
- <!-- ========== Info from phpDoc block ========= -->
- <ul class="tags">
- <li><span class="field">access:</span> public</li>
- </ul>
-
- <div class="method-signature">
- <span class="method-result">void</span>
- <span class="method-name">
- testShouldRunAfterHooksWithAMatchingTag
- </span>
- ()
- </div>
-
-
-
- </div>
-<a name="methodtestShouldRunAfterHooksWithNoTags" id="testShouldRunAfterHooksWithNoTags"><!-- --></a>
-<div class="evenrow">
-
- <div class="method-header">
- <span class="method-title">testShouldRunAfterHooksWithNoTags</span> (line <span class="line-number">125</span>)
- </div>
-
- <!-- ========== Info from phpDoc block ========= -->
- <ul class="tags">
- <li><span class="field">access:</span> public</li>
- </ul>
-
- <div class="method-signature">
- <span class="method-result">void</span>
- <span class="method-name">
- testShouldRunAfterHooksWithNoTags
- </span>
- ()
- </div>
-
-
-
- </div>
-<a name="methodtestShouldRunBeforeHooksWithAMatchingTag" id="testShouldRunBeforeHooksWithAMatchingTag"><!-- --></a>
-<div class="oddrow">
-
- <div class="method-header">
- <span class="method-title">testShouldRunBeforeHooksWithAMatchingTag</span> (line <span class="line-number">104</span>)
- </div>
-
- <!-- ========== Info from phpDoc block ========= -->
- <ul class="tags">
- <li><span class="field">access:</span> public</li>
- </ul>
-
- <div class="method-signature">
- <span class="method-result">void</span>
- <span class="method-name">
- testShouldRunBeforeHooksWithAMatchingTag
- </span>
- ()
- </div>
-
-
-
- </div>
-<a name="methodtestShouldRunBeforeHooksWithNoTags" id="testShouldRunBeforeHooksWithNoTags"><!-- --></a>
-<div class="evenrow">
-
- <div class="method-header">
- <span class="method-title">testShouldRunBeforeHooksWithNoTags</span> (line <span class="line-number">111</span>)
- </div>
-
- <!-- ========== Info from phpDoc block ========= -->
- <ul class="tags">
- <li><span class="field">access:</span> public</li>
- </ul>
-
- <div class="method-signature">
- <span class="method-result">void</span>
- <span class="method-name">
- testShouldRunBeforeHooksWithNoTags
- </span>
- ()
- </div>
-
-
-
- </div>
-
- </div>
- </div>
-
-
- <p class="notes" id="credit">
- Documentation generated on Thu, 30 Dec 2010 23:25:49 -0500 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
- </p>
- </div></body>
-</html>
399 phpdoc/Cuke4Php/CucumberSteps.html
View
@@ -1,399 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <!-- template designed by Marco Von Ballmoos -->
- <title>Docs For Class CucumberSteps</title>
- <link rel="stylesheet" href="../media/stylesheet.css" />
- <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
- </head>
- <body>
- <div class="page-body">
-<h2 class="class-name">Class CucumberSteps</h2>
-
-<a name="sec-description"></a>
-<div class="info-box">
- <div class="info-box-title">Description</div>
- <div class="nav-bar">
- <span class="disabled">Description</span> |
- <a href="#sec-descendents">Descendents</a>
- | <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
- | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
-
- </div>
- <div class="info-box-body">
- <!-- ========== Info from phpDoc block ========= -->
-<p class="short-description">Base class that all cucumber steps should derive from</p>
-<p class="description"><p>Each step gets a reference to the global variables array provided by the scenario. This allows steps to save and maintain state over the course of a scenario run.</p><p>This class also inherits PHPUnit assertions, so those can all be used within the context of a step. Data providers probably don't work, and really should not be used in any case.</p></p>
- <p class="notes">
- Located in <a class="field" href="_lib---CucumberSteps.php.html">/lib/CucumberSteps.php</a> (line <span class="field">16</span>)
- </p>
-
-
- <pre>PHPUnit_Framework_Assert
- |
- --CucumberSteps</pre>
-
- </div>
-</div>
-
- <a name="sec-descendents"></a>
- <div class="info-box">
- <div class="info-box-title">Direct descendents</div>
- <div class="nav-bar">
- <a href="#sec-description">Description</a> |
- <span class="disabled">Descendents</span>
- | <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
- | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
-
- </div>
- <div class="info-box-body">
- <table cellpadding="2" cellspacing="0" class="class-table">
- <tr>
- <th class="class-table-header">Class</th>
- <th class="class-table-header">Description</th>
- </tr>
- <tr>
- <td style="padding-right: 2em"><a href="../Cuke4Php/TestSteps.html">TestSteps</a></td>
- <td>
-
- </td>
- </tr>
- <tr>
- <td style="padding-right: 2em"><a href="../Cuke4Php/WireSteps.html">WireSteps</a></td>
- <td>
-
- </td>
- </tr>
- </table>
- </div>
- </div>
-
-
- <a name="sec-var-summary"></a>
- <div class="info-box">
- <div class="info-box-title">Variable Summary</span></div>
- <div class="nav-bar">
- <a href="#sec-description">Description</a> |
- <a href="#sec-descendents">Descendents</a> |
- <span class="disabled">Vars</span> (<a href="#sec-vars">details</a>)
- |
- <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
-
- </div>
- <div class="info-box-body">
- <div class="var-summary">
- <div class="var-title">
- <span class="var-type">mixed</span>
- <a href="#$aGlobals" title="details" class="var-name">$aGlobals</a>
- </div>
- </div>
- </div>
- </div>
-
- <a name="sec-method-summary"></a>
- <div class="info-box">
- <div class="info-box-title">Method Summary</span></div>
- <div class="nav-bar">
- <a href="#sec-description">Description</a> |
- <a href="#sec-descendents">Descendents</a> |
- <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
-
- |
- <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
- </div>
- <div class="info-box-body">
- <div class="method-summary">
- <div class="method-definition">
- static <span class="method-result">void</span>
- <a href="#clearMocks" title="details" class="method-name">clearMocks</a>
- ()
- </div>
- <div class="method-definition">
- static <span class="method-result">Get</span>
- <a href="#getInstance" title="details" class="method-name">getInstance</a>
- (<span class="var-type">$sClass</span>&nbsp;<span class="var-name">$sClass</span>, <span class="var-type">$aGlobals</span>&nbsp;<span class="var-name">$aGlobals</span>)
- </div>
- <div class="method-definition">
- static <span class="method-result">void</span>
- <a href="#getSubclasses" title="details" class="method-name">getSubclasses</a>
- ()
- </div>
- <div class="method-definition">
- static <span class="method-result">void</span>
- <a href="#markPending" title="details" class="method-name">markPending</a>
- ([<span class="var-type"></span>&nbsp;<span class="var-name">$sMessage</span> = <span class="var-default">&quot;Not Implemented&quot;</span>])
- </div>
- <div class="method-definition">
- static <span class="method-result">void</span>
- <a href="#setMock" title="details" class="method-name">setMock</a>
- (<span class="var-type">$sClass</span>&nbsp;<span class="var-name">$sClass</span>, <span class="var-type">$oMock</span>&nbsp;<span class="var-name">$oMock</span>)
- </div>
-
- <div class="method-definition">
- <span class="method-result">CucumberSteps</span>
- <a href="#__construct" title="details" class="method-name">__construct</a>
- (<span class="var-type"></span>&nbsp;<span class="var-name">&$_aGlobals</span>)
- </div>
- <div class="method-definition">
- <span class="method-result">mixed</span>
- <a href="#invoke" title="details" class="method-name">invoke</a>
- (<span class="var-type">$sMethod</span>&nbsp;<span class="var-name">$sMethod</span>)
- </div>
- </div>
- </div>
- </div>
-
- <a name="sec-vars"></a>
- <div class="info-box">
- <div class="info-box-title">Variables</div>
- <div class="nav-bar">
- <a href="#sec-description">Description</a> |
- <a href="#sec-descendents">Descendents</a> |
- <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>)
-
-
- |
- <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
-
- </div>
- <div class="info-box-body">
- <a name="var$aGlobals" id="$aGlobals"><!-- --></A>
-<div class="evenrow">
-
- <div class="var-header">
- <span class="var-title">
- <span class="var-type">mixed</span>
- <span class="var-name">$aGlobals</span>
- (line <span class="line-number">18</span>)
- </span>
- </div>
-
- <!-- ========== Info from phpDoc block ========= -->
- <ul class="tags">
- <li><span class="field">access:</span> protected</li>
- </ul>
-
-
-
-
-
-</div>
-
- </div>
- </div>
-
- <a name="sec-methods"></a>
- <div class="info-box">
- <div class="info-box-title">Methods</div>
- <div class="nav-bar">
- <a href="#sec-description">Description</a> |
- <a href="#sec-descendents">Descendents</a> |
- <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
- <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
-
- </div>
- <div class="info-box-body">
- <A NAME='method_detail'></A>
-<a name="methodclearMocks" id="clearMocks"><!-- --></a>
-<div class="oddrow">
-
- <div class="method-header">
- <span class="method-title">static method clearMocks</span> (line <span class="line-number">59</span>)
- </div>
-
- <!-- ========== Info from phpDoc block ========= -->
-
- <div class="method-signature">
- static
- <span class="method-result">void</span>
- <span class="method-name">
- clearMocks
- </span>
- ()
- </div>
-
-
-
- </div>
-<a name="methodgetInstance" id="getInstance"><!-- --></a>
-<div class="evenrow">
-
- <div class="method-header">
- <span class="method-title">static method getInstance</span> (line <span class="line-number">72</span>)
- </div>
-
- <!-- ========== Info from phpDoc block ========= -->
- <ul class="tags">
- <li><span class="field">return:</span> an instance of a hook which is either a pre-set mock, or an instance of the appropriate step class with the globals initialized</li>
- </ul>
-
- <div class="method-signature">
- static
- <span class="method-result">Get</span>
- <span class="method-name">
- getInstance
- </span>
- (<span class="var-type">$sClass</span>&nbsp;<span class="var-name">$sClass</span>, <span class="var-type">$aGlobals</span>&nbsp;<span class="var-name">$aGlobals</span>)
- </div>
-
- <ul class="parameters">
- <li>
- <span class="var-type">$sClass</span>
- <span class="var-name">$sClass</span> </li>
- <li>
- <span class="var-type">$aGlobals</span>
- <span class="var-name">$aGlobals</span> </li>
- </ul>
-
-
- </div>
-<a name="methodgetSubclasses" id="getSubclasses"><!-- --></a>
-<div class="oddrow">
-
- <div class="method-header">
- <span class="method-title">static method getSubclasses</span> (line <span class="line-number">28</span>)
- </div>
-
- <!-- ========== Info from phpDoc block ========= -->
- <ul class="tags">
- <li><span class="field">access:</span> public</li>
- </ul>
-
- <div class="method-signature">
- static
- <span class="method-result">void</span>
- <span class="method-name">
- getSubclasses
- </span>
- ()
- </div>
-
-
-
- </div>
-<a name="methodmarkPending" id="markPending"><!-- --></a>
-<div class="evenrow">
-
- <div class="method-header">
- <span class="method-title">static method markPending</span> (line <span class="line-number">24</span>)
- </div>
-
- <!-- ========== Info from phpDoc block ========= -->
- <ul class="tags">
- <li><span class="field">access:</span> public</li>
- </ul>
-
- <div class="method-signature">
- static
- <span class="method-result">void</span>
- <span class="method-name">
- markPending
- </span>
- ([<span class="var-type"></span>&nbsp;<span class="var-name">$sMessage</span> = <span class="var-default">&quot;Not Implemented&quot;</span>])
- </div>
-
- <ul class="parameters">
- <li>
- <span class="var-type"></span>
- <span class="var-name">$sMessage</span> </li>
- </ul>
-
-
- </div>
-<a name="methodsetMock" id="setMock"><!-- --></a>
-<div class="oddrow">
-
- <div class="method-header">
- <span class="method-title">static method setMock</span> (line <span class="line-number">55</span>)
- </div>
-
- <!-- ========== Info from phpDoc block ========= -->
- <ul class="tags">
- <li><span class="field">return:</span> Allows tests to set mock hooks to be used</li>
- </ul>
-
- <div class="method-signature">
- static
- <span class="method-result">void</span>
- <span class="method-name">
- setMock
- </span>
- (<span class="var-type">$sClass</span>&nbsp;<span class="var-name">$sClass</span>, <span class="var-type">$oMock</span>&nbsp;<span class="var-name">$oMock</span>)
- </div>
-
- <ul class="parameters">
- <li>
- <span class="var-type">$sClass</span>
- <span class="var-name">$sClass</span> </li>
- <li>
- <span class="var-type">$oMock</span>
- <span class="var-name">$oMock</span> </li>
- </ul>
-
-
- </div>
-
-<a name="method__construct" id="__construct"><!-- --></a>
-<div class="evenrow">
-
- <div class="method-header">
- <span class="method-title">Constructor __construct</span> (line <span class="line-number">20</span>)
- </div>
-
- <!-- ========== Info from phpDoc block ========= -->
- <ul class="tags">
- <li><span class="field">access:</span> public</li>
- </ul>
-
- <div class="method-signature">
- <span class="method-result">CucumberSteps</span>
- <span class="method-name">
- __construct
- </span>
- (<span class="var-type"></span>&nbsp;<span class="var-name">&$_aGlobals</span>)
- </div>
-
- <ul class="parameters">
- <li>
- <span class="var-type"></span>
- <span class="var-name">&$_aGlobals</span> </li>
- </ul>
-
-
- </div>
-<a name="methodinvoke" id="invoke"><!-- --></a>
-<div class="oddrow">
-
- <div class="method-header">
- <span class="method-title">invoke</span> (line <span class="line-number">43</span>)
- </div>
-
- <!-- ========== Info from phpDoc block ========= -->
-
- <div class="method-signature">
- <span class="method-result">mixed</span>
- <span class="method-name">
- invoke
- </span>
- (<span class="var-type">$sMethod</span>&nbsp;<span class="var-name">$sMethod</span>)
- </div>
-
- <ul class="parameters">
- <li>
- <span class="var-type">$sMethod</span>
- <span class="var-name">$sMethod</span> </li>
- </ul>
-
-
- </div>
-
- </div>
- </div>
-
-
- <p class="notes" id="credit">
- Documentation generated on Thu, 30 Dec 2010 23:25:49 -0500 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
- </p>
- </div></body>
-</html>
484 phpdoc/Cuke4Php/Cuke4Php.html
View
@@ -1,484 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <!-- template designed by Marco Von Ballmoos -->
- <title>Docs For Class Cuke4Php</title>
- <link rel="stylesheet" href="../media/stylesheet.css" />
- <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
- </head>
- <body>
- <div class="page-body">
-<h2 class="class-name">Class Cuke4Php</h2>
-
-<a name="sec-description"></a>
-<div class="info-box">
- <div class="info-box-title">Description</div>
- <div class="nav-bar">
- <span class="disabled">Description</span> |
- <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
- | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
-
- </div>
- <div class="info-box-body">
- <!-- ========== Info from phpDoc block ========= -->
-<p class="short-description">Cuke4Php implements the Cucumber wire protocol for PHP</p>
-<p class="description"><p>http://wiki.github.com/aslakhellesoy/cucumber/wire-protocol</p></p>
- <p class="notes">
- Located in <a class="field" href="_lib---Cuke4Php.php.html">/lib/Cuke4Php.php</a> (line <span class="field">15</span>)
- </p>
-
-
- <pre></pre>
-
- </div>
-</div>
-
-
-
- <a name="sec-var-summary"></a>
- <div class="info-box">
- <div class="info-box-title">Variable Summary</span></div>
- <div class="nav-bar">
- <a href="#sec-description">Description</a> |
- <span class="disabled">Vars</span> (<a href="#sec-vars">details</a>)
- |
- <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
-
- </div>
- <div class="info-box-body">
- <div class="var-summary">
- <div class="var-title">
- <span class="var-type">mixed</span>
- <a href="#$aWorld" title="details" class="var-name">$aWorld</a>
- </div>
- <div class="var-title">
- <span class="var-type">mixed</span>
- <a href="#$iPort" title="details" class="var-name">$iPort</a>
- </div>
- </div>
- </div>
- </div>
-
- <a name="sec-method-summary"></a>
- <div class="info-box">
- <div class="info-box-title">Method Summary</span></div>
- <div class="nav-bar">
- <a href="#sec-description">Description</a> |
- <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
-
- |
- <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
- </div>
- <div class="info-box-body">
- <div class="method-summary">
- <div class="method-definition">
- static <span class="method-result">array</span>
- <a href="#rglob" title="details" class="method-name">rglob</a>
- ([<span class="var-type"></span>&nbsp;<span class="var-name">$sPattern</span> = <span class="var-default">'*'</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$iFlags</span> = <span class="var-default">0</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$sPath</span> = <span class="var-default">''</span>], <span class="var-type">string</span>&nbsp;<span class="var-name">$pattern</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$flags</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$path</span>)
- </div>
-
- <div class="method-definition">
- <span class="method-result">Cuke4Php</span>
- <a href="#__construct" title="details" class="method-name">__construct</a>
- (<span class="var-type"></span>&nbsp;<span class="var-name">$_sFeaturePath</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$_iPort</span> = <span class="var-default">16816</span>])
- </div>
- <div class="method-definition">
- <span class="method-result">void</span>
- <a href="#__destruct" title="details" class="method-name">__destruct</a>
- ()
- </div>
- <div class="method-definition">
- <span class="method-result">array</span>
- <a href="#beginScenario" title="details" class="method-name">beginScenario</a>
- (<span class="var-type">$aTags</span>&nbsp;<span class="var-name">$aTags</span>)
- </div>
- <div class="method-definition">
- <span class="method-result">array</span>
- <a href="#endScenario" title="details" class="method-name">endScenario</a>
- (<span class="var-type">$aTags</span>&nbsp;<span class="var-name">$aTags</span>)
- </div>
- <div class="method-definition">
- <span class="method-result">void</span>
- <a href="#process" title="details" class="method-name">process</a>
- (<span class="var-type"></span>&nbsp;<span class="var-name">$sInput</span>)
- </div>
- <div class="method-definition">
- <span class="method-result">void</span>
- <a href="#run" title="details" class="method-name">run</a>
- ()
- </div>
- <div class="method-definition">
- <span class="method-result">void</span>
- <a href="#setScenario" title="details" class="method-name">setScenario</a>
- (<span class="var-type">$oScenario</span>&nbsp;<span class="var-name">$oScenario</span>)
- </div>
- <div class="method-definition">
- <span class="method-result">array</span>
- <a href="#snippetText" title="details" class="method-name">snippetText</a>
- (<span class="var-type">$aSnippet</span>&nbsp;<span class="var-name">$aSnippet</span>)
- </div>
- <div class="method-definition">
- <span class="method-result">array</span>
- <a href="#stepMatches" title="details" class="method-name">stepMatches</a>
- (<span class="var-type">$sStep</span>&nbsp;<span class="var-name">$sStep</span>)
- </div>
- </div>
- </div>
- </div>
-
- <a name="sec-vars"></a>
- <div class="info-box">
- <div class="info-box-title">Variables</div>
- <div class="nav-bar">
- <a href="#sec-description">Description</a> |
- <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>)
-
-
- |
- <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
-
- </div>
- <div class="info-box-body">
- <a name="var$aWorld" id="$aWorld"><!-- --></A>
-<div class="evenrow">
-
- <div class="var-header">
- <span class="var-title">
- <span class="var-type">mixed</span>
- <span class="var-name">$aWorld</span>
- = <span class="var-default">array(<br /> 'steps' =&gt; array(),'before'=&gt;array(),'after'=&gt;array())</span> (line <span class="line-number">21</span>)
- </span>
- </div>
-
- <!-- ========== Info from phpDoc block ========= -->
- <ul class="tags">
- <li><span class="field">access:</span> public</li>
- </ul>
-
-
-
-
-
-</div>
-<a name="var$iPort" id="$iPort"><!-- --></A>
-<div class="oddrow">
-
- <div class="var-header">
- <span class="var-title">
- <span class="var-type">mixed</span>
- <span class="var-name">$iPort</span>
- (line <span class="line-number">16</span>)
- </span>
- </div>
-
- <!-- ========== Info from phpDoc block ========= -->
- <ul class="tags">
- <li><span class="field">access:</span> public</li>
- </ul>
-
-
-
-
-
-</div>
-
- </div>
- </div>
-
- <a name="sec-methods"></a>
- <div class="info-box">
- <div class="info-box-title">Methods</div>
- <div class="nav-bar">
- <a href="#sec-description">Description</a> |
- <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
- <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
-
- </div>
- <div class="info-box-body">
- <A NAME='method_detail'></A>
-<a name="methodrglob" id="rglob"><!-- --></a>
-<div class="evenrow">
-
- <div class="method-header">
- <span class="method-title">static method rglob</span> (line <span class="line-number">80</span>)
- </div>
-
- <!-- ========== Info from phpDoc block ========= -->
- <ul class="tags">
- <li><span class="field">return:</span> recursive glob utility function</li>
- </ul>
-
- <div class="method-signature">
- static
- <span class="method-result">array</span>
- <span class="method-name">
- rglob
- </span>
- ([<span class="var-type"></span>&nbsp;<span class="var-name">$sPattern</span> = <span class="var-default">'*'</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$iFlags</span> = <span class="var-default">0</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$sPath</span> = <span class="var-default">''</span>], <span class="var-type">string</span>&nbsp;<span class="var-name">$pattern</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$flags</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$path</span>)
- </div>
-
- <ul class="parameters">
- <li>
- <span class="var-type">string</span>
- <span class="var-name">$pattern</span> </li>
- <li>
- <span class="var-type">int</span>
- <span class="var-name">$flags</span> </li>
- <li>
- <span class="var-type">string</span>
- <span class="var-name">$path</span> </li>
- <li>
- <span class="var-type"></span>
- <span class="var-name">$sPattern</span> </li>
- <li>
- <span class="var-type"></span>
- <span class="var-name">$iFlags</span> </li>
- <li>
- <span class="var-type"></span>
- <span class="var-name">$sPath</span> </li>
- </ul>
-
-
- </div>
-
-<a name="method__construct" id="__construct"><!-- --></a>
-<div class="oddrow">
-
- <div class="method-header">
- <span class="method-title">Constructor __construct</span> (line <span class="line-number">27</span>)
- </div>
-
- <!-- ========== Info from phpDoc block ========= -->
-
- <div class="method-signature">
- <span class="method-result">Cuke4Php</span>
- <span class="method-name">
- __construct
- </span>
- (<span class="var-type"></span>&nbsp;<span class="var-name">$_sFeaturePath</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$_iPort</span> = <span class="var-default">16816</span>])
- </div>
-
- <ul class="parameters">
- <li>
- <span class="var-type"></span>
- <span class="var-name">$_sFeaturePath</span> </li>
- <li>
- <span class="var-type"></span>
- <span class="var-name">$_iPort</span> </li>
- </ul>
-
-
- </div>
-<a name="method__destruct" id="__destruct"><!-- --></a>
-<div class="evenrow">
-
- <div class="method-header">
- <span class="method-title">Destructor __destruct</span> (line <span class="line-number">97</span>)
- </div>
-
- <!-- ========== Info from phpDoc block ========= -->
-
- <div class="method-signature">
- <span class="method-result">void</span>
- <span class="method-name">
- __destruct
- </span>
- ()
- </div>
-
-
-
- </div>
-<a name="methodbeginScenario" id="beginScenario"><!-- --></a>
-<div class="oddrow">
-
- <div class="method-header">
- <span class="method-title">beginScenario</span> (line <span class="line-number">165</span>)
- </div>
-
- <!-- ========== Info from phpDoc block ========= -->
- <ul class="tags">
- <li><span class="field">return:</span> run any before hooks for a scenario</li>
- </ul>
-
- <div class="method-signature">
- <span class="method-result">array</span>
- <span class="method-name">
- beginScenario
- </span>
- (<span class="var-type">$aTags</span>&nbsp;<span class="var-name">$aTags</span>)
- </div>
-
- <ul class="parameters">
- <li>
- <span class="var-type">$aTags</span>
- <span class="var-name">$aTags</span> </li>
- </ul>
-
-
- </div>
-<a name="methodendScenario" id="endScenario"><!-- --></a>
-<div class="evenrow">
-
- <div class="method-header">
- <span class="method-title">endScenario</span> (line <span class="line-number">197</span>)
- </div>
-
- <!-- ========== Info from phpDoc block ========= -->
- <ul class="tags">
- <li><span class="field">return:</span> run any after hooks for a scenario</li>
- </ul>
-
- <div class="method-signature">
- <span class="method-result">array</span>
- <span class="method-name">
- endScenario
- </span>
- (<span class="var-type">$aTags</span>&nbsp;<span class="var-name">$aTags</span>)
- </div>
-
- <ul class="parameters">
- <li>
- <span class="var-type">$aTags</span>
- <span class="var-name">$aTags</span> </li>
- </ul>
-
-
- </div>
-<a name="methodprocess" id="process"><!-- --></a>
-<div class="oddrow">
-
- <div class="method-header">
- <span class="method-title">process</span> (line <span class="line-number">124</span>)
- </div>
-
- <!-- ========== Info from phpDoc block ========= -->
-
- <div class="method-signature">
- <span class="method-result">void</span>
- <span class="method-name">
- process
- </span>
- (<span class="var-type"></span>&nbsp;<span class="var-name">$sInput</span>)
- </div>
-
- <ul class="parameters">
- <li>
- <span class="var-type"></span>
- <span class="var-name">$sInput</span> </li>
- </ul>
-
-
- </div>
-<a name="methodrun" id="run"><!-- --></a>
-<div class="evenrow">
-
- <div class="method-header">
- <span class="method-title">run</span> (line <span class="line-number">104</span>)
- </div>
-
- <!-- ========== Info from phpDoc block ========= -->
-
- <div class="method-signature">
- <span class="method-result">void</span>
- <span class="method-name">
- run
- </span>
- ()
- </div>
-
-
-
- </div>
-<a name="methodsetScenario" id="setScenario"><!-- --></a>
-<div class="oddrow">
-
- <div class="method-header">
- <span class="method-title">setScenario</span> (line <span class="line-number">93</span>)
- </div>
-
- <!-- ========== Info from phpDoc block ========= -->
-
- <div class="method-signature">
- <span class="method-result">void</span>
- <span class="method-name">
- setScenario
- </span>
- (<span class="var-type">$oScenario</span>&nbsp;<span class="var-name">$oScenario</span>)
- </div>
-
- <ul class="parameters">
- <li>
- <span class="var-type">$oScenario</span>
- <span class="var-name">$oScenario</span> </li>
- </ul>
-
-
- </div>
-<a name="methodsnippetText" id="snippetText"><!-- --></a>
-<div class="evenrow">
-
- <div class="method-header">
- <span class="method-title">snippetText</span> (line <span class="line-number">208</span>)
- </div>
-
- <!-- ========== Info from phpDoc block ========= -->
- <ul class="tags">
- <li><span class="field">return:</span> return a template for an undefined step</li>
- </ul>
-
- <div class="method-signature">
- <span class="method-result">array</span>
- <span class="method-name">
- snippetText
- </span>
- (<span class="var-type">$aSnippet</span>&nbsp;<span class="var-name">$aSnippet</span>)
- </div>
-
- <ul class="parameters">
- <li>
- <span class="var-type">$aSnippet</span>
- <span class="var-name">$aSnippet</span> </li>
- </ul>
-
-
- </div>
-<a name="methodstepMatches" id="stepMatches"><!-- --></a>
-<div class="oddrow">
-
- <div class="method-header">
- <span class="method-title">stepMatches</span> (line <span class="line-number">175</span>)
- </div>
-
- <!-- ========== Info from phpDoc block ========= -->
- <ul class="tags">
- <li><span class="field">return:</span> when given a string, this method will return information about any step that matches it</li>
- </ul>
-
- <div class="method-signature">
- <span class="method-result">array</span>
- <span class="method-name">
- stepMatches
- </span>
- (<span class="var-type">$sStep</span>&nbsp;<span class="var-name">$sStep</span>)
- </div>
-
- <ul class="parameters">
- <li>
- <span class="var-type">$sStep</span>
- <span class="var-name">$sStep</span> </li>
- </ul>
-
-
- </div>
-
- </div>
- </div>
-
-
- <p class="notes" id="credit">
- Documentation generated on Thu, 30 Dec 2010 23:25:49 -0500 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
- </p>
- </div></body>
-</html>
385 phpdoc/Cuke4Php/Cuke4PhpTest.html
View
@@ -1,385 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <!-- template designed by Marco Von Ballmoos -->
- <title>Docs For Class Cuke4PhpTest</title>
- <link rel="stylesheet" href="../media/stylesheet.css" />
- <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
- </head>
- <body>
- <div class="page-body">
-<h2 class="class-name">Class Cuke4PhpTest</h2>
-
-<a name="sec-description"></a>
-<div class="info-box">
- <div class="info-box-title">Description</div>
- <div class="nav-bar">
- <span class="disabled">Description</span> |
- <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
- | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
-
- </div>
- <div class="info-box-body">
- <!-- ========== Info from phpDoc block ========= -->
- <p class="notes">
- Located in <a class="field" href="_tests---lib---Cuke4PhpTest.php.html">/tests/lib/Cuke4PhpTest.php</a> (line <span class="field">14</span>)
- </p>
-
-
- <pre>PHPUnit_Framework_TestCase
- |
- --Cuke4PhpTest</pre>
-
- </div>
-</div>
-
-
-
- <a name="sec-var-summary"></a>
- <div class="info-box">
- <div class="info-box-title">Variable Summary</span></div>
- <div class="nav-bar">
- <a href="#sec-description">Description</a> |
- <span class="disabled">Vars</span> (<a href="#sec-vars">details</a>)
- |
- <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
-
- </div>
- <div class="info-box-body">
- <div class="var-summary">
- <div class="var-title">
- <span class="var-type">mixed</span>
- <a href="#$oCuke4Php" title="details" class="var-name">$oCuke4Php</a>
- </div>
- </div>
- </div>
- </div>
-
- <a name="sec-method-summary"></a>
- <div class="info-box">
- <div class="info-box-title">Method Summary</span></div>
- <div class="nav-bar">
- <a href="#sec-description">Description</a> |
- <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
-
- |
- <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
- </div>
- <div class="info-box-body">
- <div class="method-summary">
-
- <div class="method-definition">
- <span class="method-result">void</span>
- <a href="#setup" title="details" class="method-name">setup</a>
- ()
- </div>
- <div class="method-definition">
- <span class="method-result">void</span>
- <a href="#testBeginScenarioShouldInvokeBeforeHooks" title="details" class="method-name">testBeginScenarioShouldInvokeBeforeHooks</a>
- ()