Skip to content

Commit

Permalink
Added test cases for openssl.
Browse files Browse the repository at this point in the history
  • Loading branch information
limingxinleo committed Oct 4, 2023
1 parent 98bc5cf commit ef4f26f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2
- name: Build
run: docker build -t biz-skeleton .
run: |
docker build -t biz-skeleton .
docker run --entrypoint composer biz-skeleton:latest install && composer test
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
matrix:
os: [ ubuntu-latest ]
php-version: [ '8.1', '8.2' ]
swoole-version: [ 'v5.0.3', 'master' ]
swoole-version: [ 'v5.0.3', 'v5.1.0', 'master' ]
max-parallel: 5
env:
SW_VERSION: ${{ matrix.swoole-version }}
Expand Down Expand Up @@ -45,4 +45,4 @@ jobs:
cp .env.example .env
vendor/bin/php-cs-fixer fix --dry-run
composer analyse
composer test
composer test -- --exclude-group OpenSSL
8 changes: 8 additions & 0 deletions test/Cases/ExampleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,12 @@ public function testGetDefinitionResolver()
$this->assertInstanceOf(FactoryResolver::class, $resolver2);
$this->assertSame($resolver2, $dispatcher->factoryResolver);
}

/**
* @group OpenSSL
*/
public function testOpenSSL()
{
$this->assertNotFalse(openssl_encrypt('12345', 'bf', 'xxxxxxxx', 0, 'xxxxxxxx'));
}
}

0 comments on commit ef4f26f

Please sign in to comment.