[constant-trickery] Better name for constant redefine method.

This commit is contained in:
Andreas Fischer 2013-01-13 19:08:20 +01:00
parent f62a9114b3
commit 6d24b92b11
4 changed files with 6 additions and 6 deletions

View File

@ -16,6 +16,6 @@ class Math_BigInteger_BCMathTest extends Math_BigInteger_TestCase
parent::setUpBeforeClass();
self::ensureModeConstant('MATH_BIGINTEGER_MODE', MATH_BIGINTEGER_MODE_BCMATH);
self::ensureConstant('MATH_BIGINTEGER_MODE', MATH_BIGINTEGER_MODE_BCMATH);
}
}

View File

@ -16,6 +16,6 @@ class Math_BigInteger_GMPTest extends Math_BigInteger_TestCase
parent::setUpBeforeClass();
self::ensureModeConstant('MATH_BIGINTEGER_MODE', MATH_BIGINTEGER_MODE_GMP);
self::ensureConstant('MATH_BIGINTEGER_MODE', MATH_BIGINTEGER_MODE_GMP);
}
}

View File

@ -11,6 +11,6 @@ class Math_BigInteger_InternalTest extends Math_BigInteger_TestCase
{
parent::setUpBeforeClass();
self::ensureModeConstant('MATH_BIGINTEGER_MODE', MATH_BIGINTEGER_MODE_INTERNAL);
self::ensureConstant('MATH_BIGINTEGER_MODE', MATH_BIGINTEGER_MODE_INTERNAL);
}
}

View File

@ -13,7 +13,7 @@ abstract class PhpseclibTestCase extends PHPUnit_Framework_TestCase
*
* @return null
*/
static protected function ensureModeConstant($constant, $expected)
static protected function ensureConstant($constant, $expected)
{
if (defined($constant))
{
@ -26,7 +26,7 @@ abstract class PhpseclibTestCase extends PHPUnit_Framework_TestCase
if (!runkit_constant_redefine($constant, $expected))
{
self::markTestSkipped(sprintf(
"Failed to redefine mode constant %s to %s",
"Failed to redefine constant %s to %s",
$constant,
$expected
));
@ -35,7 +35,7 @@ abstract class PhpseclibTestCase extends PHPUnit_Framework_TestCase
else
{
self::markTestSkipped(sprintf(
"Skipping test because mode constant %s is %s instead of %s",
"Skipping test because constant %s is %s instead of %s",
$constant,
$value,
$expected