Fix SecretTest::substr() for PHP 5.3