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
@wip | |
Feature: Application pings the server | |
In order to debug the server's health | |
I need to ping the server | |
As an Application | |
Scenario: Debugging request content and headers | |
When the client requests POST "/debug" with: | |
""" | |
X-Debug: 1 |
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 | |
use Symfony\Component\HttpFoundation\RequestStack; | |
class HttpFacade | |
{ | |
/** | |
* @var RequestStack | |
*/ | |
private $requestStack; |
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
Description="PHP" | |
Keywords={ | |
{ Id=1, | |
List={"abstract", "and", "array", "as", "break", "case", "catch", "cfunction", "class", "clone", "const", | |
"continue", "declare", "default", "do", "else", "elseif", "enddeclare", "endfor", "endforeach", "endif", | |
"endswitch", "endwhile", "extends", "final", "for", "foreach", "function", "global", "goto", "if", "implements", | |
"interface", "instanceof", "namespace", "new", "old_function", "or", "private", "protected", "public", "static", | |
"switch", "throw", "try", "use", "var", "while", "xor", "__CLASS__", "__DIR__", "__FILE__", "__FUNCTION__", |
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 | |
use Behat\Behat\Context\Context; | |
use Symfony\Component\Process\Process; | |
class PhpServerContext implements Context | |
{ | |
/** | |
* @var Process | |
*/ |
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 | |
use Behat\Behat\Context\Context; | |
use Behat\Gherkin\Node\PyStringNode; | |
use Symfony\Component\Filesystem\Filesystem; | |
use Symfony\Component\Process\PhpExecutableFinder; | |
use Symfony\Component\Process\Process; | |
class BehatRunnerContext implements Context | |
{ |
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 | |
/** | |
* @license MIT | |
*/ | |
$loader = require_once __DIR__.'/bootstrap.php.cache'; | |
require_once __DIR__.'/AppKernel.php'; | |
use Symfony\Component\Config\ConfigCache; |
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
{ | |
"require": { | |
"symfony/form": "2.6.2", | |
"symfony/http-foundation": "2.6.2", | |
"symfony/twig-bridge": "2.3.*" | |
} | |
} |
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
# tools/docker/Dockerfile | |
FROM php:5.6-cli | |
VOLUME /symfony | |
WORKDIR /symfony | |
ENV COMPOSER_HOME=/usr/local/composer | |
ENV PATH /usr/local/composer/vendor/bin:$PATH | |
COPY php.ini /usr/local/etc/php/php.ini |
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
#!/bin/bash | |
ag 'function.*\(' | \ | |
sed -e 's/.*function \([^(]*\)(.*/\1/g' | \ | |
sort -u | \ | |
xargs -I% bash -c "[ `ag '%\(' | wc -l` == 1 ] && echo %" |
OlderNewer