5 files changed +60
-0
lines changed Original file line number Diff line number Diff line change 25
25
(cd $ROOT /phabricator && git pull && git submodule update --init)
26
26
27
27
28
+ # ## RUN TESTS ##################################################################
29
+
30
+ # This is an acceptance test that makes sure all symboles can be loaded to
31
+ # avoid issues like missing methods in descendants of abstract base class.
32
+ (cd $ROOT /phabricator && ../arcanist/bin/arc unit src/infrastructure/__tests__/)
33
+
34
+
28
35
# ## GENERATE DOCUMENTATION #####################################################
29
36
30
37
# This generates documentation if you have diviner/ checked out. You generally
38
45
(cd $ROOT /phabricator && $ROOT /diviner/bin/diviner .)
39
46
fi
40
47
48
+
41
49
# ## CYCLE APACHE AND DAEMONS ###################################################
42
50
43
51
# Stop Apache. Depening on what system you're running, you may need to use
Original file line number Diff line number Diff line change 469
469
'PhabricatorIRCObjectNameHandler ' => 'infrastructure/daemon/irc/handler/objectname ' ,
470
470
'PhabricatorIRCProtocolHandler ' => 'infrastructure/daemon/irc/handler/protocol ' ,
471
471
'PhabricatorImageTransformer ' => 'applications/files/transform ' ,
472
+ 'PhabricatorInfrastructureTestCase ' => 'infrastructure/__tests__ ' ,
472
473
'PhabricatorJavelinLinter ' => 'infrastructure/lint/linter/javelin ' ,
473
474
'PhabricatorLintEngine ' => 'infrastructure/lint/engine ' ,
474
475
'PhabricatorLiskDAO ' => 'applications/base/storage/lisk ' ,
1099
1100
'PhabricatorIRCBot ' => 'PhabricatorDaemon ' ,
1100
1101
'PhabricatorIRCObjectNameHandler ' => 'PhabricatorIRCHandler ' ,
1101
1102
'PhabricatorIRCProtocolHandler ' => 'PhabricatorIRCHandler ' ,
1103
+ 'PhabricatorInfrastructureTestCase ' => 'PhabricatorTestCase ' ,
1102
1104
'PhabricatorJavelinLinter ' => 'ArcanistLinter ' ,
1103
1105
'PhabricatorLintEngine ' => 'PhutilLintEngine ' ,
1104
1106
'PhabricatorLiskDAO ' => 'LiskDAO ' ,
Original file line number Diff line number Diff line change 9
9
phutil_require_module ('phabricator ' , 'aphront/response/redirect ' );
10
10
phutil_require_module ('phabricator ' , 'applications/diffusion/controller/base ' );
11
11
phutil_require_module ('phabricator ' , 'applications/diffusion/query/symbol ' );
12
+ phutil_require_module ('phabricator ' , 'applications/diffusion/request/base ' );
12
13
phutil_require_module ('phabricator ' , 'applications/repository/storage/arcanistproject ' );
13
14
phutil_require_module ('phabricator ' , 'applications/repository/storage/repository ' );
14
15
phutil_require_module ('phabricator ' , 'storage/queryfx ' );
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ /*
4
+ * Copyright 2011 Facebook, Inc.
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+
19
+ final class PhabricatorInfrastructureTestCase
20
+ extends PhabricatorTestCase {
21
+
22
+ /**
23
+ * This is more of an acceptance test case instead of a unittest. It verifies
24
+ * that all symbols can be loaded correctly. It can catch problem like missing
25
+ * methods in descendants of abstract base classes.
26
+ */
27
+ public function testEverythingImplemented () {
28
+ // Note that we don't have a try catch block around the following because,
29
+ // when it fails, it will cause a HPHP or PHP fatal which won't be caught
30
+ // by try catch.
31
+ $ every_class = id (new PhutilSymbolLoader ())->selectAndLoadSymbols ();
32
+ }
33
+ }
34
+
Original file line number Diff line number Diff line change
1
+ <?php
2
+ /**
3
+ * This file is automatically generated. Lint this module to rebuild it.
4
+ * @generated
5
+ */
6
+
7
+
8
+
9
+ phutil_require_module ('phabricator ' , 'infrastructure/testing/testcase ' );
10
+
11
+ phutil_require_module ('phutil ' , 'symbols ' );
12
+ phutil_require_module ('phutil ' , 'utils ' );
13
+
14
+
15
+ phutil_require_source ('PhabricatorInfrastructureTestCase.php ' );
0 commit comments