tests: fix PHPUnit @requires for APCU
authorAntoine Musso <hashar@free.fr>
Tue, 3 Apr 2018 08:31:09 +0000 (10:31 +0200)
committerAddshore <addshorewiki@gmail.com>
Tue, 3 Apr 2018 12:21:55 +0000 (12:21 +0000)
commitbb683d51765a4eb6443c02bc39ed5bae89a4b06a
tree38ac73a859e1d9771262c852f3e31c7bb4dcd978
parent6cdc379153aadac058d3215958071f2b40085cd5
tests: fix PHPUnit @requires for APCU

@requires is an annotation used by PHPUnit to flag a test as requiring a
PHP function or extension. c214c9a95 changed it to list two functions
separated by a slash:

   @requires function apc_store/apcu_store

However that is not recognized by PHPUnit and the test is always
skipped.

Change the @requires to require the APCU extension.

Repro case:

  phpunit.php --verbose includes/libs/MemoizedCallableTest.php

Follow-up c214c9a95255abf1032d389d0fe8bcbde38b55db

Bug: T140587
Change-Id: I1fdd52c8fc8ca1c7c0c7f914e6da8774799ba5d8
tests/phpunit/includes/libs/MemoizedCallableTest.php