1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-29 02:59:52 +02:00

[ticket/12009] Move valid extensions in tests to correct dir structure.

PHPBB3-12009
This commit is contained in:
Cesar G
2013-12-12 04:29:48 -08:00
parent 4d65727acc
commit 31234b26d8
27 changed files with 145 additions and 97 deletions

View File

@@ -0,0 +1,18 @@
<?php
namespace vendor2\foo\acp;
class a_info
{
public function module()
{
return array(
'filename' => 'vendor2\\foo\\acp\\a_module',
'title' => 'Foobar',
'version' => '3.1.0-dev',
'modes' => array(
'config' => array('title' => 'Config', 'auth' => '', 'cat' => array('ACP_MODS')),
),
);
}
}

View File

@@ -0,0 +1,7 @@
<?php
namespace vendor2\foo\acp;
class a_module
{
}

View File

@@ -0,0 +1,22 @@
<?php
namespace vendor2\foo\acp;
/*
* Due to the mismatch between the class name and the file name, this module
* file shouldn't be found by the extension finder
*/
class foo_info
{
public function module()
{
return array(
'filename' => 'vendor2\foo\acp\fail_module',
'title' => 'Foobar',
'version' => '3.1.0-dev',
'modes' => array(
'config' => array('title' => 'Config', 'auth' => '', 'cat' => array('ACP_MODS')),
),
);
}
}

View File

@@ -0,0 +1,11 @@
<?php
namespace vendor2\foo\acp;
/*
* Due to the mismatch between the class name and the file name of the module
* info file, this module's info file shouldn't be found
*/
class fail_module
{
}