function LocaleInstallTest::testFunctionSignatures

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

File

drupal/core/modules/locale/lib/Drupal/locale/Tests/LocaleInstallTest.php, line 42
Definition of Drupal\locale\Tests\LocaleInstallTest.

Class

LocaleInstallTest
Tests for the st() function.

Namespace

Drupal\locale\Tests

Code

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