Fix PSR-0 file naming

This commit is contained in:
Romain Neutron
2014-02-14 12:16:54 +01:00
parent 787e86aacf
commit c5d3f97258
83 changed files with 45 additions and 38 deletions

View File

@@ -1,8 +1,9 @@
<?php
namespace Alchemy\Phrasea\Authentication\PersistentCookie;
namespace Alchemy\Tests\Phrasea\Authentication\PersistentCookie;
use Alchemy\Phrasea\Model\Entities\Session;
use Alchemy\Phrasea\Authentication\PersistentCookie\Manager;
class ManagerTest extends \PhraseanetTestCase
{

View File

@@ -1,6 +1,6 @@
<?php
namespace Alchemy\Tests\Phrasea;
namespace Alchemy\Tests\Phrasea\Authentication\Phrasea;
use Alchemy\Phrasea\Authentication\Phrasea\FailureHandledNativeAuthentication;

View File

@@ -1,6 +1,6 @@
<?php
namespace Alchemy\Tests\Phrasea\Authentication;
namespace Alchemy\Tests\Phrasea\Authentication\Token;
use Alchemy\Phrasea\Authentication\Token\TokenValidator;

View File

@@ -1,6 +1,8 @@
<?php
namespace Alchemy\Phrasea\Command\Compile;
namespace Alchemy\Tests\Phrasea\Command\Compile;
use Alchemy\Phrasea\Command\Compile\Configuration;
class ConfigurationTest extends \PhraseanetTestCase
{

View File

@@ -1,6 +1,6 @@
<?php
namespace Alchemy\Tests\Phrasea\Command;
namespace Alchemy\Tests\Phrasea\Command\Setup;
use Alchemy\Phrasea\Command\Setup\CheckEnvironment;

View File

@@ -1,6 +1,6 @@
<?php
namespace Alchemy\Tests\Phrasea\Command;
namespace Alchemy\Tests\Phrasea\Command\Setup;
use Alchemy\Phrasea\Command\Setup\Install;

View File

@@ -1,6 +1,6 @@
<?php
namespace Alchemy\Tests\Phrasea\Configuration;
namespace Alchemy\Tests\Phrasea\Core\Configuration;
use Alchemy\Phrasea\Model\Entities\User;
use Doctrine\Common\Collections\ArrayCollection;

View File

@@ -1,6 +1,8 @@
<?php
namespace Alchemy\Phrasea\Model\Converter;
namespace Alchemy\Tests\Phrasea\Model\Converter;
use Alchemy\Phrasea\Model\Converter\BasketConverter;
class BasketConverterTest extends \PhraseanetTestCase
{

View File

@@ -1,8 +1,8 @@
<?php
namespace Alchemy\Phrasea\Model\Converter;
namespace Alchemy\Tests\Phrasea\Model\Converter;
use Alchemy\Phrasea\Model\Entities\Task;
use Alchemy\Phrasea\Model\Converter\TaskConverter;
class TaskConverterTest extends \PhraseanetTestCase
{

View File

@@ -1,6 +1,6 @@
<?php
namespace Alchemy\Tests\Phrasea\Model\Manipulator;
namespace Alchemy\Tests\Phrasea\Model\Manager;
class UserManagerTest extends \PhraseanetTestCase
{

View File

@@ -1,7 +1,8 @@
<?php
namespace Alchemy\Phrasea\Plugin\Management;
namespace Alchemy\Tests\Phrasea\Plugin\Management;
use Alchemy\Phrasea\Plugin\Management\ComposerInstaller;
use Alchemy\Phrasea\Utilities\ComposerSetup;
use Guzzle\Http\Client as Guzzle;
use Symfony\Component\Process\ExecutableFinder;

View File

@@ -1,8 +1,9 @@
<?php
namespace Alchemy\Phrasea\TaskManager;
namespace Alchemy\Tests\Phrasea\TaskManager;
use Alchemy\TaskManager\TaskManager;
use Alchemy\Phrasea\TaskManager\Notifier;
class NotifierTest extends \PhraseanetTestCase
{

View File

@@ -1,6 +1,6 @@
<?php
namespace Alchemy\Tests\Phrasea\Utilities\Compiler;
namespace Alchemy\Tests\Phrasea\Utilities\Less;
use Alchemy\Phrasea\Utilities\Less\Builder;

View File

@@ -1,6 +1,6 @@
<?php
namespace Alchemy\Tests\Phrasea\Utilities\Compiler;
namespace Alchemy\Tests\Phrasea\Utilities\Less;
use Alchemy\Phrasea\Utilities\Less\Compiler;
use Alchemy\BinaryDriver\Exception\ExecutionFailureException;

View File

@@ -1,6 +1,6 @@
<?php
namespace Alchemy\Tests\Phrasea\Vocabulary\ControllerProvider;
namespace Alchemy\Tests\Phrasea\Vocabulary\ControlProvider;
use Alchemy\Phrasea\Vocabulary\ControlProvider\UserProvider;

View File

@@ -1,6 +1,6 @@
<?php
class API_OAuth2_AccountTest extends \PhraseanetTestCase
class api_oauthv2_AccountTest extends \PhraseanetTestCase
{
/**
* @var API_OAuth2_Account

View File

@@ -1,6 +1,6 @@
<?php
class API_OAuth2_ApplicationTest extends \PhraseanetTestCase
class api_oauthv2_ApplicationTest extends \PhraseanetTestCase
{
public function testLoad_from_client_id()
{

View File

@@ -1,6 +1,6 @@
<?php
class API_OAuth2_AuthCodeTest extends \PhraseanetTestCase
class api_oauthv2_AuthCodeTest extends \PhraseanetTestCase
{
/**
* @var API_OAuth2_AuthCode

View File

@@ -1,6 +1,6 @@
<?php
class API_OAuth2_RefreshTokenTest extends \PhraseanetTestCase
class api_oauthv2_RefreshTokenTest extends \PhraseanetTestCase
{
/**
* @var API_OAuth2_RefreshToken

View File

@@ -1,6 +1,6 @@
<?php
class API_OAuth2_TokenTest extends \PhraseanetTestCase
class api_oauthv2_TokenTest extends \PhraseanetTestCase
{
/**
* @var API_OAuth2_Token

View File

@@ -3,7 +3,7 @@
use Alchemy\Phrasea\Core\PhraseaEvents;
use Symfony\Component\EventDispatcher\Event;
class API_V1_TimerTest extends \PhraseanetTestCase
class api_v1_TimerTest extends \PhraseanetTestCase
{
public function testRegister()
{

View File

@@ -3,7 +3,7 @@
use Alchemy\Phrasea\Border\File as BorderFile;
use Symfony\Component\HttpFoundation\Request;
class API_V1_adapterTest extends \PhraseanetAuthenticatedTestCase
class api_v1_adapterTest extends \PhraseanetAuthenticatedTestCase
{
/**
* @var API_V1_adapter

View File

@@ -4,7 +4,7 @@ require_once __DIR__ . '/../../../../vendor/alchemy/oauth2php/lib/OAuth2.php';
use Symfony\Component\HttpFoundation\Request;
class API_V1_resultTest extends \PhraseanetAuthenticatedTestCase
class api_v1_resultTest extends \PhraseanetAuthenticatedTestCase
{
/**
* @var API_V1_result

View File

@@ -1,6 +1,6 @@
<?php
class activityTest extends \PhraseanetAuthenticatedTestCase
class report_activityTest extends \PhraseanetAuthenticatedTestCase
{
protected $ret;
protected $dmin;

View File

@@ -1,6 +1,6 @@
<?php
class addReportTest extends \PhraseanetAuthenticatedTestCase
class report_addTest extends \PhraseanetAuthenticatedTestCase
{
protected $ret;
protected $dmin;

View File

@@ -1,6 +1,6 @@
<?php
class connexionReportTest extends \PhraseanetAuthenticatedTestCase
class report_connexionReportTest extends \PhraseanetAuthenticatedTestCase
{
protected $ret;
protected $dmin;

View File

@@ -1,6 +1,6 @@
<?php
class dashboardTest extends \PhraseanetAuthenticatedTestCase
class report_dashboardTest extends \PhraseanetAuthenticatedTestCase
{
protected $dashboard;

View File

@@ -1,6 +1,6 @@
<?php
class downloadReportTest extends \PhraseanetAuthenticatedTestCase
class report_downloadReportTest extends \PhraseanetAuthenticatedTestCase
{
protected $ret;
protected $dmin;

View File

@@ -1,6 +1,6 @@
<?php
class editTest extends \PhraseanetAuthenticatedTestCase
class report_editTest extends \PhraseanetAuthenticatedTestCase
{
protected $ret;
protected $dmin;

View File

@@ -1,6 +1,6 @@
<?php
class filterTest extends \PhraseanetAuthenticatedTestCase
class report_filterTest extends \PhraseanetAuthenticatedTestCase
{
protected $ret;
protected $dmin;

View File

@@ -1,6 +1,6 @@
<?php
class pushReportTest extends \PhraseanetAuthenticatedTestCase
class report_pushTest extends \PhraseanetAuthenticatedTestCase
{
protected $ret;
protected $dmin;

View File

@@ -1,6 +1,6 @@
<?php
class questionReportTest extends \PhraseanetAuthenticatedTestCase
class report_questionReportTest extends \PhraseanetAuthenticatedTestCase
{
protected $ret;
protected $dmin;

View File

@@ -1,6 +1,6 @@
<?php
class reportTest extends \PhraseanetAuthenticatedTestCase
class report_reportTest extends \PhraseanetAuthenticatedTestCase
{
protected $ret;
protected $dmin;

View File

@@ -1,6 +1,6 @@
<?php
class sentReportTest extends \PhraseanetAuthenticatedTestCase
class report_sentTest extends \PhraseanetAuthenticatedTestCase
{
protected $ret;
protected $dmin;

View File

@@ -1,6 +1,6 @@
<?php
class sqlActionTest extends \PhraseanetAuthenticatedTestCase
class report_sqlActionTest extends \PhraseanetAuthenticatedTestCase
{
protected $action;
protected $mock;

View File

@@ -1,6 +1,6 @@
<?php
class sqlFilterTest extends \PhraseanetAuthenticatedTestCase
class report_sqlFilterTest extends \PhraseanetAuthenticatedTestCase
{
/**
*

View File

@@ -1,6 +1,6 @@
<?php
class sqlTest extends \PhraseanetAuthenticatedTestCase
class report_sqlTest extends \PhraseanetAuthenticatedTestCase
{
public function setUp()