PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB` * @copyright MMXIII Andreas Fischer * @license http://www.opensource.org/licenses/mit-license.html MIT License */ abstract class PhpseclibTestCase extends PHPUnit_Framework_TestCase { /** * @param string $constant * @param mixed $expected * * @return null */ static protected function ensureConstant($constant, $expected) { if (defined($constant)) { $value = constant($constant); if ($value !== $expected) { if (function_exists('runkit_constant_redefine')) { if (!runkit_constant_redefine($constant, $expected)) { self::markTestSkipped(sprintf( "Failed to redefine constant %s to %s", $constant, $expected )); } } else { self::markTestSkipped(sprintf( "Skipping test because constant %s is %s instead of %s", $constant, $value, $expected )); } } } else { define($constant, $expected); } } /** * @param string $filename * * @return null */ static protected function reRequireFile($filename) { if (function_exists('runkit_import')) { $result = runkit_import( $filename, RUNKIT_IMPORT_FUNCTIONS | RUNKIT_IMPORT_CLASS_METHODS | RUNKIT_IMPORT_OVERRIDE ); if (!$result) { self::markTestSkipped("Failed to reimport file $filename"); } } } }