Skip to content

Commit

Permalink
Lower composer require to php5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Zorato committed Oct 5, 2017
1 parent 30d224c commit 3bbf2a3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -13,7 +13,7 @@
}
],
"require": {
"php": "^7.0",
"php": "^5.6 || ^7.0",
"ext-gmp": "*",
"ramsey/uuid": "^3.7",
"guzzlehttp/guzzle": "^6.3",
Expand Down
14 changes: 7 additions & 7 deletions spec/UserDataItemSpec.php
Expand Up @@ -20,13 +20,13 @@ function it_is_initializable()

function it_is_json_serializable()
{
$this->shouldImplement(JsonSerializable::class);
assert(json_encode($this->getWrappedObject()) === json_encode([
'label' => 'label',
'value' => 'value',
'isValid' => true,
'isOwner' => false,
]), 'JSON representation');
$this->shouldImplement(JsonSerializable::class);
assert(json_encode($this->getWrappedObject()) === json_encode([
'label' => 'label',
'value' => 'value',
'isValid' => true,
'isOwner' => false,
]), 'JSON representation');
}

public function it_is_readable()
Expand Down
10 changes: 5 additions & 5 deletions spec/UserDataSpec.php
Expand Up @@ -25,11 +25,11 @@ function it_is_initializable()

function it_is_json_serializable()
{
$this->shouldImplement(JsonSerializable::class);
assert(json_encode($this->getWrappedObject()) === json_encode([
['label' => 'label1', 'value' => 'value1', 'isValid' => true, 'isOwner' => true],
['label' => 'label2', 'value' => 'value2', 'isValid' => true, 'isOwner' => false],
]), 'JSON representation');
$this->shouldImplement(JsonSerializable::class);
assert(json_encode($this->getWrappedObject()) === json_encode([
['label' => 'label1', 'value' => 'value1', 'isValid' => true, 'isOwner' => true],
['label' => 'label2', 'value' => 'value2', 'isValid' => true, 'isOwner' => false],
]), 'JSON representation');
}

function it_returns_data_items()
Expand Down

0 comments on commit 3bbf2a3

Please sign in to comment.