I hereby claim:
- I am axiac on github.
- I am axiac (https://keybase.io/axiac) on keybase.
- I have a public key whose fingerprint is DBE8 F661 2144 A5DA E92B 12A5 C676 B18D 4CA4 8DD5
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
<?php | |
error_reporting(E_ALL & ~E_NOTICE); | |
ini_set('display_errors', '1'); | |
$glob = new GlobIterator(__DIR__.'/*.some-funky-termination-that-doesnt-match-any-file-in-this-directory'); | |
echo('Number of matching files: '.$glob->count()."\n"); | |
// It should display the above message with 0 files but it throws a confusing exception: | |
// LogicException: The parent constructor was not called: the object is in an invalid state |
<?php | |
function it($m,$p){echo ($p?'✔︎':'✘')." It $m\n"; if(!$p){$GLOBALS['f']=1;}}function done(){if(@$GLOBALS['f'])die(1);} |
<?php | |
/** | |
* Sample test case for https://github.com/sebastianbergmann/phpunit-mock-objects/issues/260 | |
*/ | |
interface Dependency | |
{ | |
/** |
/** | |
* A short program that verifies if three integer numbers can be the legs of a right-angle triangle. | |
* The program's purpose is to avoid overflowing when the legs are large numbers. | |
* | |
* It accompanies an answer to this StackOverflow question: http://stackoverflow.com/q/36623053/4265352 | |
* @link http://stackoverflow.com/a/36626811/4265352 | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> |
#!/bin/bash | |
# | |
# One-time script specifically designed to "transplant" a part of | |
# the PhpUnit MockObjects repo into the PhpUnit repo as a branch. | |
# @see https://github.com/sebastianbergmann/phpunit/issues/3103 | |
# | |
# | |
# Define some constants |