This guide is now available under this URL:
http://docs.behat.org/cookbook/bdd_in_symfony2_with_behat_mink_and_zombiejs.html
| <?php | |
| /** | |
| * A simple example test case using the sfTestAdapter. | |
| * | |
| * @author "Toni Uebernickel" <[email protected]> | |
| */ | |
| class ExampleTest extends PHPUnit_Framework_TestCase | |
| { | |
| /** |
| <?php | |
| $con = new \PDO('mysql:host=localhost;dbname=sismo', 'sismo'); | |
| $sql = <<<SQL | |
| CREATE TABLE IF NOT EXISTS `project` ( | |
| `slug` VARCHAR(128), | |
| `name` TEXT, | |
| `repository` TEXT, | |
| `branch` TEXT, |
This guide is now available under this URL:
http://docs.behat.org/cookbook/bdd_in_symfony2_with_behat_mink_and_zombiejs.html
| var net = require('net'); | |
| var sys = require('sys'); | |
| var zombie = require('zombie'); | |
| var browser = null; | |
| var pointers = []; | |
| var buffer = ""; | |
| net.createServer(function (stream) { | |
| stream.setEncoding('utf8'); | |
| stream.allowHalfOpen = true; |
[Github is awesome][github]
| <?php | |
| $projects = array(); | |
| $notifier = new Sismo\GrowlNotifier(''); | |
| // more projects .. | |
| $bddExperiment = new Sismo\GithubProject('BDD Experiment (local)', '/Users/havvg/Web Development/Symfony2/BDD Experiment/', $notifier); | |
| $bddExperiment->setCommand('php app/console behat -e test'); | |
| $projects[] = $bddExperiment; |
| <?php | |
| $loader = new Symfony\Component\ClassLoader\UniversalClassLoader(); | |
| $loader->registerNamespaces(array( | |
| 'SismoFinder' => '/Users/havvg/Web Development/SismoFinder/src', | |
| )); | |
| $loader->register(); | |
| $finder = new \SismoFinder\Finder(); | |
| $finder->addWorkspace('/Users/havvg/Web Development'); |
| #!/bin/sh | |
| # ------------------------------------------------------------------------ | |
| # The phing build script for Unix based systems | |
| # $Id: pear-phing 478 2009-07-29 17:25:59Z mrook $ | |
| # ------------------------------------------------------------------------ | |
| # Change this to reflect your environment if the default value doesn't work | |
| PHP_COMMAND="/usr/bin/php" | |
| export PHP_COMMAND |
| BaseConfig: | |
| WebContent: /web | |
| AdminEmail: [email protected] | |
| PHPConfig: | |
| apcEnabled: 1 | |
| xdebugProfilerEnable: 0 | |
| xdebugDefaultEnable: 0 | |
| # How these deployment hooks work: |
| mcx-users: | |
| _attributes: { package: lib.model.user } | |
| user_profile: | |
| _attributes: { phpName: sfGuardUserProfile } | |
| id: ~ | |
| user_id: { type: integer, foreignTable: sf_guard_user, foreignReference: id, required: true, onDelete: cascade } | |
| email: { type: varchar(255), index: unique } | |
| created_at: ~ |