Skip to content

Commit

Permalink
adding support for laravel 6.*
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamednagy committed Oct 3, 2019
1 parent 3f5180f commit 632ac0f
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 9 deletions.
9 changes: 4 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,12 @@
}
},
"require": {
"php": "^7.0",
"illuminate/database": "5.*",
"illuminate/support": "5.*"
"php": "^7.2",
"illuminate/database": "6.*",
"illuminate/support": "6.*"
},
"require-dev": {
"orchestra/testbench": "~3.0",
"orchestra/database": "^3.5"
"orchestra/testbench": "~4.0"
},
"scripts": {
"test": "vendor/bin/phpunit"
Expand Down
20 changes: 20 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<phpunit colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
stopOnFailure="true"
verbose="true"
bootstrap="vendor/autoload.php">

<testsuites>
<testsuite name="all">
<directory>./tests</directory>
</testsuite>
</testsuites>

<filter>
<whitelist>
<directory>./src</directory>
</whitelist>
</filter>
</phpunit>
2 changes: 1 addition & 1 deletion tests/LikeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class LikeTest extends TestCase
{
public function setUp()
public function setUp(): void
{
parent::setUp();
}
Expand Down
2 changes: 1 addition & 1 deletion tests/RatingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
class RatingTest extends TestCase
{

public function setUp()
public function setUp(): void
{
parent::setUp();
}
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
abstract class TestCase extends Orchestra
{

public function setUp()
public function setUp(): void
{
parent::setUp();

Expand Down
2 changes: 1 addition & 1 deletion tests/VotingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

class VotingTest extends TestCase
{
public function setUp()
public function setUp(): void
{
parent::setUp();
}
Expand Down

0 comments on commit 632ac0f

Please sign in to comment.