Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ matrix:
env: SYMFONY_VERSION=3.0.*
- php: 7.0
env: SYMFONY_VERSION=3.0.*
- php: 7.0
- php: 7.1
env: SYMFONY_VERSION=3.1.*

allow_failures:
Expand All @@ -31,7 +31,7 @@ cache:
- $HOME/.composer/cache

before_install:
- if [[ "$TRAVIS_PHP_VERSION" != "5.6" && "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then phpenv config-rm xdebug.ini; fi
- if [[ "$TRAVIS_PHP_VERSION" != "5.6" && "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then phpenv config-rm xdebug.ini || true; fi
- composer selfupdate
- if [ "$SYMFONY_VERSION" != "" ]; then composer require "symfony/symfony:${SYMFONY_VERSION}" --no-update; fi;

Expand Down
8 changes: 4 additions & 4 deletions Tests/Relay/Node/GlobalIdTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,28 +45,28 @@ public function testToGlobalIdWithTypeAndIdEmpty()

public function testFromGlobalId()
{
$params = GlobalId::fromGlobalId('VXNlcjoxNQ==');
$params = GlobalId::fromGlobalId(base64_encode('User:15'));

$this->assertEquals(['type' => 'User', 'id' => 15], $params);
}

public function testFromGlobalIdWithTypeEmpty()
{
$params = GlobalId::fromGlobalId('OjE1=');
$params = GlobalId::fromGlobalId(base64_encode(':15'));

$this->assertEquals(['type' => null, 'id' => 15], $params);
}

public function testFromGlobalIdWithIdEmpty()
{
$params = GlobalId::fromGlobalId('VXNlcjo=');
$params = GlobalId::fromGlobalId(base64_encode('User:'));

$this->assertEquals(['type' => 'User', 'id' => null], $params);
}

public function testFromGlobalIdWithTypeAndIdEmpty()
{
$params = GlobalId::fromGlobalId('Og==');
$params = GlobalId::fromGlobalId(base64_encode(':'));

$this->assertEquals(['type' => null, 'id' => null], $params);
}
Expand Down