Skip to content

Commit

Permalink
Fixed failing specs on windows (PHP 5.6.8)
Browse files Browse the repository at this point in the history
  • Loading branch information
yassirh committed Aug 13, 2016
1 parent 71c755f commit 3f405d4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions spec/DigitalOceanV2/Api/ActionSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,9 @@ function it_returns_an_action_entity_get_by_its_id($adapter)
function it_throws_an_http_exception_if_requested_action_does_not_exist($adapter)
{
$adapter
->get('https://api.digitalocean.com/v2/actions/123456789123456789')
->get('https://api.digitalocean.com/v2/actions/1234567')
->willThrow(new HttpException('Request not processed.'));

$this->shouldThrow(new HttpException('Request not processed.'))->duringGetById(123456789123456789);
$this->shouldThrow(new HttpException('Request not processed.'))->duringGetById(1234567);
}
}
4 changes: 2 additions & 2 deletions spec/DigitalOceanV2/Api/DropletSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,10 @@ function it_returns_a_droplet_entity_even_if_backup_is_disabled($adapter)
function it_throws_an_http_exception_if_requested_droplet_does_not_exist($adapter)
{
$adapter
->get('https://api.digitalocean.com/v2/droplets/123456789123456789')
->get('https://api.digitalocean.com/v2/droplets/1234567')
->willThrow(new HttpException('Request not processed.'));

$this->shouldThrow(new HttpException('Request not processed.'))->duringGetById(123456789123456789);
$this->shouldThrow(new HttpException('Request not processed.'))->duringGetById(1234567);
}

function it_returns_the_created_droplet_entity_without_ssh_keys($adapter)
Expand Down
4 changes: 2 additions & 2 deletions spec/DigitalOceanV2/Api/FloatingIpSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ function it_returns_a_floating_ip_entity_get_by_its_id($adapter)
function it_throws_an_http_exception_if_requested_floating_id_does_not_exist($adapter)
{
$adapter
->get('https://api.digitalocean.com/v2/floating_ips/123456789123456789')
->get('https://api.digitalocean.com/v2/floating_ips/1234567')
->willThrow(new HttpException('Request not processed.'));

$this->shouldThrow(new HttpException('Request not processed.'))->duringGetById(123456789123456789);
$this->shouldThrow(new HttpException('Request not processed.'))->duringGetById(1234567);
}

function it_returns_the_created_floating_id_entity_assigned_to_droplet($adapter)
Expand Down

0 comments on commit 3f405d4

Please sign in to comment.