Skip to content

Instantly share code, notes, and snippets.

View yurytolochko's full-sized avatar

Yury Tolochko yurytolochko

View GitHub Profile
{"id":1,"name":"Chris Wonder"}
{"id":1,"name":"Chris Wonder"}
{'id': 1,'name': 'Chris Wonder'}
// An example controller binded to the form
function FormCntl($scope, $compile) {
// Consider using FosJsRouting bundle, if you want to use a Symfony2 route
$scope.formUrl = "http://url-to-fetch-my-form";
// Data from the form will be binded here
$scope.data = {};
// Method called when submitting the form
$scope.submit = function() {
@yurytolochko
yurytolochko / GettingStarted.feature
Created October 9, 2013 16:18
Behat feature example
@cleanDatabase @javascript
Feature: Getting Started
Background:
Given user "user@mail.com" with "Calvin" name
Scenario: Check "I'm done" and "Hide forever" for getting started page.
Given I am logged in as user@mail.com
Then I should see "Welcome Calvin, we are excited you joined!"
@yurytolochko
yurytolochko / README.md
Created February 21, 2013 16:08
Behat + Mink Setup
  1. Copy composer.json to some folder where you will keep you vendors (in my case it's /Users/yurytolochko/Projects/libs/)
  2. Add this folder to your PATH env variable (there would be placed public scripts for behat, phpunit and etc)
  3. Install vendors via composer install
  4. Add loaded vendors to include_path in php.ini

That's it. Now you can run behat -dl to test.

BTW, you can download selenium here