Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2016-05-20 16:38:20 +0300
committerThomas Müller <DeepDiver1975@users.noreply.github.com>2016-05-20 16:38:20 +0300
commit94ad54ec9b96d41a614fbbad4a97b34c41a6901f (patch)
treef3eb7cdda2704aaf0cd59d58efe66bcbd34cb67d
parent2ef751b1ec28f7b5c7113af60ec8c9fa0ae1cf87 (diff)
Move tests/ to PSR-4 (#24731)
* Move a-b to PSR-4 * Move c-d to PSR-4 * Move e+g to PSR-4 * Move h-l to PSR-4 * Move m-r to PSR-4 * Move s-u to PSR-4 * Move files/ to PSR-4 * Move remaining tests to PSR-4 * Remove Test\ from old autoloader
-rw-r--r--lib/autoloader.php2
-rw-r--r--tests/bootstrap.php1
-rw-r--r--tests/lib/Activity/ManagerTest.php (renamed from tests/lib/activity/managertest.php)0
-rw-r--r--tests/lib/App/CodeChecker/CodeCheckerTest.php (renamed from tests/lib/app/codechecker/codecheckertest.php)0
-rw-r--r--tests/lib/App/CodeChecker/DeprecationCheckTest.php (renamed from tests/lib/app/codechecker/deprecationchecktest.php)0
-rw-r--r--tests/lib/App/CodeChecker/InfoCheckerTest.php (renamed from tests/lib/app/codechecker/infocheckertest.php)5
-rw-r--r--tests/lib/App/CodeChecker/Mock/TestList.php (renamed from tests/lib/app/codechecker/mock/testlist.php)0
-rw-r--r--tests/lib/App/CodeChecker/NodeVisitorTest.php (renamed from tests/lib/app/codechecker/nodevisitortest.php)2
-rw-r--r--tests/lib/App/CodeChecker/StrongComparisonCheckTest.php (renamed from tests/lib/app/codechecker/strongcomparisonchecktest.php)0
-rw-r--r--tests/lib/App/DependencyAnalyzerTest.php (renamed from tests/lib/app/dependencyanalyzer.php)2
-rw-r--r--tests/lib/App/InfoParserTest.php (renamed from tests/lib/app/infoparser.php)2
-rw-r--r--tests/lib/App/ManagerTest.php (renamed from tests/lib/app/manager.php)2
-rw-r--r--tests/lib/App/PlatformRepositoryTest.php (renamed from tests/lib/app/platformrepository.php)2
-rw-r--r--tests/lib/AppConfigTest.php (renamed from tests/lib/appconfig.php)4
-rw-r--r--tests/lib/AppFramework/AppTest.php (renamed from tests/lib/appframework/AppTest.php)0
-rw-r--r--tests/lib/AppFramework/Controller/ApiControllerTest.php (renamed from tests/lib/appframework/controller/ApiControllerTest.php)0
-rw-r--r--tests/lib/AppFramework/Controller/ControllerTest.php (renamed from tests/lib/appframework/controller/ControllerTest.php)0
-rw-r--r--tests/lib/AppFramework/Controller/OCSControllerTest.php (renamed from tests/lib/appframework/controller/OCSControllerTest.php)0
-rw-r--r--tests/lib/AppFramework/Db/EntityTest.php (renamed from tests/lib/appframework/db/EntityTest.php)0
-rw-r--r--tests/lib/AppFramework/Db/MapperTest.php (renamed from tests/lib/appframework/db/mappertest.php)0
-rw-r--r--tests/lib/AppFramework/Db/MapperTestUtility.php (renamed from tests/lib/appframework/db/mappertestutility.php)0
-rw-r--r--tests/lib/AppFramework/DependencyInjection/DIContainerTest.php (renamed from tests/lib/appframework/dependencyinjection/DIContainerTest.php)0
-rw-r--r--tests/lib/AppFramework/Http/ContentSecurityPolicyTest.php (renamed from tests/lib/appframework/http/ContentSecurityPolicyTest.php)0
-rw-r--r--tests/lib/AppFramework/Http/DataResponseTest.php (renamed from tests/lib/appframework/http/DataResponseTest.php)0
-rw-r--r--tests/lib/AppFramework/Http/DispatcherTest.php (renamed from tests/lib/appframework/http/DispatcherTest.php)0
-rw-r--r--tests/lib/AppFramework/Http/DownloadResponseTest.php (renamed from tests/lib/appframework/http/DownloadResponseTest.php)0
-rw-r--r--tests/lib/AppFramework/Http/EmptyContentSecurityPolicyTest.php (renamed from tests/lib/appframework/http/EmptyContentSecurityPolicyTest.php)0
-rw-r--r--tests/lib/AppFramework/Http/HttpTest.php (renamed from tests/lib/appframework/http/HttpTest.php)0
-rw-r--r--tests/lib/AppFramework/Http/JSONResponseTest.php (renamed from tests/lib/appframework/http/JSONResponseTest.php)0
-rw-r--r--tests/lib/AppFramework/Http/OCSResponseTest.php (renamed from tests/lib/appframework/http/OCSResponseTest.php)0
-rw-r--r--tests/lib/AppFramework/Http/RedirectResponseTest.php (renamed from tests/lib/appframework/http/RedirectResponseTest.php)0
-rw-r--r--tests/lib/AppFramework/Http/RequestStream.php (renamed from tests/lib/appframework/http/requeststream.php)3
-rw-r--r--tests/lib/AppFramework/Http/RequestTest.php (renamed from tests/lib/appframework/http/RequestTest.php)3
-rw-r--r--tests/lib/AppFramework/Http/ResponseTest.php (renamed from tests/lib/appframework/http/ResponseTest.php)0
-rw-r--r--tests/lib/AppFramework/Http/StreamResponseTest.php (renamed from tests/lib/appframework/http/StreamResponseTest.php)0
-rw-r--r--tests/lib/AppFramework/Http/TemplateResponseTest.php (renamed from tests/lib/appframework/http/TemplateResponseTest.php)0
-rw-r--r--tests/lib/AppFramework/Middleware/MiddlewareDispatcherTest.php (renamed from tests/lib/appframework/middleware/MiddlewareDispatcherTest.php)0
-rw-r--r--tests/lib/AppFramework/Middleware/MiddlewareTest.php (renamed from tests/lib/appframework/middleware/MiddlewareTest.php)0
-rw-r--r--tests/lib/AppFramework/Middleware/Security/CORSMiddlewareTest.php (renamed from tests/lib/appframework/middleware/security/CORSMiddlewareTest.php)0
-rw-r--r--tests/lib/AppFramework/Middleware/Security/SecurityMiddlewareTest.php (renamed from tests/lib/appframework/middleware/security/SecurityMiddlewareTest.php)0
-rw-r--r--tests/lib/AppFramework/Middleware/SessionMiddlewareTest.php (renamed from tests/lib/appframework/middleware/sessionmiddlewaretest.php)0
-rw-r--r--tests/lib/AppFramework/Routing/RoutingTest.php (renamed from tests/lib/appframework/routing/RoutingTest.php)0
-rw-r--r--tests/lib/AppFramework/Utility/ControllerMethodReflectorTest.php (renamed from tests/lib/appframework/utility/ControllerMethodReflectorTest.php)0
-rw-r--r--tests/lib/AppFramework/Utility/SimpleContainerTest.php (renamed from tests/lib/appframework/utility/SimpleContainerTest.php)0
-rw-r--r--tests/lib/Archive/TARTest.php (renamed from tests/lib/archive/tartest.php)0
-rw-r--r--tests/lib/Archive/TestBase.php (renamed from tests/lib/archive/testbase.php)0
-rw-r--r--tests/lib/Archive/ZIPTest.php (renamed from tests/lib/archive/ziptest.php)0
-rw-r--r--tests/lib/Authentication/Token/DefaultTokenCleanupJobTest.php (renamed from tests/lib/authentication/token/defaulttokencleanupjobtest.php)0
-rw-r--r--tests/lib/Authentication/Token/DefaultTokenMapperTest.php (renamed from tests/lib/authentication/token/defaulttokenmappertest.php)0
-rw-r--r--tests/lib/Authentication/Token/DefaultTokenProviderTest.php (renamed from tests/lib/authentication/token/defaulttokenprovidertest.php)0
-rw-r--r--tests/lib/AutoLoaderTest.php (renamed from tests/lib/autoloader.php)8
-rw-r--r--tests/lib/AvatarManagerTest.php (renamed from tests/lib/avatarmanagertest.php)0
-rw-r--r--tests/lib/AvatarTest.php (renamed from tests/lib/avatartest.php)0
-rw-r--r--tests/lib/BackgroundJob/DummyJobList.php (renamed from tests/lib/backgroundjob/dummyjoblist.php)0
-rw-r--r--tests/lib/BackgroundJob/JobListTest.php (renamed from tests/lib/backgroundjob/joblist.php)2
-rw-r--r--tests/lib/BackgroundJob/JobTest.php (renamed from tests/lib/backgroundjob/job.php)2
-rw-r--r--tests/lib/BackgroundJob/QueuedJobTest.php (renamed from tests/lib/backgroundjob/queuedjob.php)4
-rw-r--r--tests/lib/BackgroundJob/TestJob.php (renamed from tests/lib/backgroundjob/testjob.php)2
-rw-r--r--tests/lib/BackgroundJob/TimedJobTest.php (renamed from tests/lib/backgroundjob/timedjob.php)4
-rw-r--r--tests/lib/Cache/CappedMemoryCacheTest.php (renamed from tests/lib/cache/cappedmemorycache.php)4
-rw-r--r--tests/lib/Cache/FileCacheTest.php (renamed from tests/lib/cache/filecache.php)4
-rw-r--r--tests/lib/Cache/TestCache.php (renamed from tests/lib/cache/testcache.php)0
-rw-r--r--tests/lib/Command/AsyncBusTest.php (renamed from tests/lib/command/asyncbus.php)16
-rw-r--r--tests/lib/Command/BackgroundJobsTest.php (renamed from tests/lib/command/backgroundjobs.php)2
-rw-r--r--tests/lib/Command/Integrity/SignAppTest.php (renamed from tests/lib/command/integrity/SignAppTest.php)0
-rw-r--r--tests/lib/Command/Integrity/SignCoreTest.php (renamed from tests/lib/command/integrity/SignCoreTest.php)0
-rw-r--r--tests/lib/Comments/CommentTest.php (renamed from tests/lib/comments/commenttest.php)0
-rw-r--r--tests/lib/Comments/FakeFactory.php (renamed from tests/lib/comments/fakefactory.php)0
-rw-r--r--tests/lib/Comments/FakeManager.php (renamed from tests/lib/comments/fakemanager.php)0
-rw-r--r--tests/lib/Comments/ManagerTest.php (renamed from tests/lib/comments/managertest.php)0
-rw-r--r--tests/lib/DB/ConnectionTest.php (renamed from tests/lib/db/connection.php)2
-rw-r--r--tests/lib/DB/DBSchemaTest.php (renamed from tests/lib/db/DBSchemaTest.php)0
-rw-r--r--tests/lib/DB/LegacyDBTest.php (renamed from tests/lib/db/LegacyDBTest.php)0
-rw-r--r--tests/lib/DB/MDB2SchemaManagerTest.php (renamed from tests/lib/db/mdb2schemamanager.php)2
-rw-r--r--tests/lib/DB/MDB2SchemaReaderTest.php (renamed from tests/lib/db/mdb2schemareader.php)2
-rw-r--r--tests/lib/DB/MigratorTest.php (renamed from tests/lib/db/migrator.php)4
-rw-r--r--tests/lib/DB/MySqlMigrationTest.php (renamed from tests/lib/db/mysqlmigration.php)2
-rw-r--r--tests/lib/DB/QueryBuilder/ExpressionBuilderTest.php (renamed from tests/lib/db/querybuilder/expressionbuildertest.php)0
-rw-r--r--tests/lib/DB/QueryBuilder/QueryBuilderTest.php (renamed from tests/lib/db/querybuilder/querybuildertest.php)0
-rw-r--r--tests/lib/DB/QueryBuilder/QuoteHelperTest.php (renamed from tests/lib/db/querybuilder/quotehelpertest.php)0
-rw-r--r--tests/lib/DB/SqliteMigrationTest.php (renamed from tests/lib/db/sqlitemigration.php)2
-rw-r--r--tests/lib/DB/testschema.xml (renamed from tests/lib/db/testschema.xml)0
-rw-r--r--tests/lib/DB/ts-autoincrement-after.xml (renamed from tests/lib/db/ts-autoincrement-after.xml)0
-rw-r--r--tests/lib/DB/ts-autoincrement-before.xml (renamed from tests/lib/db/ts-autoincrement-before.xml)0
-rw-r--r--tests/lib/DateTimeFormatterTest.php (renamed from tests/lib/datetimeformatter.php)2
-rw-r--r--tests/lib/Encryption/DecryptAllTest.php (renamed from tests/lib/encryption/decryptalltest.php)0
-rw-r--r--tests/lib/Encryption/EncryptionWrapperTest.php (renamed from tests/lib/encryption/encryptionwrappertest.php)0
-rw-r--r--tests/lib/Encryption/Keys/StorageTest.php (renamed from tests/lib/encryption/keys/storagetest.php)0
-rw-r--r--tests/lib/Encryption/ManagerTest.php (renamed from tests/lib/encryption/managertest.php)0
-rw-r--r--tests/lib/Encryption/UpdateTest.php (renamed from tests/lib/encryption/updatetest.php)0
-rw-r--r--tests/lib/Encryption/UtilTest.php (renamed from tests/lib/encryption/utiltest.php)0
-rw-r--r--tests/lib/FileChunkingTest.php (renamed from tests/lib/filechunking.php)2
-rw-r--r--tests/lib/Files/Cache/CacheTest.php (renamed from tests/lib/files/cache/cache.php)4
-rw-r--r--tests/lib/Files/Cache/HomeCacheTest.php (renamed from tests/lib/files/cache/homecache.php)4
-rw-r--r--tests/lib/Files/Cache/MoveFromCacheTraitTest.php (renamed from tests/lib/files/cache/movefromcachetraittest.php)4
-rw-r--r--tests/lib/Files/Cache/ScannerTest.php (renamed from tests/lib/files/cache/scanner.php)4
-rw-r--r--tests/lib/Files/Cache/UpdaterLegacyTest.php (renamed from tests/lib/files/cache/updaterlegacy.php)4
-rw-r--r--tests/lib/Files/Cache/UpdaterTest.php (renamed from tests/lib/files/cache/updater.php)4
-rw-r--r--tests/lib/Files/Cache/WatcherTest.php (renamed from tests/lib/files/cache/watcher.php)4
-rw-r--r--tests/lib/Files/Cache/Wrapper/CacheJailTest.php (renamed from tests/lib/files/cache/wrapper/cachejail.php)4
-rw-r--r--tests/lib/Files/Cache/Wrapper/CachePermissionsMaskTest.php (renamed from tests/lib/files/cache/wrapper/cachepermissionsmask.php)4
-rw-r--r--tests/lib/Files/Config/UserMountCacheTest.php (renamed from tests/lib/files/config/usermountcache.php)2
-rw-r--r--tests/lib/Files/EtagTest.php (renamed from tests/lib/files/etagtest.php)0
-rw-r--r--tests/lib/Files/FilesystemTest.php (renamed from tests/lib/files/filesystem.php)4
-rw-r--r--tests/lib/Files/Mount/ManagerTest.php (renamed from tests/lib/files/mount/manager.php)2
-rw-r--r--tests/lib/Files/Mount/MountPointTest.php (renamed from tests/lib/files/mount/mountpoint.php)6
-rw-r--r--tests/lib/Files/Mount/MountTest.php (renamed from tests/lib/files/mount/mount.php)2
-rw-r--r--tests/lib/Files/Node/FileTest.php (renamed from tests/lib/files/node/file.php)2
-rw-r--r--tests/lib/Files/Node/FolderTest.php (renamed from tests/lib/files/node/folder.php)4
-rw-r--r--tests/lib/Files/Node/HookConnectorTest.php (renamed from tests/lib/files/node/hookconnector.php)4
-rw-r--r--tests/lib/Files/Node/IntegrationTest.php (renamed from tests/lib/files/node/IntegrationTest.php)2
-rw-r--r--tests/lib/Files/Node/NodeTest.php (renamed from tests/lib/files/node/node.php)2
-rw-r--r--tests/lib/Files/Node/RootTest.php (renamed from tests/lib/files/node/root.php)2
-rw-r--r--tests/lib/Files/ObjectStore/NoopScannerTest.php (renamed from tests/lib/files/objectstore/noopscanner.php)4
-rw-r--r--tests/lib/Files/ObjectStore/SwiftTest.php (renamed from tests/lib/files/objectstore/SwiftTest.php)2
-rw-r--r--tests/lib/Files/PathVerificationTest.php (renamed from tests/lib/files/pathverificationtest.php)2
-rw-r--r--tests/lib/Files/Storage/CommonTest.php (renamed from tests/lib/files/storage/commontest.php)0
-rw-r--r--tests/lib/Files/Storage/CopyDirectoryTest.php (renamed from tests/lib/files/storage/copydirectory.php)4
-rw-r--r--tests/lib/Files/Storage/HomeStorageQuotaTest.php (renamed from tests/lib/files/storage/homestoragequota.php)4
-rw-r--r--tests/lib/Files/Storage/HomeTest.php (renamed from tests/lib/files/storage/home.php)2
-rw-r--r--tests/lib/Files/Storage/LocalTest.php (renamed from tests/lib/files/storage/local.php)4
-rw-r--r--tests/lib/Files/Storage/Storage.php (renamed from tests/lib/files/storage/storage.php)0
-rw-r--r--tests/lib/Files/Storage/StorageFactoryTest.php (renamed from tests/lib/files/storage/storagefactory.php)2
-rw-r--r--tests/lib/Files/Storage/Wrapper/AvailabilityTest.php (renamed from tests/lib/files/storage/wrapper/availability.php)2
-rw-r--r--tests/lib/Files/Storage/Wrapper/EncryptionTest.php (renamed from tests/lib/files/storage/wrapper/encryption.php)2
-rw-r--r--tests/lib/Files/Storage/Wrapper/JailTest.php (renamed from tests/lib/files/storage/wrapper/jail.php)2
-rw-r--r--tests/lib/Files/Storage/Wrapper/PermissionsMaskTest.php (renamed from tests/lib/files/storage/wrapper/permissionsmask.php)2
-rw-r--r--tests/lib/Files/Storage/Wrapper/QuotaTest.php (renamed from tests/lib/files/storage/wrapper/quota.php)4
-rw-r--r--tests/lib/Files/Storage/Wrapper/WrapperTest.php (renamed from tests/lib/files/storage/wrapper/wrapper.php)2
-rw-r--r--tests/lib/Files/Stream/DummyEncryptionWrapper.php (renamed from tests/lib/files/stream/dummyencryptionwrapper.php)0
-rw-r--r--tests/lib/Files/Stream/EncryptionTest.php (renamed from tests/lib/files/stream/encryption.php)2
-rw-r--r--tests/lib/Files/Stream/QuotaTest.php (renamed from tests/lib/files/stream/quota.php)2
-rw-r--r--tests/lib/Files/Stream/StaticStreamTest.php (renamed from tests/lib/files/stream/staticstream.php)2
-rw-r--r--tests/lib/Files/Type/DetectionTest.php (renamed from tests/lib/files/type/DetectionTest.php)0
-rw-r--r--tests/lib/Files/Type/LoaderTest.php (renamed from tests/lib/files/type/loadertest.php)0
-rw-r--r--tests/lib/Files/Utils/ScannerTest.php (renamed from tests/lib/files/utils/scanner.php)4
-rw-r--r--tests/lib/Files/ViewTest.php (renamed from tests/lib/files/view.php)4
-rw-r--r--tests/lib/FilesTest.php (renamed from tests/lib/files.php)2
-rw-r--r--tests/lib/Group/Backend.php (renamed from tests/lib/group/backend.php)2
-rw-r--r--tests/lib/Group/DatabaseTest.php (renamed from tests/lib/group/database.php)2
-rw-r--r--tests/lib/Group/Dummy.php (renamed from tests/lib/group/dummy.php)0
-rw-r--r--tests/lib/Group/GroupTest.php (renamed from tests/lib/group/group.php)2
-rw-r--r--tests/lib/Group/LegacyGroupTest.php (renamed from tests/lib/group/LegacyGroupTest.php)0
-rw-r--r--tests/lib/Group/ManagerTest.php (renamed from tests/lib/group/manager.php)2
-rw-r--r--tests/lib/Group/MetaDataTest.php (renamed from tests/lib/group/metadatatest.php)0
-rw-r--r--tests/lib/HookHelper.php (renamed from tests/lib/hookhelper.php)0
-rw-r--r--tests/lib/Hooks/BasicEmitterTest.php (renamed from tests/lib/hooks/basicemitter.php)4
-rw-r--r--tests/lib/Hooks/ForwardingEmitterTest.php (renamed from tests/lib/hooks/forwardingemitter.php)2
-rw-r--r--tests/lib/Hooks/LegacyEmitterTest.php (renamed from tests/lib/hooks/legacyemitter.php)6
-rw-r--r--tests/lib/Http/Client/ClientServiceTest.php (renamed from tests/lib/http/client/clientservicetest.php)0
-rw-r--r--tests/lib/Http/Client/ClientTest.php (renamed from tests/lib/http/client/clienttest.php)0
-rw-r--r--tests/lib/Http/Client/ResponseTest.php (renamed from tests/lib/http/client/responsetest.php)0
-rw-r--r--tests/lib/IntegrityCheck/CheckerTest.php (renamed from tests/lib/integritycheck/checkertest.php)0
-rw-r--r--tests/lib/IntegrityCheck/Helpers/AppLocatorTest.php (renamed from tests/lib/integritycheck/helpers/AppLocatorTest.php)0
-rw-r--r--tests/lib/IntegrityCheck/Helpers/EnvironmentHelperTest.php (renamed from tests/lib/integritycheck/helpers/EnvironmentHelperTest.php)0
-rw-r--r--tests/lib/IntegrityCheck/Helpers/FileAccessHelperTest.php (renamed from tests/lib/integritycheck/helpers/FileAccessHelperTest.php)0
-rw-r--r--tests/lib/L10N/FactoryTest.php (renamed from tests/lib/l10n/factorytest.php)0
-rw-r--r--tests/lib/L10N/L10nLegacyTest.php (renamed from tests/lib/l10n/l10nlegacytest.php)0
-rw-r--r--tests/lib/L10N/L10nTest.php (renamed from tests/lib/l10n/l10ntest.php)0
-rw-r--r--tests/lib/LargeFileHelperGetFileSizeTest.php (renamed from tests/lib/largefilehelpergetfilesize.php)2
-rw-r--r--tests/lib/LargeFileHelperTest.php (renamed from tests/lib/largefilehelper.php)2
-rw-r--r--tests/lib/Lock/DBLockingProviderTest.php (renamed from tests/lib/lock/dblockingprovider.php)2
-rw-r--r--tests/lib/Lock/LockingProvider.php (renamed from tests/lib/lock/lockingprovider.php)0
-rw-r--r--tests/lib/Lock/MemcacheLockingProviderTest.php (renamed from tests/lib/lock/memcachelockingprovider.php)2
-rw-r--r--tests/lib/Log/OwncloudTest.php (renamed from tests/lib/log/OwncloudTest.php)0
-rw-r--r--tests/lib/LoggerTest.php (renamed from tests/lib/logger.php)4
-rw-r--r--tests/lib/Mail/MailerTest.php (renamed from tests/lib/mail/MailerTest.php)0
-rw-r--r--tests/lib/Mail/MessageTest.php (renamed from tests/lib/mail/MessageTest.php)0
-rw-r--r--tests/lib/Memcache/APCTest.php (renamed from tests/lib/memcache/apc.php)2
-rw-r--r--tests/lib/Memcache/APCuTest.php (renamed from tests/lib/memcache/apcu.php)2
-rw-r--r--tests/lib/Memcache/ArrayCacheTest.php (renamed from tests/lib/memcache/arraycache.php)2
-rw-r--r--tests/lib/Memcache/Cache.php (renamed from tests/lib/memcache/cache.php)0
-rw-r--r--tests/lib/Memcache/CasTraitTest.php (renamed from tests/lib/memcache/castrait.php)2
-rw-r--r--tests/lib/Memcache/FactoryTest.php (renamed from tests/lib/memcache/FactoryTest.php)0
-rw-r--r--tests/lib/Memcache/MemcachedTest.php (renamed from tests/lib/memcache/memcached.php)2
-rw-r--r--tests/lib/Memcache/RedisTest.php (renamed from tests/lib/memcache/redis.php)2
-rw-r--r--tests/lib/Memcache/XCacheTest.php (renamed from tests/lib/memcache/xcache.php)2
-rw-r--r--tests/lib/Migration/BackgroundRepairTest.php (renamed from tests/lib/migration/BackgroundRepairTest.php)0
-rw-r--r--tests/lib/NavigationManagerTest.php (renamed from tests/lib/navigationmanagertest.php)0
-rw-r--r--tests/lib/Notification/ActionTest.php (renamed from tests/lib/notification/actiontest.php)0
-rw-r--r--tests/lib/Notification/ManagerTest.php (renamed from tests/lib/notification/managertest.php)0
-rw-r--r--tests/lib/Notification/NotificationTest.php (renamed from tests/lib/notification/notificationtest.php)0
-rw-r--r--tests/lib/OCS/MapStatusCodeTest.php (renamed from tests/lib/ocs/MapStatusCodeTest.php)0
-rw-r--r--tests/lib/OCS/PrivatedataTest.php (renamed from tests/lib/ocs/PrivatedataTest.php)0
-rw-r--r--tests/lib/OCS/ProviderTest.php (renamed from tests/lib/ocs/ProviderTest.php)0
-rw-r--r--tests/lib/OCSClientTest.php (renamed from tests/lib/ocsclienttest.php)0
-rw-r--r--tests/lib/Preview/BitmapTest.php (renamed from tests/lib/preview/bitmap.php)4
-rw-r--r--tests/lib/Preview/ImageTest.php (renamed from tests/lib/preview/image.php)4
-rw-r--r--tests/lib/Preview/MP3Test.php (renamed from tests/lib/preview/mp3.php)4
-rw-r--r--tests/lib/Preview/MovieTest.php (renamed from tests/lib/preview/movie.php)4
-rw-r--r--tests/lib/Preview/OfficeTest.php (renamed from tests/lib/preview/office.php)4
-rw-r--r--tests/lib/Preview/Provider.php (renamed from tests/lib/preview/provider.php)0
-rw-r--r--tests/lib/Preview/SVGTest.php (renamed from tests/lib/preview/svg.php)4
-rw-r--r--tests/lib/Preview/TXTTest.php (renamed from tests/lib/preview/txt.php)4
-rw-r--r--tests/lib/PreviewTest.php (renamed from tests/lib/preview.php)4
-rw-r--r--tests/lib/PublicNamespace/ContactsTest.php (renamed from tests/lib/publicnamespace/ContactsTest.php)0
-rw-r--r--tests/lib/PublicNamespace/OCPConfigTest.php (renamed from tests/lib/publicnamespace/OCPConfigTest.php)0
-rw-r--r--tests/lib/PublicNamespace/UtilTest.php (renamed from tests/lib/publicnamespace/UtilTest.php)0
-rw-r--r--tests/lib/Repair/CleanTagsTest.php (renamed from tests/lib/repair/cleantags.php)2
-rw-r--r--tests/lib/Repair/DropOldJobsTest.php (renamed from tests/lib/repair/dropoldjobs.php)2
-rw-r--r--tests/lib/Repair/DropOldTablesTest.php (renamed from tests/lib/repair/dropoldtables.php)2
-rw-r--r--tests/lib/Repair/OldGroupMembershipSharesTest.php (renamed from tests/lib/repair/oldgroupmembershipsharestest.php)0
-rw-r--r--tests/lib/Repair/RemoveGetETagEntriesTest.php (renamed from tests/lib/repair/removegetetagentriestest.php)0
-rw-r--r--tests/lib/Repair/RepairCollationTest.php (renamed from tests/lib/repair/RepairCollationTest.php)0
-rw-r--r--tests/lib/Repair/RepairInnoDBTest.php (renamed from tests/lib/repair/repairinnodb.php)2
-rw-r--r--tests/lib/Repair/RepairInvalidSharesTest.php (renamed from tests/lib/repair/repairinvalidsharestest.php)0
-rw-r--r--tests/lib/Repair/RepairLegacyStoragesTest.php (renamed from tests/lib/repair/repairlegacystorage.php)2
-rw-r--r--tests/lib/Repair/RepairMimeTypesTest.php (renamed from tests/lib/repair/repairmimetypes.php)2
-rw-r--r--tests/lib/Repair/RepairSharePropagationTest.php (renamed from tests/lib/repair/repairsharepropagation.php)2
-rw-r--r--tests/lib/Repair/RepairSqliteAutoincrementTest.php (renamed from tests/lib/repair/repairsqliteautoincrement.php)2
-rw-r--r--tests/lib/Repair/UpdateOutdatedOcsIdsTest.php (renamed from tests/lib/repair/updateoutdatedocsids.php)2
-rw-r--r--tests/lib/Repair/fixtures/dropoldtables.xml (renamed from tests/lib/repair/fixtures/dropoldtables.xml)0
-rw-r--r--tests/lib/Security/CSP/ContentSecurityPolicyManagerTest.php (renamed from tests/lib/security/csp/ContentSecurityPolicyManagerTest.php)0
-rw-r--r--tests/lib/Security/CSRF/CsrfTokenGeneratorTest.php (renamed from tests/lib/security/csrf/CsrfTokenGeneratorTest.php)0
-rw-r--r--tests/lib/Security/CSRF/CsrfTokenManagerTest.php (renamed from tests/lib/security/csrf/CsrfTokenManagerTest.php)0
-rw-r--r--tests/lib/Security/CSRF/CsrfTokenTest.php (renamed from tests/lib/security/csrf/CsrfTokenTest.php)0
-rw-r--r--tests/lib/Security/CSRF/TokenStorage/SessionStorageTest.php (renamed from tests/lib/security/csrf/tokenstorage/SessionStorageTest.php)0
-rw-r--r--tests/lib/Security/CertificateManagerTest.php (renamed from tests/lib/security/CertificateManagerTest.php)0
-rw-r--r--tests/lib/Security/CertificateTest.php (renamed from tests/lib/security/CertificateTest.php)0
-rw-r--r--tests/lib/Security/CredentialsManagerTest.php (renamed from tests/lib/security/CredentialsManagerTest.php)0
-rw-r--r--tests/lib/Security/CryptoTest.php (renamed from tests/lib/security/CryptoTest.php)0
-rw-r--r--tests/lib/Security/HasherTest.php (renamed from tests/lib/security/HasherTest.php)0
-rw-r--r--tests/lib/Security/SecureRandomTest.php (renamed from tests/lib/security/SecureRandomTest.php)0
-rw-r--r--tests/lib/Security/TrustedDomainHelperTest.php (renamed from tests/lib/security/TrustedDomainHelperTest.php)0
-rw-r--r--tests/lib/ServerTest.php (renamed from tests/lib/server.php)2
-rw-r--r--tests/lib/Session/CryptoSessionDataTest.php (renamed from tests/lib/session/cryptosessiondatatest.php)0
-rw-r--r--tests/lib/Session/CryptoWrappingTest.php (renamed from tests/lib/session/cryptowrappingtest.php)0
-rw-r--r--tests/lib/Session/MemoryTest.php (renamed from tests/lib/session/memory.php)4
-rw-r--r--tests/lib/Session/Session.php (renamed from tests/lib/session/session.php)0
-rw-r--r--tests/lib/Share/Backend.php (renamed from tests/lib/share/backend.php)0
-rw-r--r--tests/lib/Share/HelperTest.php (renamed from tests/lib/share/helper.php)2
-rw-r--r--tests/lib/Share/MailNotificationsTest.php (renamed from tests/lib/share/MailNotificationsTest.php)0
-rw-r--r--tests/lib/Share/SearchResultSorterTest.php (renamed from tests/lib/share/searchresultsorter.php)2
-rw-r--r--tests/lib/Share/ShareTest.php (renamed from tests/lib/share/share.php)2
-rw-r--r--tests/lib/Share20/DefaultShareProviderTest.php (renamed from tests/lib/share20/defaultshareprovidertest.php)0
-rw-r--r--tests/lib/Share20/ManagerTest.php (renamed from tests/lib/share20/managertest.php)0
-rw-r--r--tests/lib/Share20/ShareTest.php (renamed from tests/lib/share20/sharetest.php)0
-rw-r--r--tests/lib/SubAdminTest.php (renamed from tests/lib/subadmin.php)2
-rw-r--r--tests/lib/SystemTag/SystemTagManagerTest.php (renamed from tests/lib/systemtag/systemtagmanagertest.php)0
-rw-r--r--tests/lib/SystemTag/SystemTagObjectMapperTest.php (renamed from tests/lib/systemtag/systemtagobjectmappertest.php)0
-rw-r--r--tests/lib/TempManagerTest.php (renamed from tests/lib/tempmanager.php)2
-rw-r--r--tests/lib/Template/ResourceLocatorTest.php (renamed from tests/lib/template/resourcelocator.php)2
-rw-r--r--tests/lib/TestMoveableMountPoint.php (renamed from tests/lib/testmoveablemountpoint.php)0
-rw-r--r--tests/lib/Traits/EncryptionTrait.php (renamed from tests/lib/traits/encryptiontrait.php)0
-rw-r--r--tests/lib/Traits/MountProviderTrait.php (renamed from tests/lib/traits/mountprovidertrait.php)0
-rw-r--r--tests/lib/Traits/UserTrait.php (renamed from tests/lib/traits/usertrait.php)0
-rw-r--r--tests/lib/Updater/VersionCheckTest.php (renamed from tests/lib/updater/VersionCheckTest.php)2
-rw-r--r--tests/lib/User/AvatarUserDummy.php (renamed from tests/lib/user/avataruserdummy.php)0
-rw-r--r--tests/lib/User/Backend.php (renamed from tests/lib/user/backend.php)0
-rw-r--r--tests/lib/User/DatabaseTest.php (renamed from tests/lib/user/database.php)4
-rw-r--r--tests/lib/User/Dummy.php (renamed from tests/lib/user/dummy.php)0
-rw-r--r--tests/lib/User/ManagerTest.php (renamed from tests/lib/user/manager.php)4
-rw-r--r--tests/lib/User/SessionTest.php (renamed from tests/lib/user/session.php)2
-rw-r--r--tests/lib/User/UserTest.php (renamed from tests/lib/user/user.php)7
-rw-r--r--tests/lib/UserTest.php (renamed from tests/lib/user.php)2
-rw-r--r--tests/lib/Util/Group/Dummy.php (renamed from tests/lib/util/group/dummy.php)0
-rw-r--r--tests/lib/Util/User/Dummy.php (renamed from tests/lib/util/user/dummy.php)0
257 files changed, 171 insertions, 180 deletions
diff --git a/lib/autoloader.php b/lib/autoloader.php
index 215da536e5b..73783603438 100644
--- a/lib/autoloader.php
+++ b/lib/autoloader.php
@@ -117,8 +117,6 @@ class Autoloader {
// This File is considered public API, so we make sure that the class
// can still be loaded, although the PSR-4 paths have not been loaded.
$paths[] = \OC::$SERVERROOT . '/tests/lib/TestCase.php';
- } elseif (strpos($class, 'Test\\') === 0) {
- $paths[] = \OC::$SERVERROOT . '/tests/lib/' . strtolower(str_replace('\\', '/', substr($class, 5)) . '.php');
}
return $paths;
}
diff --git a/tests/bootstrap.php b/tests/bootstrap.php
index e2b980b1c80..c58d9f58522 100644
--- a/tests/bootstrap.php
+++ b/tests/bootstrap.php
@@ -10,7 +10,6 @@ require_once __DIR__ . '/../lib/base.php';
\OC::$composerAutoloader->addPsr4('Test\\', OC::$SERVERROOT . '/tests/lib/', true);
\OC::$composerAutoloader->addPsr4('Tests\\', OC::$SERVERROOT . '/tests/', true);
-\OC::$loader->addValidRoot(OC::$SERVERROOT . '/tests');
// load all enabled apps
\OC_App::loadApps();
diff --git a/tests/lib/activity/managertest.php b/tests/lib/Activity/ManagerTest.php
index cf855dd2813..cf855dd2813 100644
--- a/tests/lib/activity/managertest.php
+++ b/tests/lib/Activity/ManagerTest.php
diff --git a/tests/lib/app/codechecker/codecheckertest.php b/tests/lib/App/CodeChecker/CodeCheckerTest.php
index cdbb7c17da5..cdbb7c17da5 100644
--- a/tests/lib/app/codechecker/codecheckertest.php
+++ b/tests/lib/App/CodeChecker/CodeCheckerTest.php
diff --git a/tests/lib/app/codechecker/deprecationchecktest.php b/tests/lib/App/CodeChecker/DeprecationCheckTest.php
index ee69f075a61..ee69f075a61 100644
--- a/tests/lib/app/codechecker/deprecationchecktest.php
+++ b/tests/lib/App/CodeChecker/DeprecationCheckTest.php
diff --git a/tests/lib/app/codechecker/infocheckertest.php b/tests/lib/App/CodeChecker/InfoCheckerTest.php
index c6df5a715a1..1032e800be1 100644
--- a/tests/lib/app/codechecker/infocheckertest.php
+++ b/tests/lib/App/CodeChecker/InfoCheckerTest.php
@@ -19,13 +19,14 @@
*
*/
-namespace OC\App\CodeChecker;
+namespace Test\App\CodeChecker;
+use OC\App\CodeChecker\InfoChecker;
use OC\App\InfoParser;
use Test\TestCase;
class InfoCheckerTest extends TestCase {
- /** @var InfoChecker */
+ /** @var InfoChecker */
protected $infoChecker;
public static function setUpBeforeClass() {
diff --git a/tests/lib/app/codechecker/mock/testlist.php b/tests/lib/App/CodeChecker/Mock/TestList.php
index 1fe83293acf..1fe83293acf 100644
--- a/tests/lib/app/codechecker/mock/testlist.php
+++ b/tests/lib/App/CodeChecker/Mock/TestList.php
diff --git a/tests/lib/app/codechecker/nodevisitortest.php b/tests/lib/App/CodeChecker/NodeVisitorTest.php
index 0b5aea28324..ca0b6e9ccc1 100644
--- a/tests/lib/app/codechecker/nodevisitortest.php
+++ b/tests/lib/App/CodeChecker/NodeVisitorTest.php
@@ -6,7 +6,7 @@
* See the COPYING-README file.
*/
-namespace Test\AppCodeChecker;
+namespace Test\App\CodeChecker;
use OC\App\CodeChecker\CodeChecker;
use OC\App\CodeChecker\EmptyCheck;
diff --git a/tests/lib/app/codechecker/strongcomparisonchecktest.php b/tests/lib/App/CodeChecker/StrongComparisonCheckTest.php
index c73eae286ab..c73eae286ab 100644
--- a/tests/lib/app/codechecker/strongcomparisonchecktest.php
+++ b/tests/lib/App/CodeChecker/StrongComparisonCheckTest.php
diff --git a/tests/lib/app/dependencyanalyzer.php b/tests/lib/App/DependencyAnalyzerTest.php
index eee0bc29083..7882f6dd031 100644
--- a/tests/lib/app/dependencyanalyzer.php
+++ b/tests/lib/App/DependencyAnalyzerTest.php
@@ -14,7 +14,7 @@ use OC\App\Platform;
use OCP\IL10N;
use Test\TestCase;
-class DependencyAnalyzer extends TestCase {
+class DependencyAnalyzerTest extends TestCase {
/** @var Platform */
private $platformMock;
diff --git a/tests/lib/app/infoparser.php b/tests/lib/App/InfoParserTest.php
index cb89dd0131c..7f52507bcf7 100644
--- a/tests/lib/app/infoparser.php
+++ b/tests/lib/App/InfoParserTest.php
@@ -13,7 +13,7 @@ use OC;
use OCP\IURLGenerator;
use Test\TestCase;
-class InfoParser extends TestCase {
+class InfoParserTest extends TestCase {
/** @var \OC\App\InfoParser */
private $parser;
diff --git a/tests/lib/app/manager.php b/tests/lib/App/ManagerTest.php
index ef7c01658e1..26584829b5f 100644
--- a/tests/lib/app/manager.php
+++ b/tests/lib/App/ManagerTest.php
@@ -19,7 +19,7 @@ use Test\TestCase;
* @package Test\App
* @group DB
*/
-class Manager extends TestCase {
+class ManagerTest extends TestCase {
/**
* @return \OCP\IAppConfig | \PHPUnit_Framework_MockObject_MockObject
*/
diff --git a/tests/lib/app/platformrepository.php b/tests/lib/App/PlatformRepositoryTest.php
index 3d8849ce8ab..783f8f473ff 100644
--- a/tests/lib/app/platformrepository.php
+++ b/tests/lib/App/PlatformRepositoryTest.php
@@ -11,7 +11,7 @@ namespace Test\App;
use OC;
-class PlatformRepository extends \Test\TestCase {
+class PlatformRepositoryTest extends \Test\TestCase {
/**
* @dataProvider providesVersions
diff --git a/tests/lib/appconfig.php b/tests/lib/AppConfigTest.php
index 12d9728c868..520dbf66d36 100644
--- a/tests/lib/appconfig.php
+++ b/tests/lib/AppConfigTest.php
@@ -10,13 +10,13 @@
namespace Test;
/**
- * Class AppConfig
+ * Class AppConfigTest
*
* @group DB
*
* @package Test
*/
-class AppConfig extends TestCase {
+class AppConfigTest extends TestCase {
/** @var \OCP\IAppConfig */
protected $appConfig;
diff --git a/tests/lib/appframework/AppTest.php b/tests/lib/AppFramework/AppTest.php
index 7288e686d52..7288e686d52 100644
--- a/tests/lib/appframework/AppTest.php
+++ b/tests/lib/AppFramework/AppTest.php
diff --git a/tests/lib/appframework/controller/ApiControllerTest.php b/tests/lib/AppFramework/Controller/ApiControllerTest.php
index 783eecf93e5..783eecf93e5 100644
--- a/tests/lib/appframework/controller/ApiControllerTest.php
+++ b/tests/lib/AppFramework/Controller/ApiControllerTest.php
diff --git a/tests/lib/appframework/controller/ControllerTest.php b/tests/lib/AppFramework/Controller/ControllerTest.php
index 521799a46ce..521799a46ce 100644
--- a/tests/lib/appframework/controller/ControllerTest.php
+++ b/tests/lib/AppFramework/Controller/ControllerTest.php
diff --git a/tests/lib/appframework/controller/OCSControllerTest.php b/tests/lib/AppFramework/Controller/OCSControllerTest.php
index f69740d4496..f69740d4496 100644
--- a/tests/lib/appframework/controller/OCSControllerTest.php
+++ b/tests/lib/AppFramework/Controller/OCSControllerTest.php
diff --git a/tests/lib/appframework/db/EntityTest.php b/tests/lib/AppFramework/Db/EntityTest.php
index e1a3d7533be..e1a3d7533be 100644
--- a/tests/lib/appframework/db/EntityTest.php
+++ b/tests/lib/AppFramework/Db/EntityTest.php
diff --git a/tests/lib/appframework/db/mappertest.php b/tests/lib/AppFramework/Db/MapperTest.php
index 108e4eee28e..108e4eee28e 100644
--- a/tests/lib/appframework/db/mappertest.php
+++ b/tests/lib/AppFramework/Db/MapperTest.php
diff --git a/tests/lib/appframework/db/mappertestutility.php b/tests/lib/AppFramework/Db/MapperTestUtility.php
index 69f0ad4eb67..69f0ad4eb67 100644
--- a/tests/lib/appframework/db/mappertestutility.php
+++ b/tests/lib/AppFramework/Db/MapperTestUtility.php
diff --git a/tests/lib/appframework/dependencyinjection/DIContainerTest.php b/tests/lib/AppFramework/DependencyInjection/DIContainerTest.php
index 5aa000fa25a..5aa000fa25a 100644
--- a/tests/lib/appframework/dependencyinjection/DIContainerTest.php
+++ b/tests/lib/AppFramework/DependencyInjection/DIContainerTest.php
diff --git a/tests/lib/appframework/http/ContentSecurityPolicyTest.php b/tests/lib/AppFramework/Http/ContentSecurityPolicyTest.php
index 82f2b3873b7..82f2b3873b7 100644
--- a/tests/lib/appframework/http/ContentSecurityPolicyTest.php
+++ b/tests/lib/AppFramework/Http/ContentSecurityPolicyTest.php
diff --git a/tests/lib/appframework/http/DataResponseTest.php b/tests/lib/AppFramework/Http/DataResponseTest.php
index cde553cdf5f..cde553cdf5f 100644
--- a/tests/lib/appframework/http/DataResponseTest.php
+++ b/tests/lib/AppFramework/Http/DataResponseTest.php
diff --git a/tests/lib/appframework/http/DispatcherTest.php b/tests/lib/AppFramework/Http/DispatcherTest.php
index 6df6f7fa7fe..6df6f7fa7fe 100644
--- a/tests/lib/appframework/http/DispatcherTest.php
+++ b/tests/lib/AppFramework/Http/DispatcherTest.php
diff --git a/tests/lib/appframework/http/DownloadResponseTest.php b/tests/lib/AppFramework/Http/DownloadResponseTest.php
index 07c932b2725..07c932b2725 100644
--- a/tests/lib/appframework/http/DownloadResponseTest.php
+++ b/tests/lib/AppFramework/Http/DownloadResponseTest.php
diff --git a/tests/lib/appframework/http/EmptyContentSecurityPolicyTest.php b/tests/lib/AppFramework/Http/EmptyContentSecurityPolicyTest.php
index 248c3d808d2..248c3d808d2 100644
--- a/tests/lib/appframework/http/EmptyContentSecurityPolicyTest.php
+++ b/tests/lib/AppFramework/Http/EmptyContentSecurityPolicyTest.php
diff --git a/tests/lib/appframework/http/HttpTest.php b/tests/lib/AppFramework/Http/HttpTest.php
index 66256d1a86f..66256d1a86f 100644
--- a/tests/lib/appframework/http/HttpTest.php
+++ b/tests/lib/AppFramework/Http/HttpTest.php
diff --git a/tests/lib/appframework/http/JSONResponseTest.php b/tests/lib/AppFramework/Http/JSONResponseTest.php
index 23a55e7eee8..23a55e7eee8 100644
--- a/tests/lib/appframework/http/JSONResponseTest.php
+++ b/tests/lib/AppFramework/Http/JSONResponseTest.php
diff --git a/tests/lib/appframework/http/OCSResponseTest.php b/tests/lib/AppFramework/Http/OCSResponseTest.php
index adac66a231c..adac66a231c 100644
--- a/tests/lib/appframework/http/OCSResponseTest.php
+++ b/tests/lib/AppFramework/Http/OCSResponseTest.php
diff --git a/tests/lib/appframework/http/RedirectResponseTest.php b/tests/lib/AppFramework/Http/RedirectResponseTest.php
index 5ef82a1221d..5ef82a1221d 100644
--- a/tests/lib/appframework/http/RedirectResponseTest.php
+++ b/tests/lib/AppFramework/Http/RedirectResponseTest.php
diff --git a/tests/lib/appframework/http/requeststream.php b/tests/lib/AppFramework/Http/RequestStream.php
index e1bf5c2c6bb..8f6dffd4e91 100644
--- a/tests/lib/appframework/http/requeststream.php
+++ b/tests/lib/AppFramework/Http/RequestStream.php
@@ -1,4 +1,7 @@
<?php
+
+namespace Test\AppFramework\Http;
+
/**
* Copy of http://dk1.php.net/manual/en/stream.streamwrapper.example-1.php
* Used to simulate php://input for Request tests
diff --git a/tests/lib/appframework/http/RequestTest.php b/tests/lib/AppFramework/Http/RequestTest.php
index 5b960908991..ddc2403d866 100644
--- a/tests/lib/appframework/http/RequestTest.php
+++ b/tests/lib/AppFramework/Http/RequestTest.php
@@ -34,11 +34,10 @@ class RequestTest extends \Test\TestCase {
protected function setUp() {
parent::setUp();
- require_once __DIR__ . '/requeststream.php';
if (in_array('fakeinput', stream_get_wrappers())) {
stream_wrapper_unregister('fakeinput');
}
- stream_wrapper_register('fakeinput', 'RequestStream');
+ stream_wrapper_register('fakeinput', 'Test\AppFramework\Http\RequestStream');
$this->secureRandom = $this->getMockBuilder('\OCP\Security\ISecureRandom')->getMock();
$this->config = $this->getMockBuilder('\OCP\IConfig')->getMock();
diff --git a/tests/lib/appframework/http/ResponseTest.php b/tests/lib/AppFramework/Http/ResponseTest.php
index 0c582f8f6ea..0c582f8f6ea 100644
--- a/tests/lib/appframework/http/ResponseTest.php
+++ b/tests/lib/AppFramework/Http/ResponseTest.php
diff --git a/tests/lib/appframework/http/StreamResponseTest.php b/tests/lib/AppFramework/Http/StreamResponseTest.php
index 1f761d6b89c..1f761d6b89c 100644
--- a/tests/lib/appframework/http/StreamResponseTest.php
+++ b/tests/lib/AppFramework/Http/StreamResponseTest.php
diff --git a/tests/lib/appframework/http/TemplateResponseTest.php b/tests/lib/AppFramework/Http/TemplateResponseTest.php
index 87fb6864f78..87fb6864f78 100644
--- a/tests/lib/appframework/http/TemplateResponseTest.php
+++ b/tests/lib/AppFramework/Http/TemplateResponseTest.php
diff --git a/tests/lib/appframework/middleware/MiddlewareDispatcherTest.php b/tests/lib/AppFramework/Middleware/MiddlewareDispatcherTest.php
index f81aca106d6..f81aca106d6 100644
--- a/tests/lib/appframework/middleware/MiddlewareDispatcherTest.php
+++ b/tests/lib/AppFramework/Middleware/MiddlewareDispatcherTest.php
diff --git a/tests/lib/appframework/middleware/MiddlewareTest.php b/tests/lib/AppFramework/Middleware/MiddlewareTest.php
index 013403a9a4a..013403a9a4a 100644
--- a/tests/lib/appframework/middleware/MiddlewareTest.php
+++ b/tests/lib/AppFramework/Middleware/MiddlewareTest.php
diff --git a/tests/lib/appframework/middleware/security/CORSMiddlewareTest.php b/tests/lib/AppFramework/Middleware/Security/CORSMiddlewareTest.php
index 8e53c9202cf..8e53c9202cf 100644
--- a/tests/lib/appframework/middleware/security/CORSMiddlewareTest.php
+++ b/tests/lib/AppFramework/Middleware/Security/CORSMiddlewareTest.php
diff --git a/tests/lib/appframework/middleware/security/SecurityMiddlewareTest.php b/tests/lib/AppFramework/Middleware/Security/SecurityMiddlewareTest.php
index 8cdba76d835..8cdba76d835 100644
--- a/tests/lib/appframework/middleware/security/SecurityMiddlewareTest.php
+++ b/tests/lib/AppFramework/Middleware/Security/SecurityMiddlewareTest.php
diff --git a/tests/lib/appframework/middleware/sessionmiddlewaretest.php b/tests/lib/AppFramework/Middleware/SessionMiddlewareTest.php
index 17fcc1904c1..17fcc1904c1 100644
--- a/tests/lib/appframework/middleware/sessionmiddlewaretest.php
+++ b/tests/lib/AppFramework/Middleware/SessionMiddlewareTest.php
diff --git a/tests/lib/appframework/routing/RoutingTest.php b/tests/lib/AppFramework/Routing/RoutingTest.php
index 326c156af98..326c156af98 100644
--- a/tests/lib/appframework/routing/RoutingTest.php
+++ b/tests/lib/AppFramework/Routing/RoutingTest.php
diff --git a/tests/lib/appframework/utility/ControllerMethodReflectorTest.php b/tests/lib/AppFramework/Utility/ControllerMethodReflectorTest.php
index 92d767e9987..92d767e9987 100644
--- a/tests/lib/appframework/utility/ControllerMethodReflectorTest.php
+++ b/tests/lib/AppFramework/Utility/ControllerMethodReflectorTest.php
diff --git a/tests/lib/appframework/utility/SimpleContainerTest.php b/tests/lib/AppFramework/Utility/SimpleContainerTest.php
index e21e0ca13f2..e21e0ca13f2 100644
--- a/tests/lib/appframework/utility/SimpleContainerTest.php
+++ b/tests/lib/AppFramework/Utility/SimpleContainerTest.php
diff --git a/tests/lib/archive/tartest.php b/tests/lib/Archive/TARTest.php
index 998ce201e72..998ce201e72 100644
--- a/tests/lib/archive/tartest.php
+++ b/tests/lib/Archive/TARTest.php
diff --git a/tests/lib/archive/testbase.php b/tests/lib/Archive/TestBase.php
index 5bf4d9d43ea..5bf4d9d43ea 100644
--- a/tests/lib/archive/testbase.php
+++ b/tests/lib/Archive/TestBase.php
diff --git a/tests/lib/archive/ziptest.php b/tests/lib/Archive/ZIPTest.php
index 8d639e0d686..8d639e0d686 100644
--- a/tests/lib/archive/ziptest.php
+++ b/tests/lib/Archive/ZIPTest.php
diff --git a/tests/lib/authentication/token/defaulttokencleanupjobtest.php b/tests/lib/Authentication/Token/DefaultTokenCleanupJobTest.php
index c9082c08b30..c9082c08b30 100644
--- a/tests/lib/authentication/token/defaulttokencleanupjobtest.php
+++ b/tests/lib/Authentication/Token/DefaultTokenCleanupJobTest.php
diff --git a/tests/lib/authentication/token/defaulttokenmappertest.php b/tests/lib/Authentication/Token/DefaultTokenMapperTest.php
index e17149a5c1b..e17149a5c1b 100644
--- a/tests/lib/authentication/token/defaulttokenmappertest.php
+++ b/tests/lib/Authentication/Token/DefaultTokenMapperTest.php
diff --git a/tests/lib/authentication/token/defaulttokenprovidertest.php b/tests/lib/Authentication/Token/DefaultTokenProviderTest.php
index eeb249cfa8a..eeb249cfa8a 100644
--- a/tests/lib/authentication/token/defaulttokenprovidertest.php
+++ b/tests/lib/Authentication/Token/DefaultTokenProviderTest.php
diff --git a/tests/lib/autoloader.php b/tests/lib/AutoLoaderTest.php
index 3669f514bee..a97ba3f768e 100644
--- a/tests/lib/autoloader.php
+++ b/tests/lib/AutoLoaderTest.php
@@ -8,7 +8,7 @@
namespace Test;
-class AutoLoader extends TestCase {
+class AutoLoaderTest extends TestCase {
/**
* @var \OC\Autoloader $loader
*/
@@ -43,12 +43,6 @@ class AutoLoader extends TestCase {
], $this->loader->findClass('Test\TestCase'));
}
- public function testLoadTestNamespace() {
- $this->assertEquals([
- \OC::$SERVERROOT . '/tests/lib/foo/bar.php'
- ], $this->loader->findClass('Test\Foo\Bar'));
- }
-
public function testLoadCore() {
$this->assertEquals([
\OC::$SERVERROOT . '/lib/private/legacy/foo/bar.php',
diff --git a/tests/lib/avatarmanagertest.php b/tests/lib/AvatarManagerTest.php
index 2dd6ff34923..2dd6ff34923 100644
--- a/tests/lib/avatarmanagertest.php
+++ b/tests/lib/AvatarManagerTest.php
diff --git a/tests/lib/avatartest.php b/tests/lib/AvatarTest.php
index 0a00f5d5614..0a00f5d5614 100644
--- a/tests/lib/avatartest.php
+++ b/tests/lib/AvatarTest.php
diff --git a/tests/lib/backgroundjob/dummyjoblist.php b/tests/lib/BackgroundJob/DummyJobList.php
index 6cc690fd553..6cc690fd553 100644
--- a/tests/lib/backgroundjob/dummyjoblist.php
+++ b/tests/lib/BackgroundJob/DummyJobList.php
diff --git a/tests/lib/backgroundjob/joblist.php b/tests/lib/BackgroundJob/JobListTest.php
index fcc3c440818..6eed804bc3c 100644
--- a/tests/lib/backgroundjob/joblist.php
+++ b/tests/lib/BackgroundJob/JobListTest.php
@@ -18,7 +18,7 @@ use Test\TestCase;
* @group DB
* @package Test\BackgroundJob
*/
-class JobList extends TestCase {
+class JobListTest extends TestCase {
/** @var \OC\BackgroundJob\JobList */
protected $instance;
diff --git a/tests/lib/backgroundjob/job.php b/tests/lib/BackgroundJob/JobTest.php
index 12413e2c52a..7923eef11ef 100644
--- a/tests/lib/backgroundjob/job.php
+++ b/tests/lib/BackgroundJob/JobTest.php
@@ -8,7 +8,7 @@
namespace Test\BackgroundJob;
-class Job extends \Test\TestCase {
+class JobTest extends \Test\TestCase {
private $run = false;
protected function setUp() {
diff --git a/tests/lib/backgroundjob/queuedjob.php b/tests/lib/BackgroundJob/QueuedJobTest.php
index 8d3cd6f907b..a3e9cc296a0 100644
--- a/tests/lib/backgroundjob/queuedjob.php
+++ b/tests/lib/BackgroundJob/QueuedJobTest.php
@@ -12,7 +12,7 @@ class TestQueuedJob extends \OC\BackgroundJob\QueuedJob {
private $testCase;
/**
- * @param QueuedJob $testCase
+ * @param QueuedJobTest $testCase
*/
public function __construct($testCase) {
$this->testCase = $testCase;
@@ -23,7 +23,7 @@ class TestQueuedJob extends \OC\BackgroundJob\QueuedJob {
}
}
-class QueuedJob extends \Test\TestCase {
+class QueuedJobTest extends \Test\TestCase {
/**
* @var DummyJobList $jobList
*/
diff --git a/tests/lib/backgroundjob/testjob.php b/tests/lib/BackgroundJob/TestJob.php
index 23fc4268d1a..a5ab4454550 100644
--- a/tests/lib/backgroundjob/testjob.php
+++ b/tests/lib/BackgroundJob/TestJob.php
@@ -18,7 +18,7 @@ class TestJob extends \OC\BackgroundJob\Job {
private $callback;
/**
- * @param Job $testCase
+ * @param JobTest $testCase
* @param callable $callback
*/
public function __construct($testCase = null, $callback = null) {
diff --git a/tests/lib/backgroundjob/timedjob.php b/tests/lib/BackgroundJob/TimedJobTest.php
index 7d9bfe979af..5652a5c9901 100644
--- a/tests/lib/backgroundjob/timedjob.php
+++ b/tests/lib/BackgroundJob/TimedJobTest.php
@@ -12,7 +12,7 @@ class TestTimedJob extends \OC\BackgroundJob\TimedJob {
private $testCase;
/**
- * @param TimedJob $testCase
+ * @param TimedJobTest $testCase
*/
public function __construct($testCase) {
$this->setInterval(10);
@@ -24,7 +24,7 @@ class TestTimedJob extends \OC\BackgroundJob\TimedJob {
}
}
-class TimedJob extends \Test\TestCase {
+class TimedJobTest extends \Test\TestCase {
/**
* @var DummyJobList $jobList
*/
diff --git a/tests/lib/cache/cappedmemorycache.php b/tests/lib/Cache/CappedMemoryCacheTest.php
index c9c74de72db..27e5df4e265 100644
--- a/tests/lib/cache/cappedmemorycache.php
+++ b/tests/lib/Cache/CappedMemoryCacheTest.php
@@ -23,13 +23,13 @@
namespace Test\Cache;
/**
- * Class FileCache
+ * Class CappedMemoryCacheTest
*
* @group DB
*
* @package Test\Cache
*/
-class CappedMemoryCache extends TestCache {
+class CappedMemoryCacheTest extends TestCache {
public function setUp() {
parent::setUp();
$this->instance = new \OC\Cache\CappedMemoryCache();
diff --git a/tests/lib/cache/filecache.php b/tests/lib/Cache/FileCacheTest.php
index a85b12671f3..d2725bf9033 100644
--- a/tests/lib/cache/filecache.php
+++ b/tests/lib/Cache/FileCacheTest.php
@@ -23,13 +23,13 @@
namespace Test\Cache;
/**
- * Class FileCache
+ * Class FileCacheTest
*
* @group DB
*
* @package Test\Cache
*/
-class FileCache extends TestCache {
+class FileCacheTest extends TestCache {
/**
* @var string
* */
diff --git a/tests/lib/cache/testcache.php b/tests/lib/Cache/TestCache.php
index 75ff65207ee..75ff65207ee 100644
--- a/tests/lib/cache/testcache.php
+++ b/tests/lib/Cache/TestCache.php
diff --git a/tests/lib/command/asyncbus.php b/tests/lib/Command/AsyncBusTest.php
index 183eaa29c37..8c1713f1260 100644
--- a/tests/lib/command/asyncbus.php
+++ b/tests/lib/Command/AsyncBusTest.php
@@ -17,7 +17,7 @@ use Test\TestCase;
class SimpleCommand implements ICommand {
public function handle() {
- AsyncBus::$lastCommand = 'SimpleCommand';
+ AsyncBusTest::$lastCommand = 'SimpleCommand';
}
}
@@ -29,7 +29,7 @@ class StateFullCommand implements ICommand {
}
public function handle() {
- AsyncBus::$lastCommand = $this->state;
+ AsyncBusTest::$lastCommand = $this->state;
}
}
@@ -37,18 +37,18 @@ class FilesystemCommand implements ICommand {
use FileAccess;
public function handle() {
- AsyncBus::$lastCommand = 'FileAccess';
+ AsyncBusTest::$lastCommand = 'FileAccess';
}
}
function basicFunction() {
- AsyncBus::$lastCommand = 'function';
+ AsyncBusTest::$lastCommand = 'function';
}
// clean class to prevent phpunit putting closure in $this
class ThisClosureTest {
private function privateMethod() {
- AsyncBus::$lastCommand = 'closure-this';
+ AsyncBusTest::$lastCommand = 'closure-this';
}
public function test(IBus $bus) {
@@ -58,7 +58,7 @@ class ThisClosureTest {
}
}
-class AsyncBus extends TestCase {
+class AsyncBusTest extends TestCase {
/**
* Basic way to check output from a command
*
@@ -101,7 +101,7 @@ class AsyncBus extends TestCase {
}
public function testStaticCallable() {
- $this->bus->push(['\Test\Command\AsyncBus', 'DummyCommand']);
+ $this->bus->push(['\Test\Command\AsyncBusTest', 'DummyCommand']);
$this->runJobs();
$this->assertEquals('static', self::$lastCommand);
}
@@ -121,7 +121,7 @@ class AsyncBus extends TestCase {
public function testClosure() {
$this->bus->push(function () {
- AsyncBus::$lastCommand = 'closure';
+ AsyncBusTest::$lastCommand = 'closure';
});
$this->runJobs();
$this->assertEquals('closure', self::$lastCommand);
diff --git a/tests/lib/command/backgroundjobs.php b/tests/lib/Command/BackgroundJobsTest.php
index 7e992480530..6292d5d0e97 100644
--- a/tests/lib/command/backgroundjobs.php
+++ b/tests/lib/Command/BackgroundJobsTest.php
@@ -33,7 +33,7 @@ use OC\Core\Command\Background\Cron;
use OC\Core\Command\Background\WebCron;
use OC\Core\Command\Background\Ajax;
-class BackgroundJobs extends TestCase {
+class BackgroundJobsTest extends TestCase {
public function testCronCommand() {
$config = \OC::$server->getConfig();
diff --git a/tests/lib/command/integrity/SignAppTest.php b/tests/lib/Command/Integrity/SignAppTest.php
index 44a644c45df..44a644c45df 100644
--- a/tests/lib/command/integrity/SignAppTest.php
+++ b/tests/lib/Command/Integrity/SignAppTest.php
diff --git a/tests/lib/command/integrity/SignCoreTest.php b/tests/lib/Command/Integrity/SignCoreTest.php
index ff1f6b23a95..ff1f6b23a95 100644
--- a/tests/lib/command/integrity/SignCoreTest.php
+++ b/tests/lib/Command/Integrity/SignCoreTest.php
diff --git a/tests/lib/comments/commenttest.php b/tests/lib/Comments/CommentTest.php
index b55c345f71f..b55c345f71f 100644
--- a/tests/lib/comments/commenttest.php
+++ b/tests/lib/Comments/CommentTest.php
diff --git a/tests/lib/comments/fakefactory.php b/tests/lib/Comments/FakeFactory.php
index ff8dfd3a259..ff8dfd3a259 100644
--- a/tests/lib/comments/fakefactory.php
+++ b/tests/lib/Comments/FakeFactory.php
diff --git a/tests/lib/comments/fakemanager.php b/tests/lib/Comments/FakeManager.php
index 7186529e718..7186529e718 100644
--- a/tests/lib/comments/fakemanager.php
+++ b/tests/lib/Comments/FakeManager.php
diff --git a/tests/lib/comments/managertest.php b/tests/lib/Comments/ManagerTest.php
index 90a8399eb2b..90a8399eb2b 100644
--- a/tests/lib/comments/managertest.php
+++ b/tests/lib/Comments/ManagerTest.php
diff --git a/tests/lib/db/connection.php b/tests/lib/DB/ConnectionTest.php
index 4022bee511e..b9c55c23339 100644
--- a/tests/lib/db/connection.php
+++ b/tests/lib/DB/ConnectionTest.php
@@ -20,7 +20,7 @@ use OCP\DB\QueryBuilder\IQueryBuilder;
*
* @package Test\DB
*/
-class Connection extends \Test\TestCase {
+class ConnectionTest extends \Test\TestCase {
/**
* @var \OCP\IDBConnection
*/
diff --git a/tests/lib/db/DBSchemaTest.php b/tests/lib/DB/DBSchemaTest.php
index 284fc532c2a..284fc532c2a 100644
--- a/tests/lib/db/DBSchemaTest.php
+++ b/tests/lib/DB/DBSchemaTest.php
diff --git a/tests/lib/db/LegacyDBTest.php b/tests/lib/DB/LegacyDBTest.php
index 7aeeb3dd1f9..7aeeb3dd1f9 100644
--- a/tests/lib/db/LegacyDBTest.php
+++ b/tests/lib/DB/LegacyDBTest.php
diff --git a/tests/lib/db/mdb2schemamanager.php b/tests/lib/DB/MDB2SchemaManagerTest.php
index fd412bdec2d..93078b4f722 100644
--- a/tests/lib/db/mdb2schemamanager.php
+++ b/tests/lib/DB/MDB2SchemaManagerTest.php
@@ -18,7 +18,7 @@ use Doctrine\DBAL\Platforms\OraclePlatform;
*
* @package Test\DB
*/
-class MDB2SchemaManager extends \Test\TestCase {
+class MDB2SchemaManagerTest extends \Test\TestCase {
protected function tearDown() {
// do not drop the table for Oracle as it will create a bogus transaction
diff --git a/tests/lib/db/mdb2schemareader.php b/tests/lib/DB/MDB2SchemaReaderTest.php
index 7939c782e80..22c0ba28569 100644
--- a/tests/lib/db/mdb2schemareader.php
+++ b/tests/lib/DB/MDB2SchemaReaderTest.php
@@ -11,7 +11,7 @@ namespace Test\DB;
use Doctrine\DBAL\Platforms\MySqlPlatform;
-class MDB2SchemaReader extends \Test\TestCase {
+class MDB2SchemaReaderTest extends \Test\TestCase {
/**
* @var \OC\DB\MDB2SchemaReader $reader
*/
diff --git a/tests/lib/db/migrator.php b/tests/lib/DB/MigratorTest.php
index 84a98c1e338..e4f45c4bb86 100644
--- a/tests/lib/db/migrator.php
+++ b/tests/lib/DB/MigratorTest.php
@@ -16,13 +16,13 @@ use \Doctrine\DBAL\Schema\SchemaConfig;
use OCP\IConfig;
/**
- * Class Migrator
+ * Class MigratorTest
*
* @group DB
*
* @package Test\DB
*/
-class Migrator extends \Test\TestCase {
+class MigratorTest extends \Test\TestCase {
/**
* @var \Doctrine\DBAL\Connection $connection
*/
diff --git a/tests/lib/db/mysqlmigration.php b/tests/lib/DB/MySqlMigrationTest.php
index 42ed6ba7251..cdc7ef47784 100644
--- a/tests/lib/db/mysqlmigration.php
+++ b/tests/lib/DB/MySqlMigrationTest.php
@@ -13,7 +13,7 @@ namespace Test\DB;
*
* @group DB
*/
-class MySqlMigration extends \Test\TestCase {
+class MySqlMigrationTest extends \Test\TestCase {
/** @var \Doctrine\DBAL\Connection */
private $connection;
diff --git a/tests/lib/db/querybuilder/expressionbuildertest.php b/tests/lib/DB/QueryBuilder/ExpressionBuilderTest.php
index 4122f300c86..4122f300c86 100644
--- a/tests/lib/db/querybuilder/expressionbuildertest.php
+++ b/tests/lib/DB/QueryBuilder/ExpressionBuilderTest.php
diff --git a/tests/lib/db/querybuilder/querybuildertest.php b/tests/lib/DB/QueryBuilder/QueryBuilderTest.php
index de8f84ac345..de8f84ac345 100644
--- a/tests/lib/db/querybuilder/querybuildertest.php
+++ b/tests/lib/DB/QueryBuilder/QueryBuilderTest.php
diff --git a/tests/lib/db/querybuilder/quotehelpertest.php b/tests/lib/DB/QueryBuilder/QuoteHelperTest.php
index b83d9eed2df..b83d9eed2df 100644
--- a/tests/lib/db/querybuilder/quotehelpertest.php
+++ b/tests/lib/DB/QueryBuilder/QuoteHelperTest.php
diff --git a/tests/lib/db/sqlitemigration.php b/tests/lib/DB/SqliteMigrationTest.php
index 176b947e310..76002e1afce 100644
--- a/tests/lib/db/sqlitemigration.php
+++ b/tests/lib/DB/SqliteMigrationTest.php
@@ -13,7 +13,7 @@ namespace Test\DB;
*
* @group DB
*/
-class SqliteMigration extends \Test\TestCase {
+class SqliteMigrationTest extends \Test\TestCase {
/** @var \Doctrine\DBAL\Connection */
private $connection;
diff --git a/tests/lib/db/testschema.xml b/tests/lib/DB/testschema.xml
index dfca920a0ef..dfca920a0ef 100644
--- a/tests/lib/db/testschema.xml
+++ b/tests/lib/DB/testschema.xml
diff --git a/tests/lib/db/ts-autoincrement-after.xml b/tests/lib/DB/ts-autoincrement-after.xml
index d4445f1e247..d4445f1e247 100644
--- a/tests/lib/db/ts-autoincrement-after.xml
+++ b/tests/lib/DB/ts-autoincrement-after.xml
diff --git a/tests/lib/db/ts-autoincrement-before.xml b/tests/lib/DB/ts-autoincrement-before.xml
index 412739e9a71..412739e9a71 100644
--- a/tests/lib/db/ts-autoincrement-before.xml
+++ b/tests/lib/DB/ts-autoincrement-before.xml
diff --git a/tests/lib/datetimeformatter.php b/tests/lib/DateTimeFormatterTest.php
index bf1ef3b84dc..0d185128e27 100644
--- a/tests/lib/datetimeformatter.php
+++ b/tests/lib/DateTimeFormatterTest.php
@@ -8,7 +8,7 @@
namespace Test;
-class DateTimeFormatter extends TestCase {
+class DateTimeFormatterTest extends TestCase {
/** @var \OC\DateTimeFormatter */
protected $formatter;
static protected $oneMinute = 60;
diff --git a/tests/lib/encryption/decryptalltest.php b/tests/lib/Encryption/DecryptAllTest.php
index 85fbe3e0ed9..85fbe3e0ed9 100644
--- a/tests/lib/encryption/decryptalltest.php
+++ b/tests/lib/Encryption/DecryptAllTest.php
diff --git a/tests/lib/encryption/encryptionwrappertest.php b/tests/lib/Encryption/EncryptionWrapperTest.php
index 909187ae43b..909187ae43b 100644
--- a/tests/lib/encryption/encryptionwrappertest.php
+++ b/tests/lib/Encryption/EncryptionWrapperTest.php
diff --git a/tests/lib/encryption/keys/storagetest.php b/tests/lib/Encryption/Keys/StorageTest.php
index b5b91f886a3..b5b91f886a3 100644
--- a/tests/lib/encryption/keys/storagetest.php
+++ b/tests/lib/Encryption/Keys/StorageTest.php
diff --git a/tests/lib/encryption/managertest.php b/tests/lib/Encryption/ManagerTest.php
index 3dcfc949a18..3dcfc949a18 100644
--- a/tests/lib/encryption/managertest.php
+++ b/tests/lib/Encryption/ManagerTest.php
diff --git a/tests/lib/encryption/updatetest.php b/tests/lib/Encryption/UpdateTest.php
index b222bc42d7a..b222bc42d7a 100644
--- a/tests/lib/encryption/updatetest.php
+++ b/tests/lib/Encryption/UpdateTest.php
diff --git a/tests/lib/encryption/utiltest.php b/tests/lib/Encryption/UtilTest.php
index ec316a9f05a..ec316a9f05a 100644
--- a/tests/lib/encryption/utiltest.php
+++ b/tests/lib/Encryption/UtilTest.php
diff --git a/tests/lib/filechunking.php b/tests/lib/FileChunkingTest.php
index 2f3f411275d..66888285d23 100644
--- a/tests/lib/filechunking.php
+++ b/tests/lib/FileChunkingTest.php
@@ -20,7 +20,7 @@
*/
namespace Test;
-class FileChunking extends \Test\TestCase {
+class FileChunkingTest extends \Test\TestCase {
public function dataIsComplete() {
return [
diff --git a/tests/lib/files/cache/cache.php b/tests/lib/Files/Cache/CacheTest.php
index 3201e2d03fe..615bb32f62c 100644
--- a/tests/lib/files/cache/cache.php
+++ b/tests/lib/Files/Cache/CacheTest.php
@@ -16,13 +16,13 @@ class LongId extends \OC\Files\Storage\Temporary {
}
/**
- * Class Cache
+ * Class CacheTest
*
* @group DB
*
* @package Test\Files\Cache
*/
-class Cache extends \Test\TestCase {
+class CacheTest extends \Test\TestCase {
/**
* @var \OC\Files\Storage\Temporary $storage ;
*/
diff --git a/tests/lib/files/cache/homecache.php b/tests/lib/Files/Cache/HomeCacheTest.php
index e133d0afc55..a144b8cabb8 100644
--- a/tests/lib/files/cache/homecache.php
+++ b/tests/lib/Files/Cache/HomeCacheTest.php
@@ -44,13 +44,13 @@ class DummyUser extends \OC\User\User {
}
/**
- * Class HomeCache
+ * Class HomeCacheTest
*
* @group DB
*
* @package Test\Files\Cache
*/
-class HomeCache extends \Test\TestCase {
+class HomeCacheTest extends \Test\TestCase {
/**
* @var \OC\Files\Storage\Home $storage
*/
diff --git a/tests/lib/files/cache/movefromcachetraittest.php b/tests/lib/Files/Cache/MoveFromCacheTraitTest.php
index 614c259d996..3d4a55c0722 100644
--- a/tests/lib/files/cache/movefromcachetraittest.php
+++ b/tests/lib/Files/Cache/MoveFromCacheTraitTest.php
@@ -15,11 +15,11 @@ class FallBackCrossCacheMoveCache extends \OC\Files\Cache\Cache {
}
/**
- * Class Cache
+ * Class MoveFromCacheTraitTest
*
* @group DB
*/
-class MoveFromCacheTraitTest extends Cache {
+class MoveFromCacheTraitTest extends CacheTest {
protected function setUp() {
parent::setUp();
diff --git a/tests/lib/files/cache/scanner.php b/tests/lib/Files/Cache/ScannerTest.php
index b1eb3f589e8..4a93f3ee014 100644
--- a/tests/lib/files/cache/scanner.php
+++ b/tests/lib/Files/Cache/ScannerTest.php
@@ -10,13 +10,13 @@ namespace Test\Files\Cache;
use OC\Files\Cache\CacheEntry;
/**
- * Class Scanner
+ * Class ScannerTest
*
* @group DB
*
* @package Test\Files\Cache
*/
-class Scanner extends \Test\TestCase {
+class ScannerTest extends \Test\TestCase {
/**
* @var \OC\Files\Storage\Storage $storage
*/
diff --git a/tests/lib/files/cache/updaterlegacy.php b/tests/lib/Files/Cache/UpdaterLegacyTest.php
index 09688afd465..7d247968ca9 100644
--- a/tests/lib/files/cache/updaterlegacy.php
+++ b/tests/lib/Files/Cache/UpdaterLegacyTest.php
@@ -13,13 +13,13 @@ use OC\Files\Storage\Temporary;
use OC\Files\View;
/**
- * Class UpdaterLegacy
+ * Class UpdaterLegacyTest
*
* @group DB
*
* @package Test\Files\Cache
*/
-class UpdaterLegacy extends \Test\TestCase {
+class UpdaterLegacyTest extends \Test\TestCase {
/**
* @var \OC\Files\Storage\Storage $storage
*/
diff --git a/tests/lib/files/cache/updater.php b/tests/lib/Files/Cache/UpdaterTest.php
index cdffac464dc..54fb3f3fc97 100644
--- a/tests/lib/files/cache/updater.php
+++ b/tests/lib/Files/Cache/UpdaterTest.php
@@ -13,13 +13,13 @@ use OC\Files\Storage\Temporary;
use OC\Files\View;
/**
- * Class Updater
+ * Class UpdaterTest
*
* @group DB
*
* @package Test\Files\Cache
*/
-class Updater extends \Test\TestCase {
+class UpdaterTest extends \Test\TestCase {
/**
* @var \OC\Files\Storage\Storage
*/
diff --git a/tests/lib/files/cache/watcher.php b/tests/lib/Files/Cache/WatcherTest.php
index cb90e92b477..3834b5591ff 100644
--- a/tests/lib/files/cache/watcher.php
+++ b/tests/lib/Files/Cache/WatcherTest.php
@@ -9,13 +9,13 @@
namespace Test\Files\Cache;
/**
- * Class Watcher
+ * Class WatcherTest
*
* @group DB
*
* @package Test\Files\Cache
*/
-class Watcher extends \Test\TestCase {
+class WatcherTest extends \Test\TestCase {
/**
* @var \OC\Files\Storage\Storage[] $storages
diff --git a/tests/lib/files/cache/wrapper/cachejail.php b/tests/lib/Files/Cache/Wrapper/CacheJailTest.php
index 9ddf3e9c61c..6ef6716f721 100644
--- a/tests/lib/files/cache/wrapper/cachejail.php
+++ b/tests/lib/Files/Cache/Wrapper/CacheJailTest.php
@@ -8,7 +8,7 @@
namespace Test\Files\Cache\Wrapper;
-use Test\Files\Cache\Cache;
+use Test\Files\Cache\CacheTest;
/**
* Class CacheJail
@@ -17,7 +17,7 @@ use Test\Files\Cache\Cache;
*
* @package Test\Files\Cache\Wrapper
*/
-class CacheJail extends Cache {
+class CacheJailTest extends CacheTest {
/**
* @var \OC\Files\Cache\Cache $sourceCache
*/
diff --git a/tests/lib/files/cache/wrapper/cachepermissionsmask.php b/tests/lib/Files/Cache/Wrapper/CachePermissionsMaskTest.php
index a4cc7edba37..c12b35867ff 100644
--- a/tests/lib/files/cache/wrapper/cachepermissionsmask.php
+++ b/tests/lib/Files/Cache/Wrapper/CachePermissionsMaskTest.php
@@ -9,7 +9,7 @@
namespace Test\Files\Cache\Wrapper;
use OCP\Constants;
-use Test\Files\Cache\Cache;
+use Test\Files\Cache\CacheTest;
/**
* Class CachePermissionsMask
@@ -18,7 +18,7 @@ use Test\Files\Cache\Cache;
*
* @package Test\Files\Cache\Wrapper
*/
-class CachePermissionsMask extends Cache {
+class CachePermissionsMaskTest extends CacheTest {
/**
* @var \OC\Files\Cache\Cache $sourceCache
*/
diff --git a/tests/lib/files/config/usermountcache.php b/tests/lib/Files/Config/UserMountCacheTest.php
index 070c2f6176d..e7554fc36d9 100644
--- a/tests/lib/files/config/usermountcache.php
+++ b/tests/lib/Files/Config/UserMountCacheTest.php
@@ -21,7 +21,7 @@ use Test\Util\User\Dummy;
/**
* @group DB
*/
-class UserMountCache extends TestCase {
+class UserMountCacheTest extends TestCase {
/**
* @var IDBConnection
*/
diff --git a/tests/lib/files/etagtest.php b/tests/lib/Files/EtagTest.php
index d8e44000f9c..d8e44000f9c 100644
--- a/tests/lib/files/etagtest.php
+++ b/tests/lib/Files/EtagTest.php
diff --git a/tests/lib/files/filesystem.php b/tests/lib/Files/FilesystemTest.php
index b5a3e147259..a4a4345d2f9 100644
--- a/tests/lib/files/filesystem.php
+++ b/tests/lib/Files/FilesystemTest.php
@@ -52,13 +52,13 @@ class DummyMountProvider implements IMountProvider {
}
/**
- * Class Filesystem
+ * Class FilesystemTest
*
* @group DB
*
* @package Test\Files
*/
-class Filesystem extends \Test\TestCase {
+class FilesystemTest extends \Test\TestCase {
const TEST_FILESYSTEM_USER1 = "test-filesystem-user1";
const TEST_FILESYSTEM_USER2 = "test-filesystem-user1";
diff --git a/tests/lib/files/mount/manager.php b/tests/lib/Files/Mount/ManagerTest.php
index 78322b47d50..46ae597f56b 100644
--- a/tests/lib/files/mount/manager.php
+++ b/tests/lib/Files/Mount/ManagerTest.php
@@ -16,7 +16,7 @@ class LongId extends Temporary {
}
}
-class Manager extends \Test\TestCase {
+class ManagerTest extends \Test\TestCase {
/**
* @var \OC\Files\Mount\Manager
*/
diff --git a/tests/lib/files/mount/mountpoint.php b/tests/lib/Files/Mount/MountPointTest.php
index 29610e6058d..392f10c7170 100644
--- a/tests/lib/files/mount/mountpoint.php
+++ b/tests/lib/Files/Mount/MountPointTest.php
@@ -8,7 +8,7 @@
namespace Test\Files\Mount;
-class MountPoint extends \Test\TestCase {
+class MountPointTest extends \Test\TestCase {
public function testGetStorage() {
$storage = $this->getMock('\OCP\Files\Storage');
@@ -23,7 +23,7 @@ class MountPoint extends \Test\TestCase {
$mountPoint = new \OC\Files\Mount\MountPoint(
// just use this because a real class is needed
- '\Test\Files\Mount\MountPoint',
+ '\Test\Files\Mount\MountPointTest',
'/mountpoint',
null,
$loader
@@ -50,7 +50,7 @@ class MountPoint extends \Test\TestCase {
$mountPoint = new \OC\Files\Mount\MountPoint(
// just use this because a real class is needed
- '\Test\Files\Mount\MountPoint',
+ '\Test\Files\Mount\MountPointTest',
'/mountpoint',
null,
$loader
diff --git a/tests/lib/files/mount/mount.php b/tests/lib/Files/Mount/MountTest.php
index 584766de836..f21095f2fa5 100644
--- a/tests/lib/files/mount/mount.php
+++ b/tests/lib/Files/Mount/MountTest.php
@@ -12,7 +12,7 @@ namespace Test\Files\Mount;
use OC\Files\Storage\StorageFactory;
use OC\Files\Storage\Wrapper\Wrapper;
-class Mount extends \Test\TestCase {
+class MountTest extends \Test\TestCase {
public function testFromStorageObject() {
$storage = $this->getMockBuilder('\OC\Files\Storage\Temporary')
->disableOriginalConstructor()
diff --git a/tests/lib/files/node/file.php b/tests/lib/Files/Node/FileTest.php
index ccc777c499f..180c7b12ce4 100644
--- a/tests/lib/files/node/file.php
+++ b/tests/lib/Files/Node/FileTest.php
@@ -13,7 +13,7 @@ use OCP\Files\NotFoundException;
use OCP\Files\NotPermittedException;
use OC\Files\View;
-class File extends \Test\TestCase {
+class FileTest extends \Test\TestCase {
private $user;
protected function setUp() {
diff --git a/tests/lib/files/node/folder.php b/tests/lib/Files/Node/FolderTest.php
index f6d488d6590..7ce9fff1419 100644
--- a/tests/lib/files/node/folder.php
+++ b/tests/lib/Files/Node/FolderTest.php
@@ -17,13 +17,13 @@ use OCP\Files\NotPermittedException;
use OC\Files\View;
/**
- * Class Folder
+ * Class FolderTest
*
* @group DB
*
* @package Test\Files\Node
*/
-class Folder extends \Test\TestCase {
+class FolderTest extends \Test\TestCase {
private $user;
protected function setUp() {
diff --git a/tests/lib/files/node/hookconnector.php b/tests/lib/Files/Node/HookConnectorTest.php
index e2a5e190687..7245dd37593 100644
--- a/tests/lib/files/node/hookconnector.php
+++ b/tests/lib/Files/Node/HookConnectorTest.php
@@ -18,13 +18,13 @@ use Test\Traits\MountProviderTrait;
use Test\Traits\UserTrait;
/**
- * Class HookConnector
+ * Class HookConnectorTest
*
* @group DB
*
* @package Test\Files\Node
*/
-class HookConnector extends TestCase {
+class HookConnectorTest extends TestCase {
use UserTrait;
use MountProviderTrait;
diff --git a/tests/lib/files/node/IntegrationTest.php b/tests/lib/Files/Node/IntegrationTest.php
index e11f9bca4ea..f52e0623e14 100644
--- a/tests/lib/files/node/IntegrationTest.php
+++ b/tests/lib/Files/Node/IntegrationTest.php
@@ -14,7 +14,7 @@ use OC\Files\View;
use OC\User\User;
/**
- * Class IntegrationTests
+ * Class IntegrationTest
*
* @group DB
*
diff --git a/tests/lib/files/node/node.php b/tests/lib/Files/Node/NodeTest.php
index a1693b034fa..a9575507b4f 100644
--- a/tests/lib/files/node/node.php
+++ b/tests/lib/Files/Node/NodeTest.php
@@ -10,7 +10,7 @@ namespace Test\Files\Node;
use OC\Files\FileInfo;
-class Node extends \Test\TestCase {
+class NodeTest extends \Test\TestCase {
private $user;
protected function setUp() {
diff --git a/tests/lib/files/node/root.php b/tests/lib/Files/Node/RootTest.php
index 9c77959869d..1b4824cba76 100644
--- a/tests/lib/files/node/root.php
+++ b/tests/lib/Files/Node/RootTest.php
@@ -15,7 +15,7 @@ use OC\Files\Mount\Manager;
/**
* @group DB
*/
-class Root extends \Test\TestCase {
+class RootTest extends \Test\TestCase {
private $user;
protected function setUp() {
diff --git a/tests/lib/files/objectstore/noopscanner.php b/tests/lib/Files/ObjectStore/NoopScannerTest.php
index fba6619d42b..16bd325a8df 100644
--- a/tests/lib/files/objectstore/noopscanner.php
+++ b/tests/lib/Files/ObjectStore/NoopScannerTest.php
@@ -9,9 +9,9 @@
* later.
* See the COPYING-README file.
*/
-namespace Test\Files\Cache\ObjectStore;
+namespace Test\Files\ObjectStore;
-class NoopScanner extends \Test\TestCase {
+class NoopScannerTest extends \Test\TestCase {
/** @var \OC\Files\Storage\Storage $storage */
private $storage;
diff --git a/tests/lib/files/objectstore/SwiftTest.php b/tests/lib/Files/ObjectStore/SwiftTest.php
index 4731936627d..9f69e040f87 100644
--- a/tests/lib/files/objectstore/SwiftTest.php
+++ b/tests/lib/Files/ObjectStore/SwiftTest.php
@@ -18,7 +18,7 @@
*
*/
-namespace Test\Files\Cache\ObjectStore;
+namespace Test\Files\ObjectStore;
use OC\Files\ObjectStore\ObjectStoreStorage;
use OC\Files\ObjectStore\Swift;
diff --git a/tests/lib/files/pathverificationtest.php b/tests/lib/Files/PathVerificationTest.php
index ea9859c862c..9ce9416455f 100644
--- a/tests/lib/files/pathverificationtest.php
+++ b/tests/lib/Files/PathVerificationTest.php
@@ -11,7 +11,7 @@ use OC\Files\Storage\Local;
use OC\Files\View;
/**
- * Class PathVerification
+ * Class PathVerificationTest
*
* @group DB
*
diff --git a/tests/lib/files/storage/commontest.php b/tests/lib/Files/Storage/CommonTest.php
index 38faa9b0b21..38faa9b0b21 100644
--- a/tests/lib/files/storage/commontest.php
+++ b/tests/lib/Files/Storage/CommonTest.php
diff --git a/tests/lib/files/storage/copydirectory.php b/tests/lib/Files/Storage/CopyDirectoryTest.php
index bc066268cda..74b8148aa36 100644
--- a/tests/lib/files/storage/copydirectory.php
+++ b/tests/lib/Files/Storage/CopyDirectoryTest.php
@@ -37,13 +37,13 @@ class CopyDirectoryStorage extends StorageNoRecursiveCopy {
}
/**
- * Class CopyDirectory
+ * Class CopyDirectoryTest
*
* @group DB
*
* @package Test\Files\Storage
*/
-class CopyDirectory extends Storage {
+class CopyDirectoryTest extends Storage {
protected function setUp() {
parent::setUp();
diff --git a/tests/lib/files/storage/homestoragequota.php b/tests/lib/Files/Storage/HomeStorageQuotaTest.php
index 9a3c6b151fc..68fa4bb0bbb 100644
--- a/tests/lib/files/storage/homestoragequota.php
+++ b/tests/lib/Files/Storage/HomeStorageQuotaTest.php
@@ -22,11 +22,11 @@
namespace Test\Files\Storage;
/**
- * Class HomeStorageQuota
+ * Class HomeStorageQuotaTest
*
* @group DB
*/
-class HomeStorageQuota extends \Test\TestCase {
+class HomeStorageQuotaTest extends \Test\TestCase {
/**
* Tests that the home storage is not wrapped when no quota exists.
*/
diff --git a/tests/lib/files/storage/home.php b/tests/lib/Files/Storage/HomeTest.php
index 1ed3b137cd4..d9a1b11849e 100644
--- a/tests/lib/files/storage/home.php
+++ b/tests/lib/Files/Storage/HomeTest.php
@@ -54,7 +54,7 @@ class DummyUser extends User {
*
* @package Test\Files\Storage
*/
-class Home extends Storage {
+class HomeTest extends Storage {
/**
* @var string tmpDir
*/
diff --git a/tests/lib/files/storage/local.php b/tests/lib/Files/Storage/LocalTest.php
index 4cc6c6a842c..7b8ae6a24b2 100644
--- a/tests/lib/files/storage/local.php
+++ b/tests/lib/Files/Storage/LocalTest.php
@@ -23,13 +23,13 @@
namespace Test\Files\Storage;
/**
- * Class Local
+ * Class LocalTest
*
* @group DB
*
* @package Test\Files\Storage
*/
-class Local extends Storage {
+class LocalTest extends Storage {
/**
* @var string tmpDir
*/
diff --git a/tests/lib/files/storage/storage.php b/tests/lib/Files/Storage/Storage.php
index ed2ea87f9d9..ed2ea87f9d9 100644
--- a/tests/lib/files/storage/storage.php
+++ b/tests/lib/Files/Storage/Storage.php
diff --git a/tests/lib/files/storage/storagefactory.php b/tests/lib/Files/Storage/StorageFactoryTest.php
index fcdff577dd5..d3dc036ab42 100644
--- a/tests/lib/files/storage/storagefactory.php
+++ b/tests/lib/Files/Storage/StorageFactoryTest.php
@@ -25,7 +25,7 @@ class DummyWrapper extends Wrapper {
}
}
-class StorageFactory extends TestCase {
+class StorageFactoryTest extends TestCase {
public function testSimpleWrapper() {
$instance = new \OC\Files\Storage\StorageFactory();
$mount = new MountPoint('\OC\Files\Storage\Temporary', '/foo', [[]], $instance);
diff --git a/tests/lib/files/storage/wrapper/availability.php b/tests/lib/Files/Storage/Wrapper/AvailabilityTest.php
index 311334a80a3..5ea7f8403ce 100644
--- a/tests/lib/files/storage/wrapper/availability.php
+++ b/tests/lib/Files/Storage/Wrapper/AvailabilityTest.php
@@ -21,7 +21,7 @@
namespace Test\Files\Storage\Wrapper;
-class Availability extends \Test\TestCase {
+class AvailabilityTest extends \Test\TestCase {
protected function getWrapperInstance() {
$storage = $this->getMockBuilder('\OC\Files\Storage\Temporary')
->disableOriginalConstructor()
diff --git a/tests/lib/files/storage/wrapper/encryption.php b/tests/lib/Files/Storage/Wrapper/EncryptionTest.php
index 21f7d9f09b9..e9ebf2f3bdf 100644
--- a/tests/lib/files/storage/wrapper/encryption.php
+++ b/tests/lib/Files/Storage/Wrapper/EncryptionTest.php
@@ -8,7 +8,7 @@ use OC\Files\View;
use OC\User\Manager;
use Test\Files\Storage\Storage;
-class Encryption extends Storage {
+class EncryptionTest extends Storage {
/**
* block size will always be 8192 for a PHP stream
diff --git a/tests/lib/files/storage/wrapper/jail.php b/tests/lib/Files/Storage/Wrapper/JailTest.php
index 9b16bc5a321..b03eb0bcc63 100644
--- a/tests/lib/files/storage/wrapper/jail.php
+++ b/tests/lib/Files/Storage/Wrapper/JailTest.php
@@ -8,7 +8,7 @@
namespace Test\Files\Storage\Wrapper;
-class Jail extends \Test\Files\Storage\Storage {
+class JailTest extends \Test\Files\Storage\Storage {
/**
* @var \OC\Files\Storage\Temporary
diff --git a/tests/lib/files/storage/wrapper/permissionsmask.php b/tests/lib/Files/Storage/Wrapper/PermissionsMaskTest.php
index 7e8c387677c..c3421553643 100644
--- a/tests/lib/files/storage/wrapper/permissionsmask.php
+++ b/tests/lib/Files/Storage/Wrapper/PermissionsMaskTest.php
@@ -10,7 +10,7 @@ namespace Test\Files\Storage\Wrapper;
use OCP\Constants;
-class PermissionsMask extends \Test\Files\Storage\Storage {
+class PermissionsMaskTest extends \Test\Files\Storage\Storage {
/**
* @var \OC\Files\Storage\Temporary
diff --git a/tests/lib/files/storage/wrapper/quota.php b/tests/lib/Files/Storage/Wrapper/QuotaTest.php
index d087a3eef33..2e9f68b3c56 100644
--- a/tests/lib/files/storage/wrapper/quota.php
+++ b/tests/lib/Files/Storage/Wrapper/QuotaTest.php
@@ -14,13 +14,13 @@ use OC\Files\Cache\CacheEntry;
\OC::$loader->load('\OC\Files\Filesystem');
/**
- * Class Quota
+ * Class QuotaTest
*
* @group DB
*
* @package Test\Files\Storage\Wrapper
*/
-class Quota extends \Test\Files\Storage\Storage {
+class QuotaTest extends \Test\Files\Storage\Storage {
/**
* @var string tmpDir
*/
diff --git a/tests/lib/files/storage/wrapper/wrapper.php b/tests/lib/Files/Storage/Wrapper/WrapperTest.php
index a5a678cb9f7..942ff27fc35 100644
--- a/tests/lib/files/storage/wrapper/wrapper.php
+++ b/tests/lib/Files/Storage/Wrapper/WrapperTest.php
@@ -8,7 +8,7 @@
namespace Test\Files\Storage\Wrapper;
-class Wrapper extends \Test\Files\Storage\Storage {
+class WrapperTest extends \Test\Files\Storage\Storage {
/**
* @var string tmpDir
*/
diff --git a/tests/lib/files/stream/dummyencryptionwrapper.php b/tests/lib/Files/Stream/DummyEncryptionWrapper.php
index bb512d99c66..bb512d99c66 100644
--- a/tests/lib/files/stream/dummyencryptionwrapper.php
+++ b/tests/lib/Files/Stream/DummyEncryptionWrapper.php
diff --git a/tests/lib/files/stream/encryption.php b/tests/lib/Files/Stream/EncryptionTest.php
index 20a4100d2ff..45204e48d09 100644
--- a/tests/lib/files/stream/encryption.php
+++ b/tests/lib/Files/Stream/EncryptionTest.php
@@ -4,7 +4,7 @@ namespace Test\Files\Stream;
use OC\Files\View;
-class Encryption extends \Test\TestCase {
+class EncryptionTest extends \Test\TestCase {
/** @var \OCP\Encryption\IEncryptionModule | \PHPUnit_Framework_MockObject_MockObject */
private $encryptionModule;
diff --git a/tests/lib/files/stream/quota.php b/tests/lib/Files/Stream/QuotaTest.php
index 28584cf82db..d084f0c769c 100644
--- a/tests/lib/files/stream/quota.php
+++ b/tests/lib/Files/Stream/QuotaTest.php
@@ -8,7 +8,7 @@
namespace Test\Files\Stream;
-class Quota extends \Test\TestCase {
+class QuotaTest extends \Test\TestCase {
protected function tearDown() {
\OC\Files\Stream\Quota::clear();
parent::tearDown();
diff --git a/tests/lib/files/stream/staticstream.php b/tests/lib/Files/Stream/StaticStreamTest.php
index 416a4670efd..309291a3a5b 100644
--- a/tests/lib/files/stream/staticstream.php
+++ b/tests/lib/Files/Stream/StaticStreamTest.php
@@ -8,7 +8,7 @@
namespace Test\Files\Stream;
-class StaticStream extends \Test\TestCase {
+class StaticStreamTest extends \Test\TestCase {
private $sourceFile;
private $sourceText;
diff --git a/tests/lib/files/type/DetectionTest.php b/tests/lib/Files/Type/DetectionTest.php
index 5800f4eb8e3..5800f4eb8e3 100644
--- a/tests/lib/files/type/DetectionTest.php
+++ b/tests/lib/Files/Type/DetectionTest.php
diff --git a/tests/lib/files/type/loadertest.php b/tests/lib/Files/Type/LoaderTest.php
index a77d672f667..a77d672f667 100644
--- a/tests/lib/files/type/loadertest.php
+++ b/tests/lib/Files/Type/LoaderTest.php
diff --git a/tests/lib/files/utils/scanner.php b/tests/lib/Files/Utils/ScannerTest.php
index 1220c57e962..0c8e41c24c7 100644
--- a/tests/lib/files/utils/scanner.php
+++ b/tests/lib/Files/Utils/ScannerTest.php
@@ -33,13 +33,13 @@ class TestScanner extends \OC\Files\Utils\Scanner {
}
/**
- * Class Scanner
+ * Class ScannerTest
*
* @group DB
*
* @package Test\Files\Utils
*/
-class Scanner extends \Test\TestCase {
+class ScannerTest extends \Test\TestCase {
/**
* @var \Test\Util\User\Dummy
*/
diff --git a/tests/lib/files/view.php b/tests/lib/Files/ViewTest.php
index d33c9f31503..2c27bb64a70 100644
--- a/tests/lib/files/view.php
+++ b/tests/lib/Files/ViewTest.php
@@ -41,13 +41,13 @@ class TemporaryNoLocal extends \OC\Files\Storage\Temporary {
}
/**
- * Class View
+ * Class ViewTest
*
* @group DB
*
* @package Test\Files
*/
-class View extends \Test\TestCase {
+class ViewTest extends \Test\TestCase {
/**
* @var \OC\Files\Storage\Storage[] $storages
*/
diff --git a/tests/lib/files.php b/tests/lib/FilesTest.php
index 6808b3e9f64..b2a68c2a31b 100644
--- a/tests/lib/files.php
+++ b/tests/lib/FilesTest.php
@@ -22,7 +22,7 @@
namespace Test;
-class Files extends \Test\TestCase {
+class FilesTest extends \Test\TestCase {
const UPLOAD_LIMIT_DEFAULT_STR = '513M';
const UPLOAD_LIMIT_SETTING_STR = '2M';
diff --git a/tests/lib/group/backend.php b/tests/lib/Group/Backend.php
index 53a13e6c62f..eb17e9bded7 100644
--- a/tests/lib/group/backend.php
+++ b/tests/lib/Group/Backend.php
@@ -27,7 +27,7 @@
namespace Test\Group;
/**
- * Class Test_Group_Backend
+ * Class Backend
*
* @group DB
*/
diff --git a/tests/lib/group/database.php b/tests/lib/Group/DatabaseTest.php
index bf9d9c35b0b..395a442c5e3 100644
--- a/tests/lib/group/database.php
+++ b/tests/lib/Group/DatabaseTest.php
@@ -30,7 +30,7 @@ namespace Test\Group;
*
* @group DB
*/
-class Database extends Backend {
+class DatabaseTest extends Backend {
private $groups = array();
/**
diff --git a/tests/lib/group/dummy.php b/tests/lib/Group/Dummy.php
index 5504cd63a0a..5504cd63a0a 100644
--- a/tests/lib/group/dummy.php
+++ b/tests/lib/Group/Dummy.php
diff --git a/tests/lib/group/group.php b/tests/lib/Group/GroupTest.php
index bf834ab2348..5ab8e41e4af 100644
--- a/tests/lib/group/group.php
+++ b/tests/lib/Group/GroupTest.php
@@ -11,7 +11,7 @@ namespace Test\Group;
use OC\User\User;
-class Group extends \Test\TestCase {
+class GroupTest extends \Test\TestCase {
/**
* @return \OC\User\Manager | \OC\User\Manager
*/
diff --git a/tests/lib/group/LegacyGroupTest.php b/tests/lib/Group/LegacyGroupTest.php
index 12bcfdddf15..12bcfdddf15 100644
--- a/tests/lib/group/LegacyGroupTest.php
+++ b/tests/lib/Group/LegacyGroupTest.php
diff --git a/tests/lib/group/manager.php b/tests/lib/Group/ManagerTest.php
index 751f0d0ebd5..907f2b59452 100644
--- a/tests/lib/group/manager.php
+++ b/tests/lib/Group/ManagerTest.php
@@ -11,7 +11,7 @@ namespace Test\Group;
use OC\User\User;
-class Manager extends \Test\TestCase {
+class ManagerTest extends \Test\TestCase {
public function testGet() {
/**
* @var \PHPUnit_Framework_MockObject_MockObject | \OC\Group\Backend $backend
diff --git a/tests/lib/group/metadatatest.php b/tests/lib/Group/MetaDataTest.php
index 593bbcb48db..593bbcb48db 100644
--- a/tests/lib/group/metadatatest.php
+++ b/tests/lib/Group/MetaDataTest.php
diff --git a/tests/lib/hookhelper.php b/tests/lib/HookHelper.php
index f1cce831477..f1cce831477 100644
--- a/tests/lib/hookhelper.php
+++ b/tests/lib/HookHelper.php
diff --git a/tests/lib/hooks/basicemitter.php b/tests/lib/Hooks/BasicEmitterTest.php
index 899d3ecd3b3..2e6bd8100e3 100644
--- a/tests/lib/hooks/basicemitter.php
+++ b/tests/lib/Hooks/BasicEmitterTest.php
@@ -31,7 +31,7 @@ class DummyEmitter extends \OC\Hooks\BasicEmitter {
class EmittedException extends \Exception {
}
-class BasicEmitter extends \Test\TestCase {
+class BasicEmitterTest extends \Test\TestCase {
/**
* @var \OC\Hooks\Emitter $emitter
*/
@@ -64,7 +64,7 @@ class BasicEmitter extends \Test\TestCase {
* @expectedException \Test\Hooks\EmittedException
*/
public function testStaticCallback() {
- $this->emitter->listen('Test', 'test', array('\Test\Hooks\BasicEmitter', 'staticCallBack'));
+ $this->emitter->listen('Test', 'test', array('\Test\Hooks\BasicEmitterTest', 'staticCallBack'));
$this->emitter->emitEvent('Test', 'test');
}
diff --git a/tests/lib/hooks/forwardingemitter.php b/tests/lib/Hooks/ForwardingEmitterTest.php
index 5e8e252d3e3..ea8ee5c4121 100644
--- a/tests/lib/hooks/forwardingemitter.php
+++ b/tests/lib/Hooks/ForwardingEmitterTest.php
@@ -29,7 +29,7 @@ class DummyForwardingEmitter extends \OC\Hooks\ForwardingEmitter {
*
* @package OC\Hooks
*/
-class ForwardingEmitter extends BasicEmitter {
+class ForwardingEmitterTest extends BasicEmitterTest {
public function testSingleForward() {
$baseEmitter = new PublicEmitter();
$forwardingEmitter = new DummyForwardingEmitter();
diff --git a/tests/lib/hooks/legacyemitter.php b/tests/lib/Hooks/LegacyEmitterTest.php
index f030afbc090..60a29f23245 100644
--- a/tests/lib/hooks/legacyemitter.php
+++ b/tests/lib/Hooks/LegacyEmitterTest.php
@@ -21,7 +21,7 @@ class DummyLegacyEmitter extends \OC\Hooks\LegacyEmitter {
}
}
-class LegacyEmitter extends BasicEmitter {
+class LegacyEmitterTest extends BasicEmitterTest {
//we can't use exceptions here since OC_Hooks catches all exceptions
private static $emitted = false;
@@ -44,13 +44,13 @@ class LegacyEmitter extends BasicEmitter {
}
public function testLegacyHook() {
- \OC_Hook::connect('Test', 'test', '\Test\Hooks\LegacyEmitter', 'staticLegacyCallBack');
+ \OC_Hook::connect('Test', 'test', '\Test\Hooks\LegacyEmitterTest', 'staticLegacyCallBack');
$this->emitter->emitEvent('Test', 'test');
$this->assertEquals(true, self::$emitted);
}
public function testLegacyArguments() {
- \OC_Hook::connect('Test', 'test', '\Test\Hooks\LegacyEmitter', 'staticLegacyArgumentsCallBack');
+ \OC_Hook::connect('Test', 'test', '\Test\Hooks\LegacyEmitterTest', 'staticLegacyArgumentsCallBack');
$this->emitter->emitEvent('Test', 'test', array('foo' => 'foo', 'bar' => 'bar'));
$this->assertEquals(true, self::$emitted);
}
diff --git a/tests/lib/http/client/clientservicetest.php b/tests/lib/Http/Client/ClientServiceTest.php
index 3c406f30111..3c406f30111 100644
--- a/tests/lib/http/client/clientservicetest.php
+++ b/tests/lib/Http/Client/ClientServiceTest.php
diff --git a/tests/lib/http/client/clienttest.php b/tests/lib/Http/Client/ClientTest.php
index 705e1eeddea..705e1eeddea 100644
--- a/tests/lib/http/client/clienttest.php
+++ b/tests/lib/Http/Client/ClientTest.php
diff --git a/tests/lib/http/client/responsetest.php b/tests/lib/Http/Client/ResponseTest.php
index 685f34a0baf..685f34a0baf 100644
--- a/tests/lib/http/client/responsetest.php
+++ b/tests/lib/Http/Client/ResponseTest.php
diff --git a/tests/lib/integritycheck/checkertest.php b/tests/lib/IntegrityCheck/CheckerTest.php
index 6e6095668b0..6e6095668b0 100644
--- a/tests/lib/integritycheck/checkertest.php
+++ b/tests/lib/IntegrityCheck/CheckerTest.php
diff --git a/tests/lib/integritycheck/helpers/AppLocatorTest.php b/tests/lib/IntegrityCheck/Helpers/AppLocatorTest.php
index d0083298b22..d0083298b22 100644
--- a/tests/lib/integritycheck/helpers/AppLocatorTest.php
+++ b/tests/lib/IntegrityCheck/Helpers/AppLocatorTest.php
diff --git a/tests/lib/integritycheck/helpers/EnvironmentHelperTest.php b/tests/lib/IntegrityCheck/Helpers/EnvironmentHelperTest.php
index 9dc9214a779..9dc9214a779 100644
--- a/tests/lib/integritycheck/helpers/EnvironmentHelperTest.php
+++ b/tests/lib/IntegrityCheck/Helpers/EnvironmentHelperTest.php
diff --git a/tests/lib/integritycheck/helpers/FileAccessHelperTest.php b/tests/lib/IntegrityCheck/Helpers/FileAccessHelperTest.php
index 740b14e61c4..740b14e61c4 100644
--- a/tests/lib/integritycheck/helpers/FileAccessHelperTest.php
+++ b/tests/lib/IntegrityCheck/Helpers/FileAccessHelperTest.php
diff --git a/tests/lib/l10n/factorytest.php b/tests/lib/L10N/FactoryTest.php
index 98bb5ec13c9..98bb5ec13c9 100644
--- a/tests/lib/l10n/factorytest.php
+++ b/tests/lib/L10N/FactoryTest.php
diff --git a/tests/lib/l10n/l10nlegacytest.php b/tests/lib/L10N/L10nLegacyTest.php
index 1df22ba36bd..1df22ba36bd 100644
--- a/tests/lib/l10n/l10nlegacytest.php
+++ b/tests/lib/L10N/L10nLegacyTest.php
diff --git a/tests/lib/l10n/l10ntest.php b/tests/lib/L10N/L10nTest.php
index 227e07056a8..227e07056a8 100644
--- a/tests/lib/l10n/l10ntest.php
+++ b/tests/lib/L10N/L10nTest.php
diff --git a/tests/lib/largefilehelpergetfilesize.php b/tests/lib/LargeFileHelperGetFileSizeTest.php
index 57bc2381966..ac81a31819f 100644
--- a/tests/lib/largefilehelpergetfilesize.php
+++ b/tests/lib/LargeFileHelperGetFileSizeTest.php
@@ -12,7 +12,7 @@ namespace Test;
* Tests whether LargeFileHelper is able to determine file size at all.
* Large files are not considered yet.
*/
-class LargeFileHelperGetFileSize extends TestCase {
+class LargeFileHelperGetFileSizeTest extends TestCase {
/** @var string */
protected $filename;
/** @var int */
diff --git a/tests/lib/largefilehelper.php b/tests/lib/LargeFileHelperTest.php
index 1267a8c5833..7d155ff8b44 100644
--- a/tests/lib/largefilehelper.php
+++ b/tests/lib/LargeFileHelperTest.php
@@ -8,7 +8,7 @@
namespace Test;
-class LargeFileHelper extends TestCase {
+class LargeFileHelperTest extends TestCase {
protected $helper;
protected function setUp() {
diff --git a/tests/lib/lock/dblockingprovider.php b/tests/lib/Lock/DBLockingProviderTest.php
index 743dbf85613..a7c3f463155 100644
--- a/tests/lib/lock/dblockingprovider.php
+++ b/tests/lib/Lock/DBLockingProviderTest.php
@@ -30,7 +30,7 @@ use OCP\Lock\ILockingProvider;
*
* @package Test\Lock
*/
-class DBLockingProvider extends LockingProvider {
+class DBLockingProviderTest extends LockingProvider {
/**
* @var \OC\Lock\DBLockingProvider
*/
diff --git a/tests/lib/lock/lockingprovider.php b/tests/lib/Lock/LockingProvider.php
index 49742baa561..49742baa561 100644
--- a/tests/lib/lock/lockingprovider.php
+++ b/tests/lib/Lock/LockingProvider.php
diff --git a/tests/lib/lock/memcachelockingprovider.php b/tests/lib/Lock/MemcacheLockingProviderTest.php
index 40478b22939..baf99dbb2bb 100644
--- a/tests/lib/lock/memcachelockingprovider.php
+++ b/tests/lib/Lock/MemcacheLockingProviderTest.php
@@ -23,7 +23,7 @@ namespace Test\Lock;
use OC\Memcache\ArrayCache;
-class MemcacheLockingProvider extends LockingProvider {
+class MemcacheLockingProviderTest extends LockingProvider {
/**
* @var \OCP\IMemcache
diff --git a/tests/lib/log/OwncloudTest.php b/tests/lib/Log/OwncloudTest.php
index e19063a83f5..e19063a83f5 100644
--- a/tests/lib/log/OwncloudTest.php
+++ b/tests/lib/Log/OwncloudTest.php
diff --git a/tests/lib/logger.php b/tests/lib/LoggerTest.php
index e6a0abfbf28..4eb04b00f58 100644
--- a/tests/lib/logger.php
+++ b/tests/lib/LoggerTest.php
@@ -10,7 +10,7 @@ namespace Test;
use OC\Log;
-class Logger extends TestCase {
+class LoggerTest extends TestCase {
/**
* @var \OCP\ILogger
*/
@@ -25,7 +25,7 @@ class Logger extends TestCase {
'\OC\SystemConfig')
->disableOriginalConstructor()
->getMock();
- $this->logger = new Log('Test\Logger', $this->config);
+ $this->logger = new Log('Test\LoggerTest', $this->config);
}
public function testInterpolation() {
diff --git a/tests/lib/mail/MailerTest.php b/tests/lib/Mail/MailerTest.php
index c63ceb5982a..c63ceb5982a 100644
--- a/tests/lib/mail/MailerTest.php
+++ b/tests/lib/Mail/MailerTest.php
diff --git a/tests/lib/mail/MessageTest.php b/tests/lib/Mail/MessageTest.php
index 691168ce24c..691168ce24c 100644
--- a/tests/lib/mail/MessageTest.php
+++ b/tests/lib/Mail/MessageTest.php
diff --git a/tests/lib/memcache/apc.php b/tests/lib/Memcache/APCTest.php
index fdb785b9dc5..4bd7e62b94a 100644
--- a/tests/lib/memcache/apc.php
+++ b/tests/lib/Memcache/APCTest.php
@@ -9,7 +9,7 @@
namespace Test\Memcache;
-class APC extends Cache {
+class APCTest extends Cache {
protected function setUp() {
parent::setUp();
diff --git a/tests/lib/memcache/apcu.php b/tests/lib/Memcache/APCuTest.php
index afcaa99bfbe..73fd5a12880 100644
--- a/tests/lib/memcache/apcu.php
+++ b/tests/lib/Memcache/APCuTest.php
@@ -9,7 +9,7 @@
namespace Test\Memcache;
-class APCu extends Cache {
+class APCuTest extends Cache {
protected function setUp() {
parent::setUp();
diff --git a/tests/lib/memcache/arraycache.php b/tests/lib/Memcache/ArrayCacheTest.php
index 1db673da2a8..3ae8c116a01 100644
--- a/tests/lib/memcache/arraycache.php
+++ b/tests/lib/Memcache/ArrayCacheTest.php
@@ -9,7 +9,7 @@
namespace Test\Memcache;
-class ArrayCache extends Cache {
+class ArrayCacheTest extends Cache {
protected function setUp() {
parent::setUp();
$this->instance = new \OC\Memcache\ArrayCache('');
diff --git a/tests/lib/memcache/cache.php b/tests/lib/Memcache/Cache.php
index 8d6a231dd8d..8d6a231dd8d 100644
--- a/tests/lib/memcache/cache.php
+++ b/tests/lib/Memcache/Cache.php
diff --git a/tests/lib/memcache/castrait.php b/tests/lib/Memcache/CasTraitTest.php
index 17f412bb638..2f0ef939aa7 100644
--- a/tests/lib/memcache/castrait.php
+++ b/tests/lib/Memcache/CasTraitTest.php
@@ -23,7 +23,7 @@ namespace Test\Memcache;
use Test\TestCase;
-class CasTrait extends TestCase {
+class CasTraitTest extends TestCase {
/**
* @return \OC\Memcache\CasTrait
*/
diff --git a/tests/lib/memcache/FactoryTest.php b/tests/lib/Memcache/FactoryTest.php
index 8607ea7de9b..8607ea7de9b 100644
--- a/tests/lib/memcache/FactoryTest.php
+++ b/tests/lib/Memcache/FactoryTest.php
diff --git a/tests/lib/memcache/memcached.php b/tests/lib/Memcache/MemcachedTest.php
index 3ea9216029a..865d8594bbb 100644
--- a/tests/lib/memcache/memcached.php
+++ b/tests/lib/Memcache/MemcachedTest.php
@@ -9,7 +9,7 @@
namespace Test\Memcache;
-class Memcached extends Cache {
+class MemcachedTest extends Cache {
static public function setUpBeforeClass() {
parent::setUpBeforeClass();
diff --git a/tests/lib/memcache/redis.php b/tests/lib/Memcache/RedisTest.php
index 2e3c5d735fe..094954d4a1a 100644
--- a/tests/lib/memcache/redis.php
+++ b/tests/lib/Memcache/RedisTest.php
@@ -9,7 +9,7 @@
namespace Test\Memcache;
-class Redis extends Cache {
+class RedisTest extends Cache {
static public function setUpBeforeClass() {
parent::setUpBeforeClass();
diff --git a/tests/lib/memcache/xcache.php b/tests/lib/Memcache/XCacheTest.php
index 36efe0b220a..af720115d01 100644
--- a/tests/lib/memcache/xcache.php
+++ b/tests/lib/Memcache/XCacheTest.php
@@ -9,7 +9,7 @@
namespace Test\Memcache;
-class XCache extends Cache {
+class XCacheTest extends Cache {
protected function setUp() {
parent::setUp();
diff --git a/tests/lib/migration/BackgroundRepairTest.php b/tests/lib/Migration/BackgroundRepairTest.php
index e092f6c2e8b..e092f6c2e8b 100644
--- a/tests/lib/migration/BackgroundRepairTest.php
+++ b/tests/lib/Migration/BackgroundRepairTest.php
diff --git a/tests/lib/navigationmanagertest.php b/tests/lib/NavigationManagerTest.php
index 96708786e39..96708786e39 100644
--- a/tests/lib/navigationmanagertest.php
+++ b/tests/lib/NavigationManagerTest.php
diff --git a/tests/lib/notification/actiontest.php b/tests/lib/Notification/ActionTest.php
index 74c995280c9..74c995280c9 100644
--- a/tests/lib/notification/actiontest.php
+++ b/tests/lib/Notification/ActionTest.php
diff --git a/tests/lib/notification/managertest.php b/tests/lib/Notification/ManagerTest.php
index 4410781bc31..4410781bc31 100644
--- a/tests/lib/notification/managertest.php
+++ b/tests/lib/Notification/ManagerTest.php
diff --git a/tests/lib/notification/notificationtest.php b/tests/lib/Notification/NotificationTest.php
index c6ededf0142..c6ededf0142 100644
--- a/tests/lib/notification/notificationtest.php
+++ b/tests/lib/Notification/NotificationTest.php
diff --git a/tests/lib/ocs/MapStatusCodeTest.php b/tests/lib/OCS/MapStatusCodeTest.php
index 27ebfe209f7..27ebfe209f7 100644
--- a/tests/lib/ocs/MapStatusCodeTest.php
+++ b/tests/lib/OCS/MapStatusCodeTest.php
diff --git a/tests/lib/ocs/PrivatedataTest.php b/tests/lib/OCS/PrivatedataTest.php
index 0b3b23b8804..0b3b23b8804 100644
--- a/tests/lib/ocs/PrivatedataTest.php
+++ b/tests/lib/OCS/PrivatedataTest.php
diff --git a/tests/lib/ocs/ProviderTest.php b/tests/lib/OCS/ProviderTest.php
index 399fd3933d9..399fd3933d9 100644
--- a/tests/lib/ocs/ProviderTest.php
+++ b/tests/lib/OCS/ProviderTest.php
diff --git a/tests/lib/ocsclienttest.php b/tests/lib/OCSClientTest.php
index 4ae6fb62e0e..4ae6fb62e0e 100644
--- a/tests/lib/ocsclienttest.php
+++ b/tests/lib/OCSClientTest.php
diff --git a/tests/lib/preview/bitmap.php b/tests/lib/Preview/BitmapTest.php
index 1e135ceb083..32d6ce896e4 100644
--- a/tests/lib/preview/bitmap.php
+++ b/tests/lib/Preview/BitmapTest.php
@@ -22,13 +22,13 @@
namespace Test\Preview;
/**
- * Class Bitmap
+ * Class BitmapTest
*
* @group DB
*
* @package Test\Preview
*/
-class Bitmap extends Provider {
+class BitmapTest extends Provider {
public function setUp() {
parent::setUp();
diff --git a/tests/lib/preview/image.php b/tests/lib/Preview/ImageTest.php
index 6c82ff85723..a55433a2682 100644
--- a/tests/lib/preview/image.php
+++ b/tests/lib/Preview/ImageTest.php
@@ -22,13 +22,13 @@
namespace Test\Preview;
/**
- * Class Image
+ * Class ImageTest
*
* @group DB
*
* @package Test\Preview
*/
-class Image extends Provider {
+class ImageTest extends Provider {
public function setUp() {
parent::setUp();
diff --git a/tests/lib/preview/mp3.php b/tests/lib/Preview/MP3Test.php
index f6875a88ebd..576eea20b8b 100644
--- a/tests/lib/preview/mp3.php
+++ b/tests/lib/Preview/MP3Test.php
@@ -22,13 +22,13 @@
namespace Test\Preview;
/**
- * Class MP3
+ * Class MP3Test
*
* @group DB
*
* @package Test\Preview
*/
-class MP3 extends Provider {
+class MP3Test extends Provider {
public function setUp() {
parent::setUp();
diff --git a/tests/lib/preview/movie.php b/tests/lib/Preview/MovieTest.php
index 0ad8c13fc63..0c174a40ca6 100644
--- a/tests/lib/preview/movie.php
+++ b/tests/lib/Preview/MovieTest.php
@@ -22,13 +22,13 @@
namespace Test\Preview;
/**
- * Class Movie
+ * Class MovieTest
*
* @group DB
*
* @package Test\Preview
*/
-class Movie extends Provider {
+class MovieTest extends Provider {
public function setUp() {
$avconvBinary = \OC_Helper::findBinaryPath('avconv');
diff --git a/tests/lib/preview/office.php b/tests/lib/Preview/OfficeTest.php
index 83eb5e2cecb..15d66352c18 100644
--- a/tests/lib/preview/office.php
+++ b/tests/lib/Preview/OfficeTest.php
@@ -22,13 +22,13 @@
namespace Test\Preview;
/**
- * Class Office
+ * Class OfficeTest
*
* @group DB
*
* @package Test\Preview
*/
-class Office extends Provider {
+class OfficeTest extends Provider {
public function setUp() {
$libreofficeBinary = \OC_Helper::findBinaryPath('libreoffice');
diff --git a/tests/lib/preview/provider.php b/tests/lib/Preview/Provider.php
index 5377f30df82..5377f30df82 100644
--- a/tests/lib/preview/provider.php
+++ b/tests/lib/Preview/Provider.php
diff --git a/tests/lib/preview/svg.php b/tests/lib/Preview/SVGTest.php
index ef5f4cff80f..39bf3f1dfc9 100644
--- a/tests/lib/preview/svg.php
+++ b/tests/lib/Preview/SVGTest.php
@@ -22,13 +22,13 @@
namespace Test\Preview;
/**
- * Class SVG
+ * Class SVGTest
*
* @group DB
*
* @package Test\Preview
*/
-class SVG extends Provider {
+class SVGTest extends Provider {
public function setUp() {
$checkImagick = new \Imagick();
diff --git a/tests/lib/preview/txt.php b/tests/lib/Preview/TXTTest.php
index 219b850be95..dfa0b920e16 100644
--- a/tests/lib/preview/txt.php
+++ b/tests/lib/Preview/TXTTest.php
@@ -22,13 +22,13 @@
namespace Test\Preview;
/**
- * Class TXT
+ * Class TXTTest
*
* @group DB
*
* @package Test\Preview
*/
-class TXT extends Provider {
+class TXTTest extends Provider {
public function setUp() {
parent::setUp();
diff --git a/tests/lib/preview.php b/tests/lib/PreviewTest.php
index bc6f849cbe8..6ca88253468 100644
--- a/tests/lib/preview.php
+++ b/tests/lib/PreviewTest.php
@@ -29,13 +29,13 @@ use Test\Traits\MountProviderTrait;
use Test\Traits\UserTrait;
/**
- * Class Preview
+ * Class PreviewTest
*
* @group DB
*
* @package Test
*/
-class Preview extends TestCase {
+class PreviewTest extends TestCase {
use UserTrait;
use MountProviderTrait;
diff --git a/tests/lib/publicnamespace/ContactsTest.php b/tests/lib/PublicNamespace/ContactsTest.php
index 8b07c4831b6..8b07c4831b6 100644
--- a/tests/lib/publicnamespace/ContactsTest.php
+++ b/tests/lib/PublicNamespace/ContactsTest.php
diff --git a/tests/lib/publicnamespace/OCPConfigTest.php b/tests/lib/PublicNamespace/OCPConfigTest.php
index 44fd234735e..44fd234735e 100644
--- a/tests/lib/publicnamespace/OCPConfigTest.php
+++ b/tests/lib/PublicNamespace/OCPConfigTest.php
diff --git a/tests/lib/publicnamespace/UtilTest.php b/tests/lib/PublicNamespace/UtilTest.php
index 31d1f9fb0ee..31d1f9fb0ee 100644
--- a/tests/lib/publicnamespace/UtilTest.php
+++ b/tests/lib/PublicNamespace/UtilTest.php
diff --git a/tests/lib/repair/cleantags.php b/tests/lib/Repair/CleanTagsTest.php
index 214e2a17c94..804fa4f66c9 100644
--- a/tests/lib/repair/cleantags.php
+++ b/tests/lib/Repair/CleanTagsTest.php
@@ -17,7 +17,7 @@ use OCP\Migration\IOutput;
*
* @see \OC\Repair\CleanTags
*/
-class CleanTags extends \Test\TestCase {
+class CleanTagsTest extends \Test\TestCase {
/** @var \OC\Repair\CleanTags */
protected $repair;
diff --git a/tests/lib/repair/dropoldjobs.php b/tests/lib/Repair/DropOldJobsTest.php
index c8a4aa3f1c2..d83ecbe59c4 100644
--- a/tests/lib/repair/dropoldjobs.php
+++ b/tests/lib/Repair/DropOldJobsTest.php
@@ -18,7 +18,7 @@ use OCP\Migration\IOutput;
*
* @see \OC\Repair\DropOldTables
*/
-class DropOldJobs extends \Test\TestCase {
+class DropOldJobsTest extends \Test\TestCase {
/** @var IJobList */
protected $jobList;
diff --git a/tests/lib/repair/dropoldtables.php b/tests/lib/Repair/DropOldTablesTest.php
index d2e1d7c3449..1f5a4c15295 100644
--- a/tests/lib/repair/dropoldtables.php
+++ b/tests/lib/Repair/DropOldTablesTest.php
@@ -16,7 +16,7 @@ use OCP\Migration\IOutput;
*
* @see \OC\Repair\DropOldTables
*/
-class DropOldTables extends \Test\TestCase {
+class DropOldTablesTest extends \Test\TestCase {
/** @var \OCP\IDBConnection */
protected $connection;
diff --git a/tests/lib/repair/oldgroupmembershipsharestest.php b/tests/lib/Repair/OldGroupMembershipSharesTest.php
index cc04a80eef9..cc04a80eef9 100644
--- a/tests/lib/repair/oldgroupmembershipsharestest.php
+++ b/tests/lib/Repair/OldGroupMembershipSharesTest.php
diff --git a/tests/lib/repair/removegetetagentriestest.php b/tests/lib/Repair/RemoveGetETagEntriesTest.php
index c00923228d0..c00923228d0 100644
--- a/tests/lib/repair/removegetetagentriestest.php
+++ b/tests/lib/Repair/RemoveGetETagEntriesTest.php
diff --git a/tests/lib/repair/RepairCollationTest.php b/tests/lib/Repair/RepairCollationTest.php
index 2e304a74abc..2e304a74abc 100644
--- a/tests/lib/repair/RepairCollationTest.php
+++ b/tests/lib/Repair/RepairCollationTest.php
diff --git a/tests/lib/repair/repairinnodb.php b/tests/lib/Repair/RepairInnoDBTest.php
index 9b02bc46e29..1258dad73f5 100644
--- a/tests/lib/repair/repairinnodb.php
+++ b/tests/lib/Repair/RepairInnoDBTest.php
@@ -16,7 +16,7 @@ use OCP\Migration\IRepairStep;
*
* @see \OC\Repair\RepairMimeTypes
*/
-class RepairInnoDB extends \Test\TestCase {
+class RepairInnoDBTest extends \Test\TestCase {
/** @var IRepairStep */
private $repair;
diff --git a/tests/lib/repair/repairinvalidsharestest.php b/tests/lib/Repair/RepairInvalidSharesTest.php
index a1e871bcc80..a1e871bcc80 100644
--- a/tests/lib/repair/repairinvalidsharestest.php
+++ b/tests/lib/Repair/RepairInvalidSharesTest.php
diff --git a/tests/lib/repair/repairlegacystorage.php b/tests/lib/Repair/RepairLegacyStoragesTest.php
index 5b560458e76..aa51fe06a35 100644
--- a/tests/lib/repair/repairlegacystorage.php
+++ b/tests/lib/Repair/RepairLegacyStoragesTest.php
@@ -21,7 +21,7 @@ use Test\TestCase;
*
* @see \OC\Repair\RepairLegacyStorages
*/
-class RepairLegacyStorages extends TestCase {
+class RepairLegacyStoragesTest extends TestCase {
/** @var \OCP\IDBConnection */
private $connection;
/** @var \OCP\IConfig */
diff --git a/tests/lib/repair/repairmimetypes.php b/tests/lib/Repair/RepairMimeTypesTest.php
index d8ef95e9546..6a42b016938 100644
--- a/tests/lib/repair/repairmimetypes.php
+++ b/tests/lib/Repair/RepairMimeTypesTest.php
@@ -21,7 +21,7 @@ use OCP\Migration\IRepairStep;
*
* @see \OC\Repair\RepairMimeTypes
*/
-class RepairMimeTypes extends \Test\TestCase {
+class RepairMimeTypesTest extends \Test\TestCase {
/** @var IRepairStep */
private $repair;
diff --git a/tests/lib/repair/repairsharepropagation.php b/tests/lib/Repair/RepairSharePropagationTest.php
index 34b47397a53..07db3c84f28 100644
--- a/tests/lib/repair/repairsharepropagation.php
+++ b/tests/lib/Repair/RepairSharePropagationTest.php
@@ -11,7 +11,7 @@ namespace Test\Repair;
use OC\Repair\SharePropagation;
use OCP\Migration\IOutput;
-class RepairSharePropagation extends \Test\TestCase {
+class RepairSharePropagationTest extends \Test\TestCase {
public function keyProvider() {
return [
[['1', '2'], ['1', '2']],
diff --git a/tests/lib/repair/repairsqliteautoincrement.php b/tests/lib/Repair/RepairSqliteAutoincrementTest.php
index 581857ebfc9..22186283779 100644
--- a/tests/lib/repair/repairsqliteautoincrement.php
+++ b/tests/lib/Repair/RepairSqliteAutoincrementTest.php
@@ -14,7 +14,7 @@ use OCP\Migration\IOutput;
*
* @group DB
*/
-class RepairSqliteAutoincrement extends \Test\TestCase {
+class RepairSqliteAutoincrementTest extends \Test\TestCase {
/**
* @var \OC\Repair\SqliteAutoincrement
diff --git a/tests/lib/repair/updateoutdatedocsids.php b/tests/lib/Repair/UpdateOutdatedOcsIdsTest.php
index 06e2cb1d610..eb80e63a202 100644
--- a/tests/lib/repair/updateoutdatedocsids.php
+++ b/tests/lib/Repair/UpdateOutdatedOcsIdsTest.php
@@ -29,7 +29,7 @@ use Test\TestCase;
*
* @package Test\Repair
*/
-class UpdateOutdatedOcsIds extends TestCase {
+class UpdateOutdatedOcsIdsTest extends TestCase {
/** @var IConfig | \PHPUnit_Framework_MockObject_MockObject */
private $config;
/** @var \OC\Repair\UpdateOutdatedOcsIds */
diff --git a/tests/lib/repair/fixtures/dropoldtables.xml b/tests/lib/Repair/fixtures/dropoldtables.xml
index 6c42a8f90a7..6c42a8f90a7 100644
--- a/tests/lib/repair/fixtures/dropoldtables.xml
+++ b/tests/lib/Repair/fixtures/dropoldtables.xml
diff --git a/tests/lib/security/csp/ContentSecurityPolicyManagerTest.php b/tests/lib/Security/CSP/ContentSecurityPolicyManagerTest.php
index d463e7c648c..d463e7c648c 100644
--- a/tests/lib/security/csp/ContentSecurityPolicyManagerTest.php
+++ b/tests/lib/Security/CSP/ContentSecurityPolicyManagerTest.php
diff --git a/tests/lib/security/csrf/CsrfTokenGeneratorTest.php b/tests/lib/Security/CSRF/CsrfTokenGeneratorTest.php
index 28b85c3951f..28b85c3951f 100644
--- a/tests/lib/security/csrf/CsrfTokenGeneratorTest.php
+++ b/tests/lib/Security/CSRF/CsrfTokenGeneratorTest.php
diff --git a/tests/lib/security/csrf/CsrfTokenManagerTest.php b/tests/lib/Security/CSRF/CsrfTokenManagerTest.php
index ab19a43e91e..ab19a43e91e 100644
--- a/tests/lib/security/csrf/CsrfTokenManagerTest.php
+++ b/tests/lib/Security/CSRF/CsrfTokenManagerTest.php
diff --git a/tests/lib/security/csrf/CsrfTokenTest.php b/tests/lib/Security/CSRF/CsrfTokenTest.php
index da640ce5052..da640ce5052 100644
--- a/tests/lib/security/csrf/CsrfTokenTest.php
+++ b/tests/lib/Security/CSRF/CsrfTokenTest.php
diff --git a/tests/lib/security/csrf/tokenstorage/SessionStorageTest.php b/tests/lib/Security/CSRF/TokenStorage/SessionStorageTest.php
index 550fa49e1b2..550fa49e1b2 100644
--- a/tests/lib/security/csrf/tokenstorage/SessionStorageTest.php
+++ b/tests/lib/Security/CSRF/TokenStorage/SessionStorageTest.php
diff --git a/tests/lib/security/CertificateManagerTest.php b/tests/lib/Security/CertificateManagerTest.php
index 43206569cf4..43206569cf4 100644
--- a/tests/lib/security/CertificateManagerTest.php
+++ b/tests/lib/Security/CertificateManagerTest.php
diff --git a/tests/lib/security/CertificateTest.php b/tests/lib/Security/CertificateTest.php
index 6f7d7d4a37f..6f7d7d4a37f 100644
--- a/tests/lib/security/CertificateTest.php
+++ b/tests/lib/Security/CertificateTest.php
diff --git a/tests/lib/security/CredentialsManagerTest.php b/tests/lib/Security/CredentialsManagerTest.php
index 7eb4e4d7b1a..7eb4e4d7b1a 100644
--- a/tests/lib/security/CredentialsManagerTest.php
+++ b/tests/lib/Security/CredentialsManagerTest.php
diff --git a/tests/lib/security/CryptoTest.php b/tests/lib/Security/CryptoTest.php
index 356d504f4b3..356d504f4b3 100644
--- a/tests/lib/security/CryptoTest.php
+++ b/tests/lib/Security/CryptoTest.php
diff --git a/tests/lib/security/HasherTest.php b/tests/lib/Security/HasherTest.php
index 913f4d703e8..913f4d703e8 100644
--- a/tests/lib/security/HasherTest.php
+++ b/tests/lib/Security/HasherTest.php
diff --git a/tests/lib/security/SecureRandomTest.php b/tests/lib/Security/SecureRandomTest.php
index 40431c89795..40431c89795 100644
--- a/tests/lib/security/SecureRandomTest.php
+++ b/tests/lib/Security/SecureRandomTest.php
diff --git a/tests/lib/security/TrustedDomainHelperTest.php b/tests/lib/Security/TrustedDomainHelperTest.php
index dfd51167cca..dfd51167cca 100644
--- a/tests/lib/security/TrustedDomainHelperTest.php
+++ b/tests/lib/Security/TrustedDomainHelperTest.php
diff --git a/tests/lib/server.php b/tests/lib/ServerTest.php
index fe3c6fd5ee8..534f3f8cfd5 100644
--- a/tests/lib/server.php
+++ b/tests/lib/ServerTest.php
@@ -31,7 +31,7 @@ namespace Test;
*
* @package Test
*/
-class Server extends \Test\TestCase {
+class ServerTest extends \Test\TestCase {
/** @var \OC\Server */
protected $server;
diff --git a/tests/lib/session/cryptosessiondatatest.php b/tests/lib/Session/CryptoSessionDataTest.php
index ee6bcbf11c1..ee6bcbf11c1 100644
--- a/tests/lib/session/cryptosessiondatatest.php
+++ b/tests/lib/Session/CryptoSessionDataTest.php
diff --git a/tests/lib/session/cryptowrappingtest.php b/tests/lib/Session/CryptoWrappingTest.php
index e1fadbf933f..e1fadbf933f 100644
--- a/tests/lib/session/cryptowrappingtest.php
+++ b/tests/lib/Session/CryptoWrappingTest.php
diff --git a/tests/lib/session/memory.php b/tests/lib/Session/MemoryTest.php
index dbf2737fb3f..d92d7b90e5e 100644
--- a/tests/lib/session/memory.php
+++ b/tests/lib/Session/MemoryTest.php
@@ -9,7 +9,7 @@
namespace Test\Session;
-class Memory extends Session {
+class MemoryTest extends Session {
protected function setUp() {
parent::setUp();
@@ -17,7 +17,7 @@ class Memory extends Session {
}
/**
- * @expectedException OCP\Session\Exceptions\SessionNotAvailableException
+ * @expectedException \OCP\Session\Exceptions\SessionNotAvailableException
*/
public function testThrowsExceptionOnGetId() {
$this->instance->getId();
diff --git a/tests/lib/session/session.php b/tests/lib/Session/Session.php
index a1ed01b2ec8..a1ed01b2ec8 100644
--- a/tests/lib/session/session.php
+++ b/tests/lib/Session/Session.php
diff --git a/tests/lib/share/backend.php b/tests/lib/Share/Backend.php
index c5007d1583b..c5007d1583b 100644
--- a/tests/lib/share/backend.php
+++ b/tests/lib/Share/Backend.php
diff --git a/tests/lib/share/helper.php b/tests/lib/Share/HelperTest.php
index 3fe6389c408..02118bf0e2e 100644
--- a/tests/lib/share/helper.php
+++ b/tests/lib/Share/HelperTest.php
@@ -25,7 +25,7 @@ namespace Test\Share;
* @group DB
* Class Helper
*/
-class Helper extends \Test\TestCase {
+class HelperTest extends \Test\TestCase {
public function expireDateProvider() {
return array(
diff --git a/tests/lib/share/MailNotificationsTest.php b/tests/lib/Share/MailNotificationsTest.php
index 0c951d11f88..0c951d11f88 100644
--- a/tests/lib/share/MailNotificationsTest.php
+++ b/tests/lib/Share/MailNotificationsTest.php
diff --git a/tests/lib/share/searchresultsorter.php b/tests/lib/Share/SearchResultSorterTest.php
index 6bee5dfe7f0..7feccdd82f5 100644
--- a/tests/lib/share/searchresultsorter.php
+++ b/tests/lib/Share/SearchResultSorterTest.php
@@ -21,7 +21,7 @@
namespace Test\Share;
-class SearchResultSorter extends \Test\TestCase {
+class SearchResultSorterTest extends \Test\TestCase {
public function testSort() {
$search = 'lin';
$sorter = new \OC\Share\SearchResultSorter($search, 'foobar');
diff --git a/tests/lib/share/share.php b/tests/lib/Share/ShareTest.php
index 355005bb586..339193e7ff2 100644
--- a/tests/lib/share/share.php
+++ b/tests/lib/Share/ShareTest.php
@@ -26,7 +26,7 @@ namespace Test\Share;
*
* @group DB
*/
-class Share extends \Test\TestCase {
+class ShareTest extends \Test\TestCase {
protected $itemType;
protected $userBackend;
diff --git a/tests/lib/share20/defaultshareprovidertest.php b/tests/lib/Share20/DefaultShareProviderTest.php
index 44a48535b9b..44a48535b9b 100644
--- a/tests/lib/share20/defaultshareprovidertest.php
+++ b/tests/lib/Share20/DefaultShareProviderTest.php
diff --git a/tests/lib/share20/managertest.php b/tests/lib/Share20/ManagerTest.php
index 7d79150449c..7d79150449c 100644
--- a/tests/lib/share20/managertest.php
+++ b/tests/lib/Share20/ManagerTest.php
diff --git a/tests/lib/share20/sharetest.php b/tests/lib/Share20/ShareTest.php
index fdfc69f6577..fdfc69f6577 100644
--- a/tests/lib/share20/sharetest.php
+++ b/tests/lib/Share20/ShareTest.php
diff --git a/tests/lib/subadmin.php b/tests/lib/SubAdminTest.php
index 960943c22f5..c1159132a50 100644
--- a/tests/lib/subadmin.php
+++ b/tests/lib/SubAdminTest.php
@@ -20,7 +20,7 @@
*/
namespace Test;
-class SubAdmin extends \Test\TestCase {
+class SubAdminTest extends \Test\TestCase {
/** @var \OCP\IUserManager */
private $userManager;
diff --git a/tests/lib/systemtag/systemtagmanagertest.php b/tests/lib/SystemTag/SystemTagManagerTest.php
index 1afb147f08a..1afb147f08a 100644
--- a/tests/lib/systemtag/systemtagmanagertest.php
+++ b/tests/lib/SystemTag/SystemTagManagerTest.php
diff --git a/tests/lib/systemtag/systemtagobjectmappertest.php b/tests/lib/SystemTag/SystemTagObjectMapperTest.php
index 69cf7e8f816..69cf7e8f816 100644
--- a/tests/lib/systemtag/systemtagobjectmappertest.php
+++ b/tests/lib/SystemTag/SystemTagObjectMapperTest.php
diff --git a/tests/lib/tempmanager.php b/tests/lib/TempManagerTest.php
index 8faf804a203..0eaca464c74 100644
--- a/tests/lib/tempmanager.php
+++ b/tests/lib/TempManagerTest.php
@@ -21,7 +21,7 @@ class NullLogger extends Log {
}
}
-class TempManager extends \Test\TestCase {
+class TempManagerTest extends \Test\TestCase {
protected $baseDir = null;
diff --git a/tests/lib/template/resourcelocator.php b/tests/lib/Template/ResourceLocatorTest.php
index ef5e2ed1357..1918b927c94 100644
--- a/tests/lib/template/resourcelocator.php
+++ b/tests/lib/Template/ResourceLocatorTest.php
@@ -10,7 +10,7 @@ namespace Test\Template;
use OC\Template\ResourceNotFoundException;
-class ResourceLocator extends \Test\TestCase {
+class ResourceLocatorTest extends \Test\TestCase {
/** @var \PHPUnit_Framework_MockObject_MockObject */
protected $logger;
diff --git a/tests/lib/testmoveablemountpoint.php b/tests/lib/TestMoveableMountPoint.php
index 262016b76c1..262016b76c1 100644
--- a/tests/lib/testmoveablemountpoint.php
+++ b/tests/lib/TestMoveableMountPoint.php
diff --git a/tests/lib/traits/encryptiontrait.php b/tests/lib/Traits/EncryptionTrait.php
index 5e2ca4e561f..5e2ca4e561f 100644
--- a/tests/lib/traits/encryptiontrait.php
+++ b/tests/lib/Traits/EncryptionTrait.php
diff --git a/tests/lib/traits/mountprovidertrait.php b/tests/lib/Traits/MountProviderTrait.php
index bccb5b693ee..bccb5b693ee 100644
--- a/tests/lib/traits/mountprovidertrait.php
+++ b/tests/lib/Traits/MountProviderTrait.php
diff --git a/tests/lib/traits/usertrait.php b/tests/lib/Traits/UserTrait.php
index 229087a5200..229087a5200 100644
--- a/tests/lib/traits/usertrait.php
+++ b/tests/lib/Traits/UserTrait.php
diff --git a/tests/lib/updater/VersionCheckTest.php b/tests/lib/Updater/VersionCheckTest.php
index 13851338eef..fb43571cece 100644
--- a/tests/lib/updater/VersionCheckTest.php
+++ b/tests/lib/Updater/VersionCheckTest.php
@@ -20,7 +20,7 @@
*
*/
-namespace Test\Update;
+namespace Test\Updater;
use OC\Updater\VersionCheck;
use OCP\IConfig;
diff --git a/tests/lib/user/avataruserdummy.php b/tests/lib/User/AvatarUserDummy.php
index 123825de50f..123825de50f 100644
--- a/tests/lib/user/avataruserdummy.php
+++ b/tests/lib/User/AvatarUserDummy.php
diff --git a/tests/lib/user/backend.php b/tests/lib/User/Backend.php
index 85ccbac913c..85ccbac913c 100644
--- a/tests/lib/user/backend.php
+++ b/tests/lib/User/Backend.php
diff --git a/tests/lib/user/database.php b/tests/lib/User/DatabaseTest.php
index 76d6226a7fd..270d90b35bc 100644
--- a/tests/lib/user/database.php
+++ b/tests/lib/User/DatabaseTest.php
@@ -23,11 +23,11 @@
namespace Test\User;
/**
- * Class Test_User_Database
+ * Class DatabaseTest
*
* @group DB
*/
-class Database extends Backend {
+class DatabaseTest extends Backend {
/** @var array */
private $users;
diff --git a/tests/lib/user/dummy.php b/tests/lib/User/Dummy.php
index 50382aa8fe6..50382aa8fe6 100644
--- a/tests/lib/user/dummy.php
+++ b/tests/lib/User/Dummy.php
diff --git a/tests/lib/user/manager.php b/tests/lib/User/ManagerTest.php
index 14221e4a665..2a6cdbc1355 100644
--- a/tests/lib/user/manager.php
+++ b/tests/lib/User/ManagerTest.php
@@ -10,13 +10,13 @@
namespace Test\User;
/**
- * Class Manager
+ * Class ManagerTest
*
* @group DB
*
* @package Test\User
*/
-class Manager extends \Test\TestCase {
+class ManagerTest extends \Test\TestCase {
public function testGetBackends() {
$userDummyBackend = $this->getMock('\Test\Util\User\Dummy');
$manager = new \OC\User\Manager();
diff --git a/tests/lib/user/session.php b/tests/lib/User/SessionTest.php
index 444735b854f..4438487e2a0 100644
--- a/tests/lib/user/session.php
+++ b/tests/lib/User/SessionTest.php
@@ -16,7 +16,7 @@ use OC\User\User;
* @group DB
* @package Test\User
*/
-class Session extends \Test\TestCase {
+class SessionTest extends \Test\TestCase {
/** @var \OCP\AppFramework\Utility\ITimeFactory */
private $timeFactory;
diff --git a/tests/lib/user/user.php b/tests/lib/User/UserTest.php
index 71be3691003..a49bddde9eb 100644
--- a/tests/lib/user/user.php
+++ b/tests/lib/User/UserTest.php
@@ -12,13 +12,13 @@ namespace Test\User;
use OC\Hooks\PublicEmitter;
/**
- * Class User
+ * Class UserTest
*
* @group DB
*
* @package Test\User
*/
-class User extends \Test\TestCase {
+class UserTest extends \Test\TestCase {
public function testDisplayName() {
/**
* @var \OC\User\Backend | \PHPUnit_Framework_MockObject_MockObject $backend
@@ -120,7 +120,6 @@ class User extends \Test\TestCase {
/**
* @var \OC\User\Backend | \PHPUnit_Framework_MockObject_MockObject $backend
*/
- require_once 'avataruserdummy.php';
$backend = $this->getMock('Test\User\AvatarUserDummy');
$backend->expects($this->once())
->method('canChangeAvatar')
@@ -145,7 +144,6 @@ class User extends \Test\TestCase {
/**
* @var \OC\User\Backend | \PHPUnit_Framework_MockObject_MockObject $backend
*/
- require_once 'avataruserdummy.php';
$backend = $this->getMock('Test\User\AvatarUserDummy');
$backend->expects($this->once())
->method('canChangeAvatar')
@@ -170,7 +168,6 @@ class User extends \Test\TestCase {
/**
* @var \OC\User\Backend | \PHPUnit_Framework_MockObject_MockObject $backend
*/
- require_once 'avataruserdummy.php';
$backend = $this->getMock('Test\User\AvatarUserDummy');
$backend->expects($this->never())
->method('canChangeAvatar');
diff --git a/tests/lib/user.php b/tests/lib/UserTest.php
index dc5551d1cad..456e864ab75 100644
--- a/tests/lib/user.php
+++ b/tests/lib/UserTest.php
@@ -16,7 +16,7 @@ namespace Test;
*
* @package Test
*/
-class User extends TestCase {
+class UserTest extends TestCase {
/**
* @var \OC\User\Backend | \PHPUnit_Framework_MockObject_MockObject $backend
*/
diff --git a/tests/lib/util/group/dummy.php b/tests/lib/Util/Group/Dummy.php
index 8f06316ca03..8f06316ca03 100644
--- a/tests/lib/util/group/dummy.php
+++ b/tests/lib/Util/Group/Dummy.php
diff --git a/tests/lib/util/user/dummy.php b/tests/lib/Util/User/Dummy.php
index ea47f5d7d15..ea47f5d7d15 100644
--- a/tests/lib/util/user/dummy.php
+++ b/tests/lib/Util/User/Dummy.php