Skip to content

Commit

Permalink
Enabled PHPUnit v6
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioBlazek committed Jan 22, 2018
1 parent d35f2f1 commit 89daa1d
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Tests/Helper/UserContentHelperTest.php
Expand Up @@ -5,8 +5,9 @@
use eZ\Publish\Core\Repository\Values\ContentType\FieldDefinition;
use Netgen\Bundle\EzSocialConnectBundle\Entity\OAuthEz;
use Netgen\Bundle\EzSocialConnectBundle\OAuth\OAuthEzUser;
use PHPUnit\Framework\TestCase;

class UserContentHelperTest extends \PHPUnit_Framework_TestCase
class UserContentHelperTest extends TestCase
{
public function testGetUserCreateStruct()
{
Expand Down
3 changes: 2 additions & 1 deletion Tests/OAuth/eZUserProviderTest.php
Expand Up @@ -5,8 +5,9 @@

use Netgen\Bundle\EzSocialConnectBundle\Entity\OAuthEz;
use Netgen\Bundle\EzSocialConnectBundle\OAuth\OAuthEzUser;
use PHPUnit\Framework\TestCase;

class eZUserProviderTest extends \PHPUnit_Framework_TestCase
class eZUserProviderTest extends TestCase
{
public function testGetUserIfAlreadyLinked()
{
Expand Down
15 changes: 14 additions & 1 deletion composer.json
Expand Up @@ -2,6 +2,15 @@
"name": "netgen/ez-social-connect",
"description": "Bundle for eZ Publish which enables sign in with various social networks",
"type": "ezplatform-bundle",
"keywords": [
"ezpublish",
"ezplatform",
"netgen",
"ez-social-connect",
"oauth",
"social-login"
],
"homepage": "https://github.com/netgen/NetgenEzSocialConnectBundle",
"license": "GPL-2.0-only",
"authors": [
{
Expand All @@ -17,10 +26,14 @@
},
"require-dev": {
"ezsystems/ezpublish-kernel": "6.12",
"phpunit/phpunit": "^5.7"
"phpunit/phpunit": "^5.7|^6.0"
},
"target-dir": "Netgen/Bundle/EzSocialConnectBundle",
"autoload": {
"psr-0": { "Netgen\\Bundle\\EzSocialConnectBundle": "" }
},
"scripts": {
"test": "@php vendor/bin/phpunit --colors=always",
"coverage": "@php -dzend_extension=xdebug.so vendor/bin/phpunit --colors=always"
}
}
10 changes: 10 additions & 0 deletions phpunit.xml
@@ -1,10 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="vendor/autoload.php"
backupGlobals="false"
backupStaticAttributes="false"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
colors="true"
verbose="true"
processIsolation="false"
stopOnFailure="false"
>
<testsuites>
<testsuite name="Netgen\Bundle\EzSocialConnectBundle\Tests">
Expand All @@ -29,4 +33,10 @@
</exclude>
</whitelist>
</filter>
<logging>
<log type="junit" target="build/report.junit.xml"/>
<log type="coverage-html" target="build/coverage" charset="UTF-8" yui="true" highlight="true"/>
<log type="coverage-text" target="build/coverage.txt"/>
<log type="coverage-clover" target="build/logs/clover.xml"/>
</logging>
</phpunit>

0 comments on commit 89daa1d

Please sign in to comment.