summaryrefslogtreecommitdiff
path: root/tests/unit/Web/UI
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/Web/UI')
-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
21 files changed, 21 insertions, 21 deletions
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');