Skip to content

Commit 9fce584

Browse files
chore: phpunit migrate configuration (GoogleCloudPlatform#1875)
1 parent 02c1303 commit 9fce584

File tree

12 files changed

+231
-227
lines changed

12 files changed

+231
-227
lines changed

bigquery/api/phpunit.xml.dist

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,22 @@
1414
See the License for the specific language governing permissions and
1515
limitations under the License.
1616
-->
17-
<phpunit bootstrap="../../testing/bootstrap.php">
18-
<testsuites>
19-
<testsuite name="PHP bigquery test">
20-
<directory>test</directory>
21-
</testsuite>
22-
</testsuites>
23-
<logging>
24-
<log type="coverage-clover" target="build/logs/clover.xml"/>
25-
</logging>
26-
<filter>
27-
<whitelist>
28-
<directory suffix=".php">./src</directory>
29-
<exclude>
30-
<directory>./vendor</directory>
31-
</exclude>
32-
</whitelist>
33-
</filter>
17+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="../../testing/bootstrap.php" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
18+
<coverage>
19+
<include>
20+
<directory suffix=".php">./src</directory>
21+
</include>
22+
<exclude>
23+
<directory>./vendor</directory>
24+
</exclude>
25+
<report>
26+
<clover outputFile="build/logs/clover.xml"/>
27+
</report>
28+
</coverage>
29+
<testsuites>
30+
<testsuite name="PHP bigquery test">
31+
<directory>test</directory>
32+
</testsuite>
33+
</testsuites>
34+
<logging/>
3435
</phpunit>

bigquery/stackoverflow/phpunit.xml.dist

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,23 @@
1414
See the License for the specific language governing permissions and
1515
limitations under the License.
1616
-->
17-
<phpunit bootstrap="../../testing/bootstrap.php">
18-
<testsuites>
19-
<testsuite name="PHP BigQuery Shakespeare test">
20-
<directory>test</directory>
21-
</testsuite>
22-
</testsuites>
23-
<logging>
24-
<log type="coverage-clover" target="build/logs/clover.xml"/>
25-
</logging>
26-
<filter>
27-
<whitelist>
28-
<file>shakespeare.php</file>
29-
<directory suffix=".php">./src</directory>
30-
<exclude>
31-
<directory>./vendor</directory>
32-
</exclude>
33-
</whitelist>
34-
</filter>
17+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="../../testing/bootstrap.php" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
18+
<coverage>
19+
<include>
20+
<file>shakespeare.php</file>
21+
<directory suffix=".php">./src</directory>
22+
</include>
23+
<exclude>
24+
<directory>./vendor</directory>
25+
</exclude>
26+
<report>
27+
<clover outputFile="build/logs/clover.xml"/>
28+
</report>
29+
</coverage>
30+
<testsuites>
31+
<testsuite name="PHP BigQuery Shakespeare test">
32+
<directory>test</directory>
33+
</testsuite>
34+
</testsuites>
35+
<logging/>
3536
</phpunit>

bigtable/phpunit.xml.dist

Lines changed: 18 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -14,29 +14,22 @@
1414
See the License for the specific language governing permissions and
1515
limitations under the License.
1616
-->
17-
<phpunit backupGlobals="false"
18-
backupStaticAttributes="false"
19-
bootstrap="../testing/bootstrap.php"
20-
colors="true"
21-
processIsolation="false"
22-
stopOnFailure="false"
23-
timeoutForSmallTests="10"
24-
timeoutForMediumTests="30"
25-
timeoutForLargeTests="120">
26-
<testsuites>
27-
<testsuite name="PHP Bigtable tests">
28-
<directory>test</directory>
29-
</testsuite>
30-
</testsuites>
31-
<logging>
32-
<log type="coverage-clover" target="./build/logs/clover.xml"/>
33-
</logging>
34-
<filter>
35-
<whitelist addUncoveredFilesFromWhitelist="true">
36-
<directory>./src</directory>
37-
<exclude>
38-
<directory>./vendor</directory>
39-
</exclude>
40-
</whitelist>
41-
</filter>
17+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" backupStaticAttributes="false" bootstrap="../testing/bootstrap.php" colors="true" processIsolation="false" stopOnFailure="false" timeoutForSmallTests="10" timeoutForMediumTests="30" timeoutForLargeTests="120" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
18+
<coverage includeUncoveredFiles="true">
19+
<include>
20+
<directory>./src</directory>
21+
</include>
22+
<exclude>
23+
<directory>./vendor</directory>
24+
</exclude>
25+
<report>
26+
<clover outputFile="./build/logs/clover.xml"/>
27+
</report>
28+
</coverage>
29+
<testsuites>
30+
<testsuite name="PHP Bigtable tests">
31+
<directory>test</directory>
32+
</testsuite>
33+
</testsuites>
34+
<logging/>
4235
</phpunit>

datastore/api/phpunit.xml.dist

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,22 @@
1414
See the License for the specific language governing permissions and
1515
limitations under the License.
1616
-->
17-
<phpunit bootstrap="../../testing/bootstrap.php">
18-
<testsuites>
19-
<testsuite name="Datastore Cloud library Tests">
20-
<directory>test</directory>
21-
</testsuite>
22-
</testsuites>
23-
<logging>
24-
<log type="coverage-clover" target="build/logs/clover.xml"/>
25-
</logging>
26-
<filter>
27-
<whitelist>
28-
<directory suffix=".php">./src</directory>
29-
<exclude>
30-
<directory>./vendor</directory>
31-
</exclude>
32-
</whitelist>
33-
</filter>
17+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="../../testing/bootstrap.php" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
18+
<coverage>
19+
<include>
20+
<directory suffix=".php">./src</directory>
21+
</include>
22+
<exclude>
23+
<directory>./vendor</directory>
24+
</exclude>
25+
<report>
26+
<clover outputFile="build/logs/clover.xml"/>
27+
</report>
28+
</coverage>
29+
<testsuites>
30+
<testsuite name="Datastore Cloud library Tests">
31+
<directory>test</directory>
32+
</testsuite>
33+
</testsuites>
34+
<logging/>
3435
</phpunit>

datastore/quickstart/phpunit.xml.dist

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,22 @@
1414
See the License for the specific language governing permissions and
1515
limitations under the License.
1616
-->
17-
<phpunit bootstrap="../../testing/bootstrap.php">
18-
<testsuites>
19-
<testsuite name="Google Datastore Quickstart Tests">
20-
<directory>test</directory>
21-
</testsuite>
22-
</testsuites>
23-
<logging>
24-
<log type="coverage-clover" target="build/logs/clover.xml"/>
25-
</logging>
26-
<filter>
27-
<whitelist>
28-
<file>quickstart.php</file>
29-
<exclude>
30-
<directory>./vendor</directory>
31-
</exclude>
32-
</whitelist>
33-
</filter>
17+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="../../testing/bootstrap.php" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
18+
<coverage>
19+
<include>
20+
<file>quickstart.php</file>
21+
</include>
22+
<exclude>
23+
<directory>./vendor</directory>
24+
</exclude>
25+
<report>
26+
<clover outputFile="build/logs/clover.xml"/>
27+
</report>
28+
</coverage>
29+
<testsuites>
30+
<testsuite name="Google Datastore Quickstart Tests">
31+
<directory>test</directory>
32+
</testsuite>
33+
</testsuites>
34+
<logging/>
3435
</phpunit>

datastore/tutorial/phpunit.xml.dist

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,22 @@
1414
See the License for the specific language governing permissions and
1515
limitations under the License.
1616
-->
17-
<phpunit bootstrap="../../testing/bootstrap.php">
18-
<testsuites>
19-
<testsuite name="Cloud Datastore tutorial application tests">
20-
<directory>test</directory>
21-
</testsuite>
22-
</testsuites>
23-
<logging>
24-
<log type="coverage-clover" target="build/logs/clover.xml"/>
25-
</logging>
26-
<filter>
27-
<whitelist>
28-
<directory suffix=".php">./src</directory>
29-
<exclude>
30-
<directory>./vendor</directory>
31-
</exclude>
32-
</whitelist>
33-
</filter>
17+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="../../testing/bootstrap.php" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
18+
<coverage>
19+
<include>
20+
<directory suffix=".php">./src</directory>
21+
</include>
22+
<exclude>
23+
<directory>./vendor</directory>
24+
</exclude>
25+
<report>
26+
<clover outputFile="build/logs/clover.xml"/>
27+
</report>
28+
</coverage>
29+
<testsuites>
30+
<testsuite name="Cloud Datastore tutorial application tests">
31+
<directory>test</directory>
32+
</testsuite>
33+
</testsuites>
34+
<logging/>
3435
</phpunit>

firestore/phpunit.xml.dist

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,25 @@
1414
See the License for the specific language governing permissions and
1515
limitations under the License.
1616
-->
17-
<phpunit bootstrap="../testing/bootstrap.php">
18-
<testsuites>
19-
<testsuite name="PHP firestore test">
20-
<directory>test</directory>
21-
</testsuite>
22-
</testsuites>
23-
<logging>
24-
<log type="coverage-clover" target="build/logs/clover.xml"/>
25-
</logging>
26-
<filter>
27-
<whitelist>
28-
<directory suffix=".php">./src</directory>
29-
<exclude>
30-
<directory>./vendor</directory>
31-
</exclude>
32-
</whitelist>
33-
</filter>
34-
<php>
35-
<env name="PHPUNIT_TESTS" value="1"/>
36-
</php>
17+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="../testing/bootstrap.php" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
18+
<coverage>
19+
<include>
20+
<directory suffix=".php">./src</directory>
21+
</include>
22+
<exclude>
23+
<directory>./vendor</directory>
24+
</exclude>
25+
<report>
26+
<clover outputFile="build/logs/clover.xml"/>
27+
</report>
28+
</coverage>
29+
<testsuites>
30+
<testsuite name="PHP firestore test">
31+
<directory>test</directory>
32+
</testsuite>
33+
</testsuites>
34+
<logging/>
35+
<php>
36+
<env name="PHPUNIT_TESTS" value="1"/>
37+
</php>
3738
</phpunit>

pubsub/api/phpunit.xml.dist

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,25 @@
1414
See the License for the specific language governing permissions and
1515
limitations under the License.
1616
-->
17-
<phpunit bootstrap="../../testing/bootstrap.php">
18-
<testsuites>
19-
<testsuite name="PHP pubsub test">
20-
<directory>test</directory>
21-
</testsuite>
22-
</testsuites>
23-
<logging>
24-
<log type="coverage-clover" target="build/logs/clover.xml"/>
25-
</logging>
26-
<filter>
27-
<whitelist>
28-
<directory suffix=".php">./src</directory>
29-
<exclude>
30-
<directory>./vendor</directory>
31-
</exclude>
32-
</whitelist>
33-
</filter>
34-
<php>
35-
<env name="PHPUNIT_TESTS" value="1"/>
36-
</php>
17+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="../../testing/bootstrap.php" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
18+
<coverage>
19+
<include>
20+
<directory suffix=".php">./src</directory>
21+
</include>
22+
<exclude>
23+
<directory>./vendor</directory>
24+
</exclude>
25+
<report>
26+
<clover outputFile="build/logs/clover.xml"/>
27+
</report>
28+
</coverage>
29+
<testsuites>
30+
<testsuite name="PHP pubsub test">
31+
<directory>test</directory>
32+
</testsuite>
33+
</testsuites>
34+
<logging/>
35+
<php>
36+
<env name="PHPUNIT_TESTS" value="1"/>
37+
</php>
3738
</phpunit>

pubsub/app/phpunit.xml.dist

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,23 @@
1414
See the License for the specific language governing permissions and
1515
limitations under the License.
1616
-->
17-
<phpunit bootstrap="../../testing/bootstrap.php">
18-
<testsuites>
19-
<testsuite name="PHP pubsub test">
20-
<directory>test</directory>
21-
<exclude>test/DeployAppEngineFlexTest.php</exclude>
22-
</testsuite>
23-
</testsuites>
24-
<logging>
25-
<log type="coverage-clover" target="build/logs/clover.xml"/>
26-
</logging>
27-
<filter>
28-
<whitelist>
29-
<file>app.php</file>
30-
<exclude>
31-
<directory>./vendor</directory>
32-
</exclude>
33-
</whitelist>
34-
</filter>
17+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="../../testing/bootstrap.php" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
18+
<coverage>
19+
<include>
20+
<file>app.php</file>
21+
</include>
22+
<exclude>
23+
<directory>./vendor</directory>
24+
</exclude>
25+
<report>
26+
<clover outputFile="build/logs/clover.xml"/>
27+
</report>
28+
</coverage>
29+
<testsuites>
30+
<testsuite name="PHP pubsub test">
31+
<directory>test</directory>
32+
<exclude>test/DeployAppEngineFlexTest.php</exclude>
33+
</testsuite>
34+
</testsuites>
35+
<logging/>
3536
</phpunit>

0 commit comments

Comments
 (0)