summaryrefslogtreecommitdiff
path: root/tests/unit/Web
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/Web')
-rw-r--r--tests/unit/Web/AllTests.php1
-rw-r--r--tests/unit/Web/TAssetManagerTest.php1
-rw-r--r--tests/unit/Web/TCacheHttpSessionTest.php1
-rw-r--r--tests/unit/Web/THttpCookieCollectionTest.php1
-rw-r--r--tests/unit/Web/THttpCookieTest.php1
-rw-r--r--tests/unit/Web/THttpRequestTest.php1
-rw-r--r--tests/unit/Web/THttpResponseTest.php1
-rw-r--r--tests/unit/Web/THttpSessionTest.php1
-rw-r--r--tests/unit/Web/THttpUtilityTest.php1
-rw-r--r--tests/unit/Web/TUriTest.php1
-rw-r--r--tests/unit/Web/UI/ActiveControls/AllTests.php2
-rw-r--r--tests/unit/Web/UI/ActiveControls/TActiveHiddenFieldTest.php2
-rw-r--r--tests/unit/Web/UI/AllTests.php2
-rw-r--r--tests/unit/Web/UI/TClientScriptManagerTest.php2
-rw-r--r--tests/unit/Web/UI/TControlAdapterTest.php2
-rw-r--r--tests/unit/Web/UI/TControlTest.php2
-rw-r--r--tests/unit/Web/UI/TFormTest.php2
-rw-r--r--tests/unit/Web/UI/THtmlWriterTest.php2
-rw-r--r--tests/unit/Web/UI/TPageStatePersisterTest.php2
-rw-r--r--tests/unit/Web/UI/TPageTest.php2
-rw-r--r--tests/unit/Web/UI/TSessionPageStatePersisterTest.php2
-rw-r--r--tests/unit/Web/UI/TTemplateControlTest.php2
-rw-r--r--tests/unit/Web/UI/TTemplateManagerTest.php2
-rw-r--r--tests/unit/Web/UI/TTemplateTest.php2
-rw-r--r--tests/unit/Web/UI/TThemeManagerTest.php2
-rw-r--r--tests/unit/Web/UI/TThemeTest.php2
-rw-r--r--tests/unit/Web/UI/WebControls/AllTests.php2
-rw-r--r--tests/unit/Web/UI/WebControls/TDropDownListTest.php2
-rw-r--r--tests/unit/Web/UI/WebControls/TLabelTest.php2
-rw-r--r--tests/unit/Web/UI/WebControls/TRequiredFieldValidatorTest.php2
-rw-r--r--tests/unit/Web/UI/WebControls/TXmlTransformTest.php2
31 files changed, 21 insertions, 31 deletions
diff --git a/tests/unit/Web/AllTests.php b/tests/unit/Web/AllTests.php
index 0b5752ba..f9b3b91d 100644
--- a/tests/unit/Web/AllTests.php
+++ b/tests/unit/Web/AllTests.php
@@ -1,5 +1,4 @@
<?php
-require_once dirname(__FILE__).'/../phpunit.php';
if(!defined('PHPUnit_MAIN_METHOD')) {
define('PHPUnit_MAIN_METHOD', 'Web_AllTests::main');
diff --git a/tests/unit/Web/TAssetManagerTest.php b/tests/unit/Web/TAssetManagerTest.php
index f5485822..89349a0d 100644
--- a/tests/unit/Web/TAssetManagerTest.php
+++ b/tests/unit/Web/TAssetManagerTest.php
@@ -1,5 +1,4 @@
<?php
-require_once dirname(__FILE__).'/../phpunit.php';
Prado::using('System.Web.TAssetManager');
diff --git a/tests/unit/Web/TCacheHttpSessionTest.php b/tests/unit/Web/TCacheHttpSessionTest.php
index 77f336fa..15c2a382 100644
--- a/tests/unit/Web/TCacheHttpSessionTest.php
+++ b/tests/unit/Web/TCacheHttpSessionTest.php
@@ -1,5 +1,4 @@
<?php
-require_once dirname(__FILE__).'/../phpunit.php';
Prado::using('System.Web.TCacheHttpSession');
Prado::using('System.Caching.TMemCache');
diff --git a/tests/unit/Web/THttpCookieCollectionTest.php b/tests/unit/Web/THttpCookieCollectionTest.php
index 5af12736..68ea8777 100644
--- a/tests/unit/Web/THttpCookieCollectionTest.php
+++ b/tests/unit/Web/THttpCookieCollectionTest.php
@@ -1,5 +1,4 @@
<?php
-require_once dirname(__FILE__).'/../phpunit.php';
Prado::using('System.Web.THttpRequest');
diff --git a/tests/unit/Web/THttpCookieTest.php b/tests/unit/Web/THttpCookieTest.php
index 0d6ade09..31d8e572 100644
--- a/tests/unit/Web/THttpCookieTest.php
+++ b/tests/unit/Web/THttpCookieTest.php
@@ -1,5 +1,4 @@
<?php
-require_once dirname(__FILE__).'/../phpunit.php';
Prado::using('System.Web.THttpRequest');
diff --git a/tests/unit/Web/THttpRequestTest.php b/tests/unit/Web/THttpRequestTest.php
index a5f17f01..1807bbe2 100644
--- a/tests/unit/Web/THttpRequestTest.php
+++ b/tests/unit/Web/THttpRequestTest.php
@@ -1,5 +1,4 @@
<?php
-require_once dirname(__FILE__).'/../phpunit.php';
Prado::using('System.Web.THttpRequest');
Prado::using('System.Security.TSecurityManager');
diff --git a/tests/unit/Web/THttpResponseTest.php b/tests/unit/Web/THttpResponseTest.php
index ac5d3751..dadbd768 100644
--- a/tests/unit/Web/THttpResponseTest.php
+++ b/tests/unit/Web/THttpResponseTest.php
@@ -1,5 +1,4 @@
<?php
-require_once dirname(__FILE__).'/../phpunit.php';
Prado::using('System.Web.THttpResponse');
diff --git a/tests/unit/Web/THttpSessionTest.php b/tests/unit/Web/THttpSessionTest.php
index 179d2903..7de0f8a5 100644
--- a/tests/unit/Web/THttpSessionTest.php
+++ b/tests/unit/Web/THttpSessionTest.php
@@ -1,5 +1,4 @@
<?php
-require_once dirname(__FILE__).'/../phpunit.php';
Prado::using('System.Web.THttpSession');
diff --git a/tests/unit/Web/THttpUtilityTest.php b/tests/unit/Web/THttpUtilityTest.php
index b7181978..85fcf7f4 100644
--- a/tests/unit/Web/THttpUtilityTest.php
+++ b/tests/unit/Web/THttpUtilityTest.php
@@ -1,5 +1,4 @@
<?php
-require_once dirname(__FILE__).'/../phpunit.php';
Prado::using('System.Web.THttpUtility');
diff --git a/tests/unit/Web/TUriTest.php b/tests/unit/Web/TUriTest.php
index 7fbc8798..a8c65b9e 100644
--- a/tests/unit/Web/TUriTest.php
+++ b/tests/unit/Web/TUriTest.php
@@ -1,5 +1,4 @@
<?php
-require_once dirname(__FILE__).'/../phpunit.php';
Prado::using('System.Web.THttpRequest');
diff --git a/tests/unit/Web/UI/ActiveControls/AllTests.php b/tests/unit/Web/UI/ActiveControls/AllTests.php
index 55c4331d..ef2dfb91 100644
--- a/tests/unit/Web/UI/ActiveControls/AllTests.php
+++ b/tests/unit/Web/UI/ActiveControls/AllTests.php
@@ -1,5 +1,5 @@
<?php
-require_once dirname(__FILE__).'/../../../phpunit.php';
+
if(!defined('PHPUnit_MAIN_METHOD')) {
define('PHPUnit_MAIN_METHOD', 'Web_UI_ActiveControls_AllTests::main');
diff --git a/tests/unit/Web/UI/ActiveControls/TActiveHiddenFieldTest.php b/tests/unit/Web/UI/ActiveControls/TActiveHiddenFieldTest.php
index f5e9d6fe..58821747 100644
--- a/tests/unit/Web/UI/ActiveControls/TActiveHiddenFieldTest.php
+++ b/tests/unit/Web/UI/ActiveControls/TActiveHiddenFieldTest.php
@@ -1,5 +1,5 @@
<?php
-require_once dirname(__FILE__).'/../../../phpunit.php';
+
Prado::using('System.Web.UI.ActiveControls.TActiveHiddenField');
diff --git a/tests/unit/Web/UI/AllTests.php b/tests/unit/Web/UI/AllTests.php
index 3bf389d5..71b088e4 100644
--- a/tests/unit/Web/UI/AllTests.php
+++ b/tests/unit/Web/UI/AllTests.php
@@ -1,5 +1,5 @@
<?php
-require_once dirname(__FILE__).'/../../phpunit.php';
+
if(!defined('PHPUnit_MAIN_METHOD')) {
define('PHPUnit_MAIN_METHOD', 'Web_UI_AllTests::main');
diff --git a/tests/unit/Web/UI/TClientScriptManagerTest.php b/tests/unit/Web/UI/TClientScriptManagerTest.php
index 4c41c69b..ea360f91 100644
--- a/tests/unit/Web/UI/TClientScriptManagerTest.php
+++ b/tests/unit/Web/UI/TClientScriptManagerTest.php
@@ -1,5 +1,5 @@
<?php
-require_once dirname(__FILE__).'/../../phpunit.php';
+
Prado::using('System.Web.UI.TClientScriptManager');
diff --git a/tests/unit/Web/UI/TControlAdapterTest.php b/tests/unit/Web/UI/TControlAdapterTest.php
index 9ae20a49..2a173fd8 100644
--- a/tests/unit/Web/UI/TControlAdapterTest.php
+++ b/tests/unit/Web/UI/TControlAdapterTest.php
@@ -1,5 +1,5 @@
<?php
-require_once dirname(__FILE__).'/../../phpunit.php';
+
Prado::using('System.Web.UI.TControlAdapter');
diff --git a/tests/unit/Web/UI/TControlTest.php b/tests/unit/Web/UI/TControlTest.php
index 9597c23e..670926be 100644
--- a/tests/unit/Web/UI/TControlTest.php
+++ b/tests/unit/Web/UI/TControlTest.php
@@ -1,5 +1,5 @@
<?php
-require_once dirname(__FILE__).'/../../phpunit.php';
+
Prado::using('System.Web.UI.TControl');
diff --git a/tests/unit/Web/UI/TFormTest.php b/tests/unit/Web/UI/TFormTest.php
index e2f312d6..74cbdb59 100644
--- a/tests/unit/Web/UI/TFormTest.php
+++ b/tests/unit/Web/UI/TFormTest.php
@@ -1,5 +1,5 @@
<?php
-require_once dirname(__FILE__).'/../../phpunit.php';
+
Prado::using('System.Web.UI.TForm');
diff --git a/tests/unit/Web/UI/THtmlWriterTest.php b/tests/unit/Web/UI/THtmlWriterTest.php
index ddbdabcf..080e2e26 100644
--- a/tests/unit/Web/UI/THtmlWriterTest.php
+++ b/tests/unit/Web/UI/THtmlWriterTest.php
@@ -1,5 +1,5 @@
<?php
-require_once dirname(__FILE__).'/../../phpunit.php';
+
Prado::using('System.Web.UI.THtmlWriter');
diff --git a/tests/unit/Web/UI/TPageStatePersisterTest.php b/tests/unit/Web/UI/TPageStatePersisterTest.php
index 02a2df2b..2734b142 100644
--- a/tests/unit/Web/UI/TPageStatePersisterTest.php
+++ b/tests/unit/Web/UI/TPageStatePersisterTest.php
@@ -1,5 +1,5 @@
<?php
-require_once dirname(__FILE__).'/../../phpunit.php';
+
Prado::using('System.Web.UI.TPageStatePersister');
diff --git a/tests/unit/Web/UI/TPageTest.php b/tests/unit/Web/UI/TPageTest.php
index 6f7f8268..d6f689e9 100644
--- a/tests/unit/Web/UI/TPageTest.php
+++ b/tests/unit/Web/UI/TPageTest.php
@@ -1,5 +1,5 @@
<?php
-require_once dirname(__FILE__).'/../../phpunit.php';
+
Prado::using('System.Web.UI.TPage');
diff --git a/tests/unit/Web/UI/TSessionPageStatePersisterTest.php b/tests/unit/Web/UI/TSessionPageStatePersisterTest.php
index 1422c4c7..b8758b30 100644
--- a/tests/unit/Web/UI/TSessionPageStatePersisterTest.php
+++ b/tests/unit/Web/UI/TSessionPageStatePersisterTest.php
@@ -1,5 +1,5 @@
<?php
-require_once dirname(__FILE__).'/../../phpunit.php';
+
Prado::using('System.Web.UI.TSessionPageStatePersister');
diff --git a/tests/unit/Web/UI/TTemplateControlTest.php b/tests/unit/Web/UI/TTemplateControlTest.php
index a4468fd6..97ea8c1d 100644
--- a/tests/unit/Web/UI/TTemplateControlTest.php
+++ b/tests/unit/Web/UI/TTemplateControlTest.php
@@ -1,5 +1,5 @@
<?php
-require_once dirname(__FILE__).'/../../phpunit.php';
+
Prado::using('System.Web.UI.TTemplateControl');
diff --git a/tests/unit/Web/UI/TTemplateManagerTest.php b/tests/unit/Web/UI/TTemplateManagerTest.php
index e8479ef9..46c17538 100644
--- a/tests/unit/Web/UI/TTemplateManagerTest.php
+++ b/tests/unit/Web/UI/TTemplateManagerTest.php
@@ -1,5 +1,5 @@
<?php
-require_once dirname(__FILE__).'/../../phpunit.php';
+
Prado::using('System.Web.UI.TTemplateManager');
diff --git a/tests/unit/Web/UI/TTemplateTest.php b/tests/unit/Web/UI/TTemplateTest.php
index bfd4f1f4..2bb6599b 100644
--- a/tests/unit/Web/UI/TTemplateTest.php
+++ b/tests/unit/Web/UI/TTemplateTest.php
@@ -1,5 +1,5 @@
<?php
-require_once dirname(__FILE__).'/../../phpunit.php';
+
Prado::using('System.Web.UI.TTemplateManager');
diff --git a/tests/unit/Web/UI/TThemeManagerTest.php b/tests/unit/Web/UI/TThemeManagerTest.php
index 7db1bd38..1a514d2b 100644
--- a/tests/unit/Web/UI/TThemeManagerTest.php
+++ b/tests/unit/Web/UI/TThemeManagerTest.php
@@ -1,5 +1,5 @@
<?php
-require_once dirname(__FILE__).'/../../phpunit.php';
+
Prado::using('System.Web.UI.TThemeManager');
diff --git a/tests/unit/Web/UI/TThemeTest.php b/tests/unit/Web/UI/TThemeTest.php
index e007cc49..e7fa376d 100644
--- a/tests/unit/Web/UI/TThemeTest.php
+++ b/tests/unit/Web/UI/TThemeTest.php
@@ -1,5 +1,5 @@
<?php
-require_once dirname(__FILE__).'/../../phpunit.php';
+
Prado::using('System.Web.UI.TThemeManager');
diff --git a/tests/unit/Web/UI/WebControls/AllTests.php b/tests/unit/Web/UI/WebControls/AllTests.php
index f9b188c2..7d0b1632 100644
--- a/tests/unit/Web/UI/WebControls/AllTests.php
+++ b/tests/unit/Web/UI/WebControls/AllTests.php
@@ -1,5 +1,5 @@
<?php
-require_once dirname(__FILE__).'/../../../phpunit.php';
+
if(!defined('PHPUnit_MAIN_METHOD')) {
define('PHPUnit_MAIN_METHOD', 'Web_UI_WebControls_AllTests::main');
diff --git a/tests/unit/Web/UI/WebControls/TDropDownListTest.php b/tests/unit/Web/UI/WebControls/TDropDownListTest.php
index 98ff1dd2..503466fe 100644
--- a/tests/unit/Web/UI/WebControls/TDropDownListTest.php
+++ b/tests/unit/Web/UI/WebControls/TDropDownListTest.php
@@ -1,5 +1,5 @@
<?php
-require_once dirname(__FILE__).'/../../../phpunit.php';
+
Prado::using('System.Web.UI.WebControls.TDropDownList');
diff --git a/tests/unit/Web/UI/WebControls/TLabelTest.php b/tests/unit/Web/UI/WebControls/TLabelTest.php
index 214d497c..0e5577d5 100644
--- a/tests/unit/Web/UI/WebControls/TLabelTest.php
+++ b/tests/unit/Web/UI/WebControls/TLabelTest.php
@@ -1,5 +1,5 @@
<?php
-require_once dirname(__FILE__).'/../../../phpunit.php';
+
Prado::using('System.Web.UI.WebControls.TLabel');
Prado::using('System.Web.UI.THtmlWriter');
diff --git a/tests/unit/Web/UI/WebControls/TRequiredFieldValidatorTest.php b/tests/unit/Web/UI/WebControls/TRequiredFieldValidatorTest.php
index e84b3cf3..894c3899 100644
--- a/tests/unit/Web/UI/WebControls/TRequiredFieldValidatorTest.php
+++ b/tests/unit/Web/UI/WebControls/TRequiredFieldValidatorTest.php
@@ -1,5 +1,5 @@
<?php
-require_once dirname(__FILE__).'/../../../phpunit.php';
+
Prado::using('System.Web.UI.WebControls.TRequiredFieldValidator');
diff --git a/tests/unit/Web/UI/WebControls/TXmlTransformTest.php b/tests/unit/Web/UI/WebControls/TXmlTransformTest.php
index 9fc6d769..6c6d9456 100644
--- a/tests/unit/Web/UI/WebControls/TXmlTransformTest.php
+++ b/tests/unit/Web/UI/WebControls/TXmlTransformTest.php
@@ -1,5 +1,5 @@
<?php
-require_once dirname(__FILE__).'/../../../phpunit.php';
+
Prado::using('System.Web.UI.WebControls.TXmlTransform');
Prado::using('System.Web.UI.THtmlWriter');