This file contains hidden or 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/env php | |
<?php | |
if ($_SERVER['argc'] != 2) { | |
printf("%s: Converts assertType() into assertInternalType() or assertInstanceOf()\n\n", basename(__FILE__)); | |
printf("Usage: %s <tests directory>\n", basename(__FILE__)); | |
exit(11); | |
} | |
$directories = new RegexIterator( | |
new RecursiveIteratorIterator( |
This file contains hidden or 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 Jarlssen\Doctrine2\DBAL; | |
use Doctrine\DBAL\Connection, | |
Doctrine\DBAL\Driver, | |
Doctrine\ORM\Configuration, | |
Doctrine\Common\EventManager, | |
Doctrine\DBAL\Events; | |
class MasterSlaveConnection extends Connection |
This file contains hidden or 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 | |
class User | |
{ | |
} | |
class ActivityGroup | |
{ | |
} | |
interface UserFactory |
This file contains hidden or 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 | |
header("Content-Type: text/plain"); | |
define('DRUPAL_ROOT', getcwd()); | |
define('MAINTENANCE_MODE', 'update'); | |
ini_set('display_errors', TRUE); | |
require_once DRUPAL_ROOT . '/includes/bootstrap.inc'; | |
require_once DRUPAL_ROOT . '/includes/update.inc'; |
This file contains hidden or 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 InterNations\Component\Date\Value; | |
use DateTime as DateTimeBase; | |
use DateTimeZone; | |
use DateInterval; | |
class DateTime extends DateTimeBase | |
{ |
This file contains hidden or 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 | |
class Base | |
{ | |
public $property; | |
} | |
class Proxy extends Base | |
{ | |
private $interceptedProperties = array(); |
This file contains hidden or 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
{# layout.html.twig #} | |
<html> | |
<head> | |
{% block head %}{% endblock head %} | |
</head> | |
<body> | |
{% block body %}{% endblock body %} | |
</body> | |
</html> |
This file contains hidden or 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
--TEST-- | |
Multibyte characters shouldn't be split by soft line break added by quoted_printable_encode - 4 byte character test | |
--INI-- | |
default_charset=ISO-8859-1 | |
--FILE-- | |
<?php | |
var_dump(explode("\r\n", quoted_printable_encode(str_repeat("a", 74) . "\xf0\x9f\x84\x90"))); | |
?> | |
==DONE== | |
--EXPECT-- |
This file contains hidden or 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 | |
trait PrototypeContainerTrait | |
{ | |
public function __call($method, array $args) | |
{ | |
if (is_callable($this->$method)) { | |
return call_user_func_array($this->$method, $args); | |
} | |
} | |
} |
This file contains hidden or 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 | |
$list = array(new stdClass(), array(new stdClass())); | |
$it = new RecursiveIteratorIterator(new RecursiveArrayIterator($list)); | |
foreach ($it as $e) { | |
var_dump($e); | |
} |
OlderNewer