/
AllTests.php
119 lines (105 loc) · 4.6 KB
/
AllTests.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<?php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
/**
* PHPUnit AllTests suite for the Services_Amazon_SQS package.
*
* These tests require the PHPUnit 3.6 or greater package to be installed.
* PHPUnit is installable using PEAR. See the
* {@link http://www.phpunit.de/manual/3.6/en/installation.html manual}
* for detailed installation instructions.
*
* This test suite follows the PEAR AllTests conventions as documented at
* {@link http://cvs.php.net/viewvc.cgi/pear/AllTests.php?view=markup}.
*
* LICENSE:
*
* Copyright 2008-2011 silverorange
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* @category Services
* @package Services_Amazon_SQS
* @author Michael Gauthier <mike@silverorange.com>
* @copyright 2008-2011 silverorange
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
* @version CVS: $Id$
* @link http://pear.php.net/package/Services_Amazon_SQS
* @link http://aws.amazon.com/sqs/
* @link http://s3.amazonaws.com/awsdocs/SQS/20080101/sqs-dg-20080101.pdf
*/
if (!defined('PHPUnit_MAIN_METHOD')) {
define('PHPUnit_MAIN_METHOD', 'Services_Amazon_SQS_AllTests::main');
}
require_once 'PHPUnit/Autoload.php';
require_once dirname(__FILE__) . '/AddPermissionTestCase.php';
require_once dirname(__FILE__) . '/ChangeMessageVisibilityTestCase.php';
require_once dirname(__FILE__) . '/ConstructTestCase.php';
require_once dirname(__FILE__) . '/CreateQueueTestCase.php';
require_once dirname(__FILE__) . '/DeleteMessageTestCase.php';
require_once dirname(__FILE__) . '/DeleteQueueTestCase.php';
require_once dirname(__FILE__) . '/ExceptionsTestCase.php';
require_once dirname(__FILE__) . '/GeneralTestCase.php';
require_once dirname(__FILE__) . '/GetAttributesTestCase.php';
require_once dirname(__FILE__) . '/ListQueuesTestCase.php';
require_once dirname(__FILE__) . '/ReceiveMessageTestCase.php';
require_once dirname(__FILE__) . '/RemovePermissionTestCase.php';
require_once dirname(__FILE__) . '/ResponseTestCase.php';
require_once dirname(__FILE__) . '/SendMessageTestCase.php';
require_once dirname(__FILE__) . '/SetAttributesTestCase.php';
/**
* AllTests suite testing Services_Amazon_SQS
*
* @category Services
* @package Services_Amazon_SQS
* @author Michael Gauthier <mike@silverorange.com>
* @copyright 2008-2011 silverorange
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
* @link http://pear.php.net/package/Services_Amazon_SQS
* @link http://aws.amazon.com/sqs/
* @link http://s3.amazonaws.com/awsdocs/SQS/20080101/sqs-dg-20080101.pdf
*/
class Services_Amazon_SQS_AllTests
{
// {{{ main()
public static function main()
{
PHPUnit_TextUI_TestRunner::run(self::suite());
}
// }}}
// {{{ suite()
public static function suite()
{
$suite = new PHPUnit_Framework_TestSuite('Services_Amazon_SQS Tests');
$suite->addTestSuite('Services_Amazon_SQS_AddPermissionTestCase');
$suite->addTestSuite('Services_Amazon_SQS_ChangeMessageVisibilityTestCase');
$suite->addTestSuite('Services_Amazon_SQS_ConstructTestCase');
$suite->addTestSuite('Services_Amazon_SQS_CreateQueueTestCase');
$suite->addTestSuite('Services_Amazon_SQS_DeleteMessageTestCase');
$suite->addTestSuite('Services_Amazon_SQS_DeleteQueueTestCase');
$suite->addTestSuite('Services_Amazon_SQS_ExceptionsTestCase');
$suite->addTestSuite('Services_Amazon_SQS_GeneralTestCase');
$suite->addTestSuite('Services_Amazon_SQS_GetAttributesTestCase');
$suite->addTestSuite('Services_Amazon_SQS_ListQueuesTestCase');
$suite->addTestSuite('Services_Amazon_SQS_ReceiveMessageTestCase');
$suite->addTestSuite('Services_Amazon_SQS_RemovePermissionTestCase');
$suite->addTestSuite('Services_Amazon_SQS_ResponseTestCase');
$suite->addTestSuite('Services_Amazon_SQS_SendMessageTestCase');
$suite->addTestSuite('Services_Amazon_SQS_SetAttributesTestCase');
return $suite;
}
// }}}
}
if (PHPUnit_MAIN_METHOD == 'Services_Amazon_SQS_AllTests::main') {
Services_Amazon_SQS_AllTests::main();
}
?>