Skip to content

Commit

Permalink
fixed deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
HillLiu committed Sep 8, 2023
1 parent 550593b commit 8830fbc
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 18 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
vendor
composer.lock
.php_cs.cache
.phpunit.cache
.phpunit.result.cache
.*.sw?
33 changes: 18 additions & 15 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,24 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
colors="true"
bootstrap="tests/include.php"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
<?xml version="1.0" encoding="UTF-8" ?>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd"
backupGlobals="false"
colors="true"
bootstrap="tests/include.php"
processIsolation="false"
stopOnFailure="false"
cacheDirectory=".phpunit.cache"
backupStaticProperties="false"
>
<testsuites>
<testsuite name="Application Test Suite">
<directory>./tests/</directory>
<file>./tests/test.php</file>
</testsuite>
</testsuites>
<php>
<ini name="error_reporting" value="E_ALL"/>
<ini name="display_errors" value="true"/>
<ini name="display_startup_errors" value="true"/>
<env name="APP_ENV" value="testing"/>
<ini name="error_reporting" value="E_ALL" />
<ini name="display_errors" value="true" />
<ini name="display_startup_errors" value="true" />
<env name="APP_ENV" value="testing" />
</php>
<logging>
<junit outputFile="/tmp/test_output/junit.xml" />
</logging>
</phpunit>
4 changes: 2 additions & 2 deletions simple_encryptor.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function encode($string)
$string,
$this['method'],
$passphrase,
null,
0,
$this['iv']
) .
'|' .
Expand All @@ -87,7 +87,7 @@ public function decode($string)
$data[0],
$this['method'],
$passphrase,
null,
0,
base64_decode($data[1])
);
} else {
Expand Down
2 changes: 1 addition & 1 deletion tests/test.php → tests/SimpleEncryptorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

use PMVC\TestCase;

class Simple_encryptorTest extends TestCase
class SimpleEncryptorTest extends TestCase
{
private $_plug = 'simple_encryptor';

Expand Down

0 comments on commit 8830fbc

Please sign in to comment.