Skip to content

Instantly share code, notes, and snippets.

PHPUnit 3.7.18 by Sebastian Bergmann.
Configuration read from /mnt/projects/SonataDoctrineMongoDBAdminBundle/phpunit.xml.dist
......................................PHP Fatal error: Call to protected method Sonata\DoctrineMongoDBAdminBundle\Filter\ModelFilter::fixIdentifier() from context '' in /mnt/projects/SonataDoctrineMongoDBAdminBundle/Filter/ModelFilter.php on line 62
PHP Stack trace:
PHP 1. {main}() /usr/bin/phpunit:0
PHP 2. PHPUnit_TextUI_Command::main($exit = *uninitialized*) /usr/bin/phpunit:46
PHP 3. PHPUnit_TextUI_Command->run($argv = array (0 => '/usr/bin/phpunit', 1 => '--stderr'), $exit = TRUE) /usr/share/php/PHPUnit/TextUI/Command.php:129
PHP 4. PHPUnit_TextUI_TestRunner->doRun($suite = class PHPUnit_Framework_TestSuite { protected $backupGlobals = FALSE; protected $backupStaticAttributes = NULL; protected $name = 'AdminBundle Test Suite'; protected $groups = array ('__nogroup__' => array (...)); protected $tests = array (0 => class PHPUnit_Framewo
$qb = $this->get('odm')->createQueryBuilder('Cesa2CourseBundle:DriveTime');
$qb->field('registrations')->elemMatch($qb->expr()
->field('student')->equals(new \MongoId($student->getId()))
->field('canceled')->equals(false)
);
$drivetimes = $qb->getQuery()->execute()->toArray(false);
@dao
dao / rinkeby.txt
Last active August 23, 2017 18:15
rinkeby
0x71513D643a75e38BF1489ecBE067828649ce2C6B
@dao
dao / omgeth_pine.txt
Created August 23, 2017 23:49
compare bitfinex actual and calculated omgeth prices
//@version=3
study("OMGETH")
omgusd = security("BITFINEX:OMGUSD", period, close)
ethusd = security("BITFINEX:ETHUSD", period, close)
omgethbf = security("BITFINEX:OMGETH", period, close)
plot(omgethbf, "BITFINEX:OMGETH", green)
omgeth = omgusd/ethusd
plot(omgeth, "OMGETH (calculated)", red)
### Keybase proof
I hereby claim:
* I am dao on github.
* I am notdao (https://keybase.io/notdao) on keybase.
* I have a public key ASD4_IE7UYdJPMHU0HGusdYR8IePZHKMlKRc5463gvYkKwo
To claim this, I am signing this object: