Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
wittfabian committed May 4, 2019
1 parent 83a2c5a commit ce8db9e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 15 deletions.
11 changes: 5 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,15 @@ php:

branches:
only:
- master
- fb-travis-ci
- master
- fb-travis-ci

install:
before_script:
- travis_retry composer self-update
- travis_retry composer install --no-interaction --no-suggest
- travis_retry composer install --no-interaction --prefer-source --dev

script:
- composer test
- vendor/bin/phpunit --coverage-clover=coverage.xml
- vendor/bin/phpunit

after_success:
- bash <(curl -s https://codecov.io/bash)
Expand Down
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@
</filter>

<logging>
<log type="coverage-clover" target="build/logs/clover.xml"/>
<log type="coverage-clover" target="clover.xml"/>
</logging>
</phpunit>
16 changes: 8 additions & 8 deletions tests/TestCase/UserProfile/UserProfileTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@ public function setUp(): void
$this->userProfile = new UserProfile(json_decode($this->data, true));
}

public function testGetProfile(): void
public function testUserProfile(): void
{
$this->assertSame('Peter', $this->userProfile.getFirstName());
$this->assertSame('Chang', $this->userProfile.getLastName());
$this->assertSame('https://placeimg.com/200/200/nature', $this->userProfile.getProfilePic());
$this->assertSame('en_US', $this->userProfile.getLocale());
$this->assertSame(-7., $this->userProfile.getTimezone());
$this->assertSame('male', $this->userProfile.getGender());
$this->assertSame('Peter', $this->userProfile->getFirstName());
$this->assertSame('Chang', $this->userProfile->getLastName());
$this->assertSame('https://placeimg.com/200/200/nature', $this->userProfile->getPicture());
$this->assertSame('en_US', $this->userProfile->getLocale());
$this->assertSame(-7, $this->userProfile->getTimezone());
$this->assertSame('male', $this->userProfile->getGender());
}

public function testGetProfileData(): void
public function testUserProfileData(): void
{
$this->assertSame(json_decode($this->data, true), $this->userProfile->getData());
}
Expand Down

0 comments on commit ce8db9e

Please sign in to comment.