Skip to content

Commit

Permalink
Added behat and did an --init
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelloDuarte committed Dec 11, 2012
1 parent 4f1146a commit 755c0b3
Show file tree
Hide file tree
Showing 624 changed files with 50,402 additions and 0 deletions.
29 changes: 29 additions & 0 deletions bin/behat
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/usr/bin/env php
<?php

/*
* This file is part of the Behat.
* (c) Konstantin Kudryashov <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

define('BEHAT_PHP_BIN_PATH', getenv('PHP_PEAR_PHP_BIN') ?: '/usr/bin/env php');
define('BEHAT_BIN_PATH', __FILE__);
define('BEHAT_VERSION', 'DEV');

if (is_dir($vendor = __DIR__.'/../vendor')) {
require($vendor.'/autoload.php');
} elseif (is_dir($vendor = __DIR__.'/../../../../vendor')) {
require($vendor.'/autoload.php');
} else {
die(
'You must set up the project dependencies, run the following commands:'.PHP_EOL.
'curl -s http://getcomposer.org/installer | php'.PHP_EOL.
'php composer.phar install'.PHP_EOL
);
}

$app = new Behat\Behat\Console\BehatApplication(BEHAT_VERSION);
$app->run();
19 changes: 19 additions & 0 deletions bin/phpspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env php
<?php

define('PHPSPEC2_VERSION', '2.0.1-PREVIEW');

if (is_dir($vendor = __DIR__ . '/../vendor')) {
require($vendor . '/autoload.php');
} elseif (is_dir($vendor = __DIR__ . '/../../../../vendor')) {
require($vendor . '/autoload.php');
} else {
die(
'You must set up the project dependencies, run the following commands:' . PHP_EOL .
'curl -s http://getcomposer.org/installer | php' . PHP_EOL .
'php composer.phar install' . PHP_EOL
);
}

$app = new PHPSpec2\Console\Application(PHPSPEC2_VERSION);
$app->run();
17 changes: 17 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"require-dev": {
"phpspec/phpspec2": "dev-develop",
"behat/behat": "2.4.*@stable",
"behat/mink-extension": "*"
},
"config": {
"bin-dir": "bin"
},
"minimum-stability": "dev",
"autoload": {
"psr-0": {
"spec": "",
"": "src"
}
}
}
Loading

0 comments on commit 755c0b3

Please sign in to comment.