Skip to content

Instantly share code, notes, and snippets.

View dannykopping's full-sized avatar

Danny Kopping dannykopping

View GitHub Profile
test-deploy-ci > default:
Please enter a value: Bob # I typed "Bob" in
[echo] You entered: Bob
<?xml version="1.0" encoding="UTF-8"?>
<project name="test-deploy-ci" default="default">
<target name="default">
<input message="Please enter a value:" propertyName="value.entered"/>
<echo msg="You entered: ${value.entered}"/>
</target>
@dannykopping
dannykopping / install-pear-git.sh
Created April 9, 2012 11:46
VersionControl_Git PEAR install
# set pear state to accept alpha packages
pear config-set preferred_state alpha
sudo pear install VersionControl_Git
# reset pear state
pear config-set preferred_state stable
# make sure you run this from the root of the project
behat tests/behat/
# Expected output:
# Feature: Test the Sample application
#
# Scenario Outline: Test the greeting # tests/behat/features/sample.feature:2
# Given that an instance exists # FeatureContext::thatAnInstanceExists()
# And its name is "<name>" # FeatureContext::itsNameIs()
# And make it greet me # FeatureContext::makeItGreetMe()
# make sure you run this from the root of the project
phpunit tests/phpunit
# Expected output:
# PHPUnit 3.6.10 by Sebastian Bergmann.
#
# .F
#
# Time: 0 seconds, Memory: 3.25Mb
#
@dannykopping
dannykopping / test-install.sh
Created April 8, 2012 10:26
Test Installation
phpunit --version && behat -V && phing -v
# PHPUnit 3.6.10 by Sebastian Bergmann.
#
# Behat version 2.3.5
# Phing 2.4.11
@dannykopping
dannykopping / install-phing.sh
Created April 8, 2012 10:22
PEAR install Phing
sudo pear channel-discover pear.phing.info
sudo pear install -f -a phing/phing
@dannykopping
dannykopping / install-behat.sh
Created April 8, 2012 10:20
PEAR install Behat
sudo pear channel-discover pear.behat.org
sudo pear install -f -a behat/behat behat/gherkin
@dannykopping
dannykopping / install-phpunit.sh
Created April 8, 2012 10:19
PEAR install PHPUnit
sudo pear channel-discover pear.phpunit.de
sudo pear install -f -a pear.phpunit.de/PHPUnit
@dannykopping
dannykopping / build.xml
Created April 7, 2012 00:10
Phing Behat Task
<?xml version="1.0" encoding="UTF-8"?>
<project name="ci-phing-behat-test" default="dev">
<!-- load variable definitions -->
<property file="build.properties"/>
<property name="behat.basedir" value="${project.basedir}/../test"/>
<!-- define custom tasks and types -->
<typedef name="args" classname="phing.behat.types.BehatArguments"/>