File tree Expand file tree Collapse file tree 3 files changed +37
-3
lines changed
appengine/flexible/analytics Expand file tree Collapse file tree 3 files changed +37
-3
lines changed Original file line number Diff line number Diff line change 11runtime : php
2- vm : true
2+ env : flex
33
44runtime_config :
5- document_root : web
5+ document_root : web
Original file line number Diff line number Diff line change 1+ <?php
2+ /**
3+ * Copyright 2016 Google Inc.
4+ *
5+ * Licensed under the Apache License, Version 2.0 (the "License");
6+ * you may not use this file except in compliance with the License.
7+ * You may obtain a copy of the License at
8+ *
9+ * http://www.apache.org/licenses/LICENSE-2.0
10+ *
11+ * Unless required by applicable law or agreed to in writing, software
12+ * distributed under the License is distributed on an "AS IS" BASIS,
13+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+ * See the License for the specific language governing permissions and
15+ * limitations under the License.
16+ */
17+ namespace Google \Cloud \Samples \AppEngine \Analytics ;
18+
19+ use Google \Cloud \TestUtils \AppEngineDeploymentTrait ;
20+
21+ class DeployTest extends \PHPUnit_Framework_TestCase
22+ {
23+ use AppEngineDeploymentTrait;
24+
25+ public function testIndex ()
26+ {
27+ // Access the modules app top page.
28+ $ resp = $ this ->client ->get ('/ ' );
29+ $ this ->assertEquals ('200 ' , $ resp ->getStatusCode (),
30+ 'top page status code ' );
31+ $ this ->assertContains ('returned 200 ' , (string ) $ resp ->getBody (),
32+ 'top page content ' );
33+ }
34+ }
Original file line number Diff line number Diff line change 1414 * See the License for the specific language governing permissions and
1515 * limitations under the License.
1616 */
17- namespace Google \Cloud \Test ;
17+ namespace Google \Cloud \Samples \ AppEngine \ Analytics ;
1818
1919use Silex \WebTestCase ;
2020
You can’t perform that action at this time.
0 commit comments