Skip to content

Commit

Permalink
Updated testing for PHP7
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel committed Mar 30, 2019
1 parent 1f5f32d commit 04f3266
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
1 change: 1 addition & 0 deletions .phpunit.result.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
C:37:"PHPUnit\Runner\DefaultTestResultCache":675:{a:2:{s:7:"defects";a:0:{}s:5:"times";a:10:{s:40:"Gstt\Tests\AchievementTest::testUnlocked";d:0.17;s:37:"Gstt\Tests\AchievementTest::testSetup";d:0.012;s:38:"Gstt\Tests\AchievementTest::testUnlock";d:0.028;s:40:"Gstt\Tests\AchievementTest::testProgress";d:0.031;s:55:"Gstt\Tests\AchievementTest::testRelationsLockedUnsynced";d:0.026;s:53:"Gstt\Tests\AchievementTest::testRelationsLockedSynced";d:0.026;s:52:"Gstt\Tests\AchievementTest::testUnlockedWithMorphMap";d:0.012;s:48:"Gstt\Tests\AchievementTest::testAchieverMorphMap";d:0.013;s:63:"Gstt\Tests\AchievementTest::testAchievementProgressMapToDetails";d:0.013;s:45:"Gstt\Tests\ChainAchievementTest::testProgress";d:0.071;}}}
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"ramsey/uuid": "^3.5"
},
"require-dev": {
"phpunit/phpunit": "^5.6",
"laravel/laravel": "^5.3"
"phpunit/phpunit": "^8",
"laravel/laravel": "^5.6"
}
}
2 changes: 1 addition & 1 deletion tests/AchievementTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class AchievementTest extends DBTestCase
public $onePost;
public $tenPosts;

public function setUp()
public function setUp():void
{
parent::setUp();
$this->users[] = User::find(1);
Expand Down
2 changes: 1 addition & 1 deletion tests/ChainAchievementTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class ChainAchievementTest extends DBTestCase
public $tenPosts;
public $fiftyPosts;

public function setUp()
public function setUp():void
{
parent::setUp();
$this->users[] = User::find(1);
Expand Down
6 changes: 2 additions & 4 deletions tests/DBTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ public function createApplication()
}

/**
* Setup DB before each test.
* Setup the test environment.
*
* @return void
*/
protected function setUp()
protected function setUp(): void
{
parent::setUp();

Expand All @@ -35,8 +35,6 @@ protected function setUp()

Artisan::call('migrate');
$this->seedUsers();

return;
}

public function seedUsers()
Expand Down

0 comments on commit 04f3266

Please sign in to comment.