This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ant-Task which runs behat: | |
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="Foo" default="build" basedir="."> | |
.... | |
<target name="behat"> | |
<exec dir="${basedir}/" executable="php" failonerror="true"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Goutte; | |
use Symfony\Component\BrowserKit\Client as BaseClient; | |
use Symfony\Component\BrowserKit\History; | |
use Symfony\Component\BrowserKit\CookieJar; | |
use Symfony\Component\BrowserKit\Request; | |
use Symfony\Component\BrowserKit\Response; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Goutte; | |
use Symfony\Component\BrowserKit\Client as BaseClient; | |
use Symfony\Component\BrowserKit\History; | |
use Symfony\Component\BrowserKit\CookieJar; | |
use Symfony\Component\BrowserKit\Request; | |
use Symfony\Component\BrowserKit\Response; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// @todo extract functions via tokenizer from files and create dummys including phpdoc | |
$data = array('admin-bar', 'author-template', 'bookmark', 'bookmark-template', | |
'canonical', 'capabilities', 'category', 'category-template', 'comment', | |
'comment-template', 'compat', 'cron', 'default-constants', 'default-widgets', | |
'deprecated', 'feed', 'formatting', 'functions.wp-scripts', 'functions.wp-styles', | |
'general-template', 'http', 'kses', 'l10n', 'link-template', 'load', 'media', | |
'meta', 'ms-blogs', 'ms-default-constants', 'ms-deprecated', 'ms-functions', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/php | |
<?php | |
// shows how many of your commits are on saturdays/sundays or outside of your worktime (9 - 18 is standard) | |
// Number of commits | |
$count = shell_exec('git log --oneline | wc -l'); | |
// log with only commitmessage and timestamp, separated by a space | |
$lines = explode(PHP_EOL, shell_exec('git log --pretty=format:"%H %at"')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<pre> | |
<?php | |
error_reporting(E_ALL | E_STRICT); | |
ini_set('display_errors', 'On'); | |
if (!isset($_GET['num'])) { | |
die('you forgot a parameter'); | |
} | |
echo 'Doing ' . $_GET['num'] . ' entries' . PHP_EOL . PHP_EOL; |