function LocaleInstallTest::testFunctionSignatures

Verify that function signatures of t() and st() are equal.

File

modules/locale/locale.test, line 1439

Class

LocaleInstallTest
Tests for the st() function.

Code

function testFunctionSignatures() {
    $reflector_t = new ReflectionFunction('t');
    $reflector_st = new ReflectionFunction('st');
    $this->assertEqual($reflector_t->getParameters(), $reflector_st->getParameters(), 'Function signatures of t() and st() are equal.');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.