I hereby claim:
- I am morozov on github.
- I am morozov (https://keybase.io/morozov) on keybase.
- I have a public key whose fingerprint is 7A03 FFFD 3CFF EF05 3F88 037A 374E ADAF 543A E995
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
<?php | |
class Sorter | |
{ | |
private $callback; | |
public function __construct(array $orderBy) | |
{ | |
$functions = []; |
diff --git a/lib/Doctrine/DBAL/Connection.php b/lib/Doctrine/DBAL/Connection.php | |
index 2a1d9a1b9..4a9a9231a 100644 | |
--- a/lib/Doctrine/DBAL/Connection.php | |
+++ b/lib/Doctrine/DBAL/Connection.php | |
@@ -1254,7 +1254,7 @@ class Connection implements DriverConnection | |
$logger = $this->_config->getSQLLogger(); | |
- if ($this->_transactionNestingLevel == 1) { | |
+ if ($this->_transactionNestingLevel === 1) { |
#!/usr/bin/env bash | |
set -eu | |
if [ $# -ne 2 ]; then | |
echo "Usage: `basename $0` <pull> <branch>"; | |
exit 1; | |
fi | |
PULL="$1" |
Ninja test is a self-sufficient unit test that is fully responsible for setting up environment it depends on and doesn't rely on other tests. Unlike others, ninja-tests survive within any test suite, they are less subjected to accidental false-negative failures and don't require periodical fixing.
In order to see if your newly written test passes the ninja qualification, to run it with the following command:
php phpunit.php --bootstrap=/path/to/ninja.php -c tests/phpunit.xml /path/to/test.php
<?php | |
function format_sugar_query(SugarQuery $query) | |
{ | |
return format_builder( | |
$query->compile() | |
); | |
} | |
function format_builder(\Doctrine\DBAL\Query\QueryBuilder $builder) |
#!/usr/bin/env bash | |
set -euo pipefail | |
function __get_missing_keys { | |
php -- "$@" << 'EOF' | |
<?php | |
$args = $GLOBALS['argv']; | |
array_shift($args); |
sudo ./sockdump.py --format string --output dump.txt ~/.phpbrew/php/php-7.4.5/var/run/php-fpm.sock
/example.phar | |
/vendor |
/vendor |