Skip to content

Commit 0e60a1d

Browse files
committed
Fix version comparisons
1 parent 946a368 commit 0e60a1d

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

tests/DingoGeneratorTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ public function setUp()
3737

3838
public function testCanParseMethodDescription()
3939
{
40-
if (version_compare($this->app->version(), '5.4', '>=')) {
41-
$this->markTestSkipped('Dingo does not support Laravel 5.4');
40+
if (version_compare($this->app->version(), '5.4', '<=')) {
41+
$this->markTestSkipped('Dingo does not support Laravel 5.4 or below');
4242
}
4343

4444
$api = app('Dingo\Api\Routing\Router');
@@ -55,8 +55,8 @@ public function testCanParseMethodDescription()
5555

5656
public function testCanParseRouteMethods()
5757
{
58-
if (version_compare($this->app->version(), '5.4', '>=')) {
59-
$this->markTestSkipped('Dingo does not support Laravel 5.4');
58+
if (version_compare($this->app->version(), '5.4', '<=')) {
59+
$this->markTestSkipped('Dingo does not support Laravel 5.4 or below');
6060
}
6161

6262
$api = app('Dingo\Api\Routing\Router');
@@ -85,8 +85,8 @@ public function testCanParseRouteMethods()
8585

8686
public function testCanParseFormRequestRules()
8787
{
88-
if (version_compare($this->app->version(), '5.4', '>=')) {
89-
$this->markTestSkipped('Dingo does not support Laravel 5.4');
88+
if (version_compare($this->app->version(), '5.4', '<=')) {
89+
$this->markTestSkipped('Dingo does not support Laravel 5.4 or below');
9090
}
9191

9292
$api = app('Dingo\Api\Routing\Router');

tests/GenerateDocumentationTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ public function testConsoleCommandDoesNotWorkWithClosure()
8484

8585
public function testConsoleCommandDoesNotWorkWithClosureUsingDingo()
8686
{
87-
if (version_compare($this->app->version(), '5.4', '>=')) {
88-
$this->markTestSkipped('Dingo does not support Laravel 5.4');
87+
if (version_compare($this->app->version(), '5.4', '<=')) {
88+
$this->markTestSkipped('Dingo does not support Laravel 5.4 or below');
8989
}
9090

9191
$api = app('Dingo\Api\Routing\Router');

0 commit comments

Comments
 (0)