Skip to content

Instantly share code, notes, and snippets.

@alnutile
Created September 28, 2013 00:34
Show Gist options
  • Save alnutile/6737050 to your computer and use it in GitHub Desktop.
Save alnutile/6737050 to your computer and use it in GitHub Desktop.
Ah I missed two obvious things. Sure helps to read the spec. 1. .php not .inc 2. Class = Name of file
<?php
use Drupal\BehatEditorSauceLabs;
//Later on
composer_manager_register_autoloader();
$check_connection = new Drupal\BehatEditorSauceLabs\BehatEditorSauceLabsWrapper($username, $api_key);
//src/Drupal/BehatEditorSauceLabs/BehatEditorSauceLabsWrapper.inc
<?php
namespace Drupal\BehatEditorSauceLabs;
class BehatEditorSauceLabsWrapper {
}
{
"require": {
"instaclick/php-webdriver": "1.0.16"
},
"autoload": {
"psr-0": {
"Drupal\\BehatEditorSauceLabs\\": "src/"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment