Skip to content

Commit 035aec7

Browse files
committed
Update to PHP Unit 9
1 parent 399e499 commit 035aec7

File tree

6 files changed

+23
-33
lines changed

6 files changed

+23
-33
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
- 3.0.0
2+
- No changes
3+
14
- 3.0.0-beta
25
- Add support for PHP 8.0 in the extension
36
- Drop extension support for PHP 7.2 and 7.3

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"phpstan/extension-installer": "^1.0",
3535
"phpstan/phpstan": "0.12.*",
3636
"phpstan/phpstan-phpunit": "0.12.*",
37-
"phpunit/phpunit": "8.5.*"
37+
"phpunit/phpunit": "^9.0"
3838
},
3939
"autoload": {
4040
"psr-4": {

config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"extension-name": "tensor",
55
"description": "A library and extension that provides objects for scientific computing in PHP.",
66
"author": "Andrew DalPino",
7-
"version": "3.0.0-beta",
7+
"version": "3.0.0",
88
"verbose": true,
99
"extra-cflags": "-O3 -ffast-math",
1010
"extra-libs": "-lopenblas -llapacke -lgfortran",

ext/php_tensor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include "kernel/globals.h"
1212

1313
#define PHP_TENSOR_NAME "tensor"
14-
#define PHP_TENSOR_VERSION "3.0.0-beta"
14+
#define PHP_TENSOR_VERSION "3.0.0"
1515
#define PHP_TENSOR_EXTNAME "tensor"
1616
#define PHP_TENSOR_AUTHOR "Andrew DalPino"
1717
#define PHP_TENSOR_ZEPVERSION "0.13.5-$Id$"

package.xml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,12 @@
1616
<api>3.0</api>
1717
</version>
1818
<stability>
19-
<release>beta</release>
20-
<api>beta</api>
19+
<release>stable</release>
20+
<api>stable</api>
2121
</stability>
2222
<license uri="https://github.com/RubixML/Tensor/blob/master/LICENSE">MIT</license>
2323
<notes>
24-
- Extension now compatible with PHP 7.4 and 8.0+
25-
- Drop extension support for PHP 7.2 and 7.3
26-
- Tensors only compute floating point operations
27-
- Matrix returns vector on row access
28-
- Removed deprecated methods
24+
- No changes
2925
</notes>
3026
<contents>
3127
<dir name="/">

phpunit.xml

Lines changed: 14 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,16 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit backupGlobals="false"
3-
backupStaticAttributes="false"
4-
bootstrap="vendor/autoload.php"
5-
colors="true"
6-
convertErrorsToExceptions="true"
7-
convertNoticesToExceptions="true"
8-
convertWarningsToExceptions="true"
9-
forceCoversAnnotation="true"
10-
processIsolation="false"
11-
stopOnFailure="false">
12-
<testsuites>
13-
<testsuite name="Base">
14-
<directory>tests</directory>
15-
</testsuite>
16-
</testsuites>
17-
<filter>
18-
<whitelist processUncoveredFilesFromWhitelist="true">
19-
<directory suffix=".php">src</directory>
20-
</whitelist>
21-
</filter>
22-
<php>
23-
<env name="ENV" value="testing"/>
24-
</php>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" backupStaticAttributes="false" bootstrap="vendor/autoload.php" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" forceCoversAnnotation="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
3+
<coverage processUncoveredFiles="true">
4+
<include>
5+
<directory suffix=".php">src</directory>
6+
</include>
7+
</coverage>
8+
<testsuites>
9+
<testsuite name="Base">
10+
<directory>tests</directory>
11+
</testsuite>
12+
</testsuites>
13+
<php>
14+
<env name="ENV" value="testing"/>
15+
</php>
2516
</phpunit>

0 commit comments

Comments
 (0)