Skip to content

Commit

Permalink
Fix syntax for 5.3 in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
skimbrel committed May 7, 2015
1 parent 217c8ff commit 1da5194
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tests/resources/pricing/PhoneNumbersTest.php
Expand Up @@ -26,7 +26,8 @@ function testGetCountries() {
$countries = $pricingClient->phoneNumberCountries->getPage();
$this->assertNotNull($countries);

$country = $countries->getItems()[0];
$countryList = $countries->getItems();
$country = $countryList[0];
$this->assertNotNull($country);
$this->assertEquals($country->iso_country, 'US');
}
Expand Down
3 changes: 2 additions & 1 deletion tests/resources/pricing/VoiceTest.php
Expand Up @@ -26,7 +26,8 @@ function testGetCountries() {
$countries = $pricingClient->voiceCountries->getPage();
$this->assertNotNull($countries);

$country = $countries->getItems()[0];
$countryList = $countries->getItems();
$country = $countryList[0];
$this->assertNotNull($country);
$this->assertEquals($country->iso_country, 'US');
}
Expand Down

0 comments on commit 1da5194

Please sign in to comment.