Skip to content

Instantly share code, notes, and snippets.

@irnnr
irnnr / README.md
Last active October 2, 2015 02:14
TYPO3 Dynamic Return Type code completion
diff --git a/Composer/vendor/phpunit/phpunit/PHPUnit/Util/GlobalState.php b/Composer/vendor/phpunit/phpunit/PHPUnit/Util/GlobalState.php
index 2737985..baba04e 100644
--- a/Composer/vendor/phpunit/phpunit/PHPUnit/Util/GlobalState.php
+++ b/Composer/vendor/phpunit/phpunit/PHPUnit/Util/GlobalState.php
@@ -112,7 +112,7 @@ public static function backupGlobals(array $blacklist)
!in_array($key, $superGlobalArrays) &&
!in_array($key, $blacklist) &&
!$GLOBALS[$key] instanceof Closure) {
- self::$globals['GLOBALS'][$key] = serialize($GLOBALS[$key]);
+ self::$globals['GLOBALS'][$key] = $GLOBALS[$key];
@htuscher
htuscher / FeatureContext.php
Created September 11, 2013 15:46
FeatureContext using Mink for TYPO3 Backend automation
<?php
use Behat\Behat\Context\ClosuredContextInterface,
Behat\Behat\Context\TranslatedContextInterface,
Behat\Behat\Context\BehatContext,
Behat\Behat\Context\Step,
Behat\Behat\Exception\PendingException,
Behat\Behat\Event\ScenarioEvent;
use Behat\Gherkin\Node\PyStringNode,
@IchHabRecht
IchHabRecht / git-write-changelog
Last active December 22, 2015 19:49
Writes a ChangeLog depending on your git commits
#!/bin/sh
WRITE=false
FILE="ChangeLog"
GITPATH="master..HEAD"
while [ "$1" != "" ]; do
case $1 in
-c )
GITPATH=""
@IchHabRecht
IchHabRecht / gist:6521965
Last active December 22, 2015 19:49
Composer installation of mink/behat
"C:\Users\Nicole\Version Control\Composer\behat\composer.json"
{
"require": {
"behat/behat": "2.4.*@stable",
"behat/mink": "1.4@stable",
"behat/mink-goutte-driver": "*",
"behat/mink-selenium-driver": "*",
"behat/mink-selenium2-driver": "*",
"behat/mink-sahi-driver": "*",
@smichaelsen
smichaelsen / TypolinkViewHelper.php
Last active December 16, 2015 13:48
Link ViewHelper that accepts a stdWrap.typolink.parameter string
<?php
class Tx_Myext_ViewHelpers_Link_TypolinkViewHelper extends Tx_Fluid_Core_ViewHelper_AbstractViewHelper {
/**
* @param string $parameter stdWrap.typolink style parameter string
* @return string
*/
public function render($parameter) {
$this->extPath = t3lib_extMgm::extPath($this->extKey);
$view = t3lib_div::makeInstance('Tx_Fluid_View_StandaloneView');
$view->setLayoutRootPath(t3lib_extMgm::extPath($this->extKey) . 'Resources/Private/Layouts/');
$view->setPartialRootPath(t3lib_extMgm::extPath($this->extKey) . 'Resources/Private/Partials/');
$view->setTemplatePathAndFilename($this->extPath . 'Resources/Private/Templates/File.html');
// initialize locallang
$view->getRequest()->setControllerExtensionName($this->extKey);
$view->assign('helloworld', $helloworld);
anonymous
anonymous / SessionRepository.php
Created February 18, 2013 16:03
<?php
/***************************************************************
* Copyright notice
*
* (c) 2013 Jan Kiesewetter <janYYYY@t3easy.de>, t3easy
*
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is