mirror of https://github.com/grpc/grpc.git
Merge pull request #3900 from stanley-cheung/php_unit_test_code_coverage
PHP: add more unit test for code coverage analysispull/3871/head
commit
509088bd8b
9 changed files with 142 additions and 10 deletions
@ -0,0 +1,22 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<phpunit bootstrap="tests/bootstrap.php" colors="true"> |
||||||
|
<testsuites> |
||||||
|
<testsuite name="grpc-unit-tests"> |
||||||
|
<directory suffix="Test.php">tests/unit_tests</directory> |
||||||
|
</testsuite> |
||||||
|
<testsuite name="grpc-genereated-code-tests"> |
||||||
|
<file>tests/generated_code/GeneratedCodeTest.php</file> |
||||||
|
<file>tests/generated_code/GeneratedCodeWithCallbackTest.php</file> |
||||||
|
</testsuite> |
||||||
|
</testsuites> |
||||||
|
<filter> |
||||||
|
<whitelist> |
||||||
|
<directory suffix=".php">lib/Grpc</directory> |
||||||
|
</whitelist> |
||||||
|
</filter> |
||||||
|
<logging> |
||||||
|
<log type="coverage-html" target="./log/codeCoverage" charset="UTF-8" |
||||||
|
yui="true" highlight="true" |
||||||
|
lowUpperBound="75" highLowerBound="95"/> |
||||||
|
</logging> |
||||||
|
</phpunit> |
@ -0,0 +1,21 @@ |
|||||||
|
<?php |
||||||
|
/* |
||||||
|
* Copyright 2014 Google Inc. |
||||||
|
* |
||||||
|
* 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. |
||||||
|
*/ |
||||||
|
|
||||||
|
error_reporting(E_ALL | E_STRICT); |
||||||
|
require dirname(__DIR__) . '/vendor/autoload.php'; |
||||||
|
date_default_timezone_set('UTC'); |
Loading…
Reference in new issue