I would like to unit-test some of my codes. Im using the newest Phpunit. My phpunit.xml:
<?php<phpunit  bootstrap="../bootstrap.php" backupGlobals="false" backupStaticAttributes="false" verbose="true" colors="false" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false" syntaxCheck="true">
  <testsuites>
    <testsuite name="sdf">
      <file>cxvcxvcxxcv.php</file>
    </testsuite>
  </testsuites>
</phpunit>that bootstrap.php:
<?php
\Phalcon\Di::reset();
\Phalcon\Di::setDefault(new \Phalcon\DI\FactoryDefault());
\Phalcon\Di::getDefault()->setShared('t', function() {
  ...
});and now if I would like to use this from a static method:
<?php
\Phalcon\Di::getDefault()->get('t');it dies:
Cannot bind an instance to a static closure
what it can be?
its Php 5.6.16 and Phalcon 2.1.0b