Skip to content

Commit

Permalink
Adding Laravel 5.7 Support
Browse files Browse the repository at this point in the history
  • Loading branch information
arcanedev-maroc committed Sep 4, 2018
1 parent fd12673 commit 1e12bb8
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 24 deletions.
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@
"require": {
"php": ">=7.1.3",
"psr/log": "~1.0",
"arcanedev/support": "~4.3.0"
"arcanedev/support": "~4.4.0"
},
"require-dev": {
"orchestra/testbench": "~3.6.0",
"orchestra/testbench": "~3.7.0",
"mockery/mockery": "~1.0",
"phpunit/phpunit": "~7.0",
"phpunit/phpcov": "~5.0"
},
Expand Down
3 changes: 1 addition & 2 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
syntaxCheck="true"
verbose="true">
<testsuites>
<testsuite name="Package Test Suite">
Expand All @@ -27,6 +26,6 @@
<logging>
<log type="coverage-clover" target="build/logs/clover.xml"/>
<log type="coverage-text" target="build/logs/coverage.txt"/>
<log type="coverage-html" target="build/logs/coverage" charset="UTF-8" yui="true" highlight="true"/>
<log type="coverage-html" target="build/logs/coverage"/>
</logging>
</phpunit>
5 changes: 2 additions & 3 deletions tests/Commands/CheckCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ class CheckCommandTest extends TestCase
/** @test */
public function it_can_check()
{
$code = $this->artisan('log-viewer:check');

static::assertSame(0, $code);
$this->artisan('log-viewer:check')
->assertExitCode(0);
}
}
22 changes: 8 additions & 14 deletions tests/Commands/PublishCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ protected function tearDown()
/** @test */
public function it_can_publish_all()
{
$code = $this->artisan('log-viewer:publish');
$this->artisan('log-viewer:publish')
->assertExitCode(0);

static::assertSame(0, $code);
static::assertHasConfigFile();
static::assertHasLocalizationFiles();
// TODO: Add views assertions
Expand All @@ -49,11 +49,9 @@ public function it_can_publish_all()
/** @test */
public function it_can_publish_all_with_force()
{
$code = $this->artisan('log-viewer:publish', [
'--force' => true
]);
$this->artisan('log-viewer:publish', ['--force' => true])
->assertExitCode(0);

static::assertEquals(0, $code);
static::assertHasConfigFile();
static::assertHasLocalizationFiles();
// TODO: Add views assertions
Expand All @@ -62,11 +60,9 @@ public function it_can_publish_all_with_force()
/** @test */
public function it_can_publish_only_config()
{
$code = $this->artisan('log-viewer:publish', [
'--tag' => 'config'
]);
$this->artisan('log-viewer:publish', ['--tag' => 'config'])
->assertExitCode(0);

static::assertSame(0, $code);
static::assertHasConfigFile();
static::assertHasNotLocalizationFiles();
// TODO: Add views assertions
Expand All @@ -75,11 +71,9 @@ public function it_can_publish_only_config()
/** @test */
public function it_can_publish_only_translations()
{
$code = $this->artisan('log-viewer:publish', [
'--tag' => 'lang'
]);
$this->artisan('log-viewer:publish', ['--tag' => 'lang'])
->assertExitCode(0);

static::assertSame(0, $code);
static::assertHasNotConfigFile();
static::assertHasLocalizationFiles();
// TODO: Add views assertions
Expand Down
5 changes: 2 additions & 3 deletions tests/Commands/StatsCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ class StatsCommandTest extends TestCase
/** @test */
public function it_can_display_stats()
{
$code = $this->artisan('log-viewer:stats');

static::assertSame(0, $code);
$this->artisan('log-viewer:stats')
->assertExitCode(0);
}
}

0 comments on commit 1e12bb8

Please sign in to comment.