Skip to content

Commit

Permalink
Merge pull request #10 from ARCANEDEV/update-laravel_5.8_support
Browse files Browse the repository at this point in the history
Adding Laravel 5.8 support
  • Loading branch information
arcanedev-maroc authored Apr 21, 2019
2 parents c7c7566 + 84cb994 commit a2b3a6a
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 15 deletions.
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
"license": "MIT",
"require": {
"php": ">=7.1.3",
"arcanedev/support": "~4.4.0",
"arcanedev/support": "~4.5.0",
"erusev/parsedown": "~1.7"
},
"require-dev": {
"orchestra/testbench": "~3.7.0",
"phpunit/phpunit": "~7.0",
"phpunit/phpcov": "~5.0"
"orchestra/testbench": "~3.8.0",
"phpunit/phpunit": "~7.0|~8.0",
"phpunit/phpcov": "~5.0|~6.0"
},
"autoload": {
"psr-4": {
Expand Down
4 changes: 2 additions & 2 deletions tests/LaravelMarkdownServiceProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ class LaravelMarkdownServiceProviderTest extends TestCase
| -----------------------------------------------------------------
*/

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

$this->provider = $this->app->getProvider(LaravelMarkdownServiceProvider::class);
}

public function tearDown()
public function tearDown(): void
{
unset($this->provider);

Expand Down
14 changes: 6 additions & 8 deletions tests/MarkdownParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ class MarkdownParserTest extends TestCase
| -----------------------------------------------------------------
*/

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

$this->parser = $this->app->make(\Arcanedev\LaravelMarkdown\Contracts\Parser::class);
}

public function tearDown()
public function tearDown(): void
{
unset($this->parser);

Expand Down Expand Up @@ -153,14 +153,12 @@ public function it_can_autolink_the_urls()
);
}

/**
* @test
*
* @expectedException \Arcanedev\LaravelMarkdown\Exceptions\ParserBufferingException
* @expectedExceptionMessage Markdown buffering have not been started.
*/
/** @test */
public function it_must_throw_an_exception_when_the_buffering_is_not_started()
{
$this->expectException(\Arcanedev\LaravelMarkdown\Exceptions\ParserBufferingException::class);
$this->expectExceptionMessage('Markdown buffering have not been started.');

$this->parser->end();
}
}
2 changes: 1 addition & 1 deletion tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ abstract class TestCase extends BaseTestCase
| -----------------------------------------------------------------
*/

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

Expand Down

0 comments on commit a2b3a6a

Please sign in to comment.