Skip to content

Commit

Permalink
[#14213] - Correcting more references
Browse files Browse the repository at this point in the history
  • Loading branch information
niden committed Jul 4, 2019
1 parent 98bca94 commit 72acf13
Show file tree
Hide file tree
Showing 28 changed files with 38 additions and 37 deletions.
1 change: 1 addition & 0 deletions tests/integration/Db/Adapter/Pdo/Sqlite/QueryCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

namespace Phalcon\Test\Integration\Db\Adapter\Pdo\Sqlite;

use Phalcon\Db\Enum;
use IntegrationTester;
use Phalcon\Test\Fixtures\Traits\DiTrait;

Expand Down
1 change: 1 addition & 0 deletions tests/integration/Forms/Form/GetMessagesCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
use Phalcon\Messages\Messages;
use Phalcon\Tag;
use Phalcon\Test\Fixtures\Traits\DiTrait;
use Phalcon\Validation\Validation;
use Phalcon\Validation\Validator\PresenceOf;
use Phalcon\Validation\Validator\Regex;

Expand Down
2 changes: 1 addition & 1 deletion tests/integration/Forms/Form/IsValidCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
use Phalcon\Tag;
use Phalcon\Test\Fixtures\Forms\ValidationForm;
use Phalcon\Test\Fixtures\Traits\DiTrait;
use Phalcon\Validation;
use Phalcon\Validation\Validation;
use Phalcon\Validation\Validator\PresenceOf;
use Phalcon\Validation\Validator\Regex;

Expand Down
1 change: 1 addition & 0 deletions tests/integration/Forms/Form/SetValidationCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
use Phalcon\Messages\Messages;
use Phalcon\Tag;
use Phalcon\Test\Fixtures\Traits\DiTrait;
use Phalcon\Validation\Validation;
use Phalcon\Validation\Validator\Regex;

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/Mvc/Dispatcher/DispatchCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@

namespace Phalcon\Test\Integration\Mvc\Dispatcher;

use Exception;
use IntegrationTester;
use Phalcon\Dispatcher\Exception;
use Phalcon\Dispatcher\DispatcherInterface;
use Phalcon\Test\Integration\Mvc\Dispatcher\Helper\BaseDispatcher;
use Phalcon\Test\Integration\Mvc\Dispatcher\Helper\DispatcherTestDefaultController;
Expand Down
3 changes: 1 addition & 2 deletions tests/integration/Mvc/Dispatcher/GetHandlerSuffixCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
namespace Phalcon\Test\Integration\Mvc\Dispatcher;

use IntegrationTester;
use Phalcon\Dispatcher;
use Phalcon\Mvc\Dispatcher\Exception;
use Phalcon\Test\Integration\Mvc\Dispatcher\Helper\BaseDispatcher;

Expand All @@ -38,7 +37,7 @@ public function mvcDispatcherGetHandlerSuffix(IntegrationTester $I)
$I->expectThrowable(
new Exception(
'Phalcon\Test\Integration\Mvc\Dispatcher\Helper\IndexBleh handler class cannot be loaded',
Dispatcher::EXCEPTION_HANDLER_NOT_FOUND
Exception::EXCEPTION_HANDLER_NOT_FOUND
),
function () use ($dispatcher) {
$dispatcher->dispatch();
Expand Down
7 changes: 3 additions & 4 deletions tests/integration/Mvc/Dispatcher/Refactor-DispatcherCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
namespace Phalcon\Test\Integration\Mvc\Dispatcher;

use DispatcherTestDefaultNoNamespaceController;
use Exception;
use IntegrationTester;
use Phalcon\Dispatcher;
use Phalcon\Dispatcher\Exception;
use Phalcon\Test\Integration\Mvc\Dispatcher\Helper\BaseDispatcher;
use Phalcon\Test\Integration\Mvc\Dispatcher\Helper\DispatcherTestDefaultController;
use Phalcon\Test\Integration\Mvc\Dispatcher\Helper\DispatcherTestDefaultSimpleController;
Expand Down Expand Up @@ -508,7 +507,7 @@ function ($event, $dispatcher) {
$I->expectThrowable(
new Exception(
'Dispatcher has detected a cyclic routing causing stability problems',
Dispatcher::EXCEPTION_CYCLIC_ROUTING
Exception::EXCEPTION_CYCLIC_ROUTING
),
function () use ($dispatcher) {
$dispatcher->dispatch();
Expand Down Expand Up @@ -540,7 +539,7 @@ function () {
$I->expectThrowable(
new Exception(
'Invalid handler returned from the services container',
Dispatcher::EXCEPTION_INVALID_HANDLER
Exception::EXCEPTION_INVALID_HANDLER
),
function () use ($dispatcher) {
$dispatcher->dispatch();
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/Validation/AddCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
namespace Phalcon\Test\Integration\Validation;

use IntegrationTester;
use Phalcon\Validation;
use Phalcon\Validation\Validation;
use Phalcon\Validation\Validator\Alpha;
use Phalcon\Validation\Validator\Email;
use Phalcon\Validation\Validator\PresenceOf;
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/Validation/AppendMessageCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
class AppendMessageCest
{
/**
* Tests Phalcon\Validation :: appendMessage()
* Tests Phalcon\Validation\Validation :: appendMessage()
*
* @author Phalcon Team <[email protected]>
* @since 2019-04-16
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/Validation/BindCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
namespace Phalcon\Test\Integration\Validation;

use IntegrationTester;
use Phalcon\Validation;
use Phalcon\Validation\Validation;
use stdClass;

class BindCest
{
/**
* Tests Phalcon\Validation :: bind()
* Tests Phalcon\Validation\Validation :: bind()
*
* @author Sid Roberts <https://github.com/SidRoberts>
* @since 2019-04-17
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/Validation/ConstructCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
namespace Phalcon\Test\Integration\Validation;

use IntegrationTester;
use Phalcon\Validation;
use Phalcon\Validation\Validation;
use Phalcon\Validation\Validator\Date;
use Phalcon\Validation\Validator\Email;

class ConstructCest
{
/**
* Tests Phalcon\Validation :: __construct()
* Tests Phalcon\Validation\Validation :: __construct()
*
* @author Sid Roberts <https://github.com/SidRoberts>
* @since 2019-05-25
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/Validation/GetEntityCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
namespace Phalcon\Test\Integration\Validation;

use IntegrationTester;
use Phalcon\Validation;
use Phalcon\Validation\Validation;
use stdClass;

/**
Expand All @@ -22,7 +22,7 @@
class GetEntityCest
{
/**
* Tests Phalcon\Validation :: getEntity()
* Tests Phalcon\Validation\Validation :: getEntity()
*
* @author Sid Roberts <https://github.com/SidRoberts>
* @since 2019-04-17
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/Validation/GetFiltersCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
namespace Phalcon\Test\Integration\Validation;

use IntegrationTester;
use Phalcon\Validation;
use Phalcon\Validation\Validation;
use Phalcon\Validation\Validator\PresenceOf;

class GetFiltersCest
{
/**
* Tests Phalcon\Validation :: getFilters()
* Tests Phalcon\Validation\Validation :: getFilters()
*
* @author Sid Roberts <https://github.com/SidRoberts>
* @since 2019-05-27
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/Validation/GetValidatorsCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
class GetValidatorsCest
{
/**
* Tests Phalcon\Validation :: getValidators()
* Tests Phalcon\Validation\Validation :: getValidators()
*
* @author Phalcon Team <[email protected]>
* @since 2019-04-16
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/Validation/GetValueCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
class GetValueCest
{
/**
* Tests Phalcon\Validation :: getValue()
* Tests Phalcon\Validation\Validation :: getValue()
*
* @author Phalcon Team <[email protected]>
* @since 2019-04-16
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/Validation/RuleCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
namespace Phalcon\Test\Integration\Validation;

use IntegrationTester;
use Phalcon\Validation;
use Phalcon\Validation\Validation;
use Phalcon\Validation\Validator\Alpha;
use Phalcon\Validation\Validator\Email;
use Phalcon\Validation\Validator\PresenceOf;

class RuleCest
{
/**
* Tests Phalcon\Validation :: rule()
* Tests Phalcon\Validation\Validation :: rule()
*
* @author Sid Roberts <https://github.com/SidRoberts>
* @since 2019-05-27
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/Validation/SetDefaultMessagesCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
class SetDefaultMessagesCest
{
/**
* Tests Phalcon\Validation :: setDefaultMessages()
* Tests Phalcon\Validation\Validation :: setDefaultMessages()
*
* @author Phalcon Team <[email protected]>
* @since 2019-04-16
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/Validation/SetEntityCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
namespace Phalcon\Test\Integration\Validation;

use IntegrationTester;
use Phalcon\Validation;
use Phalcon\Validation\Validation;
use stdClass;

class SetEntityCest
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/Validation/SetEventsManagerCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
class SetEventsManagerCest
{
/**
* Tests Phalcon\Validation :: setEventsManager()
* Tests Phalcon\Validation\Validation :: setEventsManager()
*
* @author Phalcon Team <[email protected]>
* @since 2019-04-16
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/Validation/SetFiltersCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
namespace Phalcon\Test\Integration\Validation;

use IntegrationTester;
use Phalcon\Validation;
use Phalcon\Validation\Validation;
use Phalcon\Validation\Validator\PresenceOf;

class SetFiltersCest
{
/**
* Tests Phalcon\Validation :: setFilters()
* Tests Phalcon\Validation\Validation :: setFilters()
*
* @author Sid Roberts <https://github.com/SidRoberts>
* @since 2019-05-27
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/Validation/SetValidatorsCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
namespace Phalcon\Test\Integration\Validation;

use IntegrationTester;
use Phalcon\Validation;
use Phalcon\Validation\Validation;
use Phalcon\Validation\Validator\Date;
use Phalcon\Validation\Validator\Email;

class SetValidatorsCest
{
/**
* Tests Phalcon\Validation :: setValidators()
* Tests Phalcon\Validation\Validation :: setValidators()
*
* @author Sid Roberts <https://github.com/SidRoberts>
* @since 2019-05-25
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/Validation/UnderscoreGetCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
class UnderscoreGetCest
{
/**
* Tests Phalcon\Validation :: __get()
* Tests Phalcon\Validation\Validation :: __get()
*
* @author Phalcon Team <[email protected]>
* @since 2019-04-16
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/Validation/ValidateCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
class ValidateCest
{
/**
* Tests Phalcon\Validation :: validate()
* Tests Phalcon\Validation\Validation :: validate()
*
* @author Phalcon Team <[email protected]>
* @since 2019-04-16
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/Validation/ValidationCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Phalcon\Messages\Messages;
use Phalcon\Test\Fixtures\Traits\DiTrait;
use Phalcon\Test\Models\Users;
use Phalcon\Validation;
use Phalcon\Validation\Validation;
use Phalcon\Validation\Validator\Alpha;
use Phalcon\Validation\Validator\Email;
use Phalcon\Validation\Validator\PresenceOf;
Expand All @@ -18,7 +18,7 @@

/**
* Phalcon\Test\Integration\ValidationCest
* Tests the \Phalcon\Validation component
* Tests the \Phalcon\Validation\Validation component
*
* @copyright (c) 2011-2017 Phalcon Team
* @link http://www.phalconphp.com
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
namespace Phalcon\Test\Integration\Validation\Validator\Alnum;

use IntegrationTester;
use Phalcon\Validation;
use Phalcon\Validation\Validation;
use Phalcon\Validation\Validator\Alnum;

class ValidateCest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
use IntegrationTester;
use Phalcon\Messages\Message;
use Phalcon\Messages\Messages;
use Phalcon\Validation;
use Phalcon\Validation\Validation;
use Phalcon\Validation\Validator\Alpha;

class ValidateCest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
use IntegrationTester;
use Phalcon\Messages\Message;
use Phalcon\Messages\Messages;
use Phalcon\Validation;
use Phalcon\Validation\Validation;
use Phalcon\Validation\Validator\CreditCard;

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/Validation/Validator/UniquenessCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
use Phalcon\Test\Fixtures\Traits\DiTrait;
use Phalcon\Test\Models\Robots;
use Phalcon\Test\Models\Some\Robotters;
use Phalcon\Validation;
use Phalcon\Validation\Validation;
use Phalcon\Validation\Validator\Uniqueness;

class UniquenessCest
Expand Down

0 comments on commit 72acf13

Please sign in to comment.