Skip to content
This repository has been archived by the owner on Aug 19, 2024. It is now read-only.

Commit

Permalink
laravel 6 support
Browse files Browse the repository at this point in the history
  • Loading branch information
jildertmiedema committed Oct 11, 2019
1 parent e01ff89 commit 26495e1
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 12 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":459:{a:2:{s:7:"defects";a:1:{s:29:"BuilderTest::testCreateJsInit";i:4;}s:5:"times";a:9:{s:29:"BuilderTest::testGetContainer";d:0.01;s:27:"BuilderTest::testAddScripts";d:0;s:29:"BuilderTest::testCreateJsInit";d:0;s:28:"BuilderTest::testCreateJsRun";d:0;s:28:"BuilderTest::testGetSettings";d:0;s:31:"BuilderTest::testUpdateSettings";d:0;s:26:"BuilderTest::testSetPrefix";d:0;s:29:"BuilderTest::testSetScriptUrl";d:0;s:32:"PluploadTest::testGetDefaultView";d:0.006;}}}
6 changes: 2 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
language: php

php:
- 5.5
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3

before_script:
- curl -s http://getcomposer.org/installer | php
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
],
"license": "MIT",
"require": {
"php": ">=5.5.0",
"illuminate/support": "^5.1"
"php": ">=7.2.0",
"illuminate/support": "^6.0"
},
"require-dev": {
"phpunit/phpunit": "^4.0",
"phpunit/phpunit": "^8.0",
"mockery/mockery": "^0.9.4"
},
"autoload": {
Expand Down
7 changes: 4 additions & 3 deletions tests/BuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@

use JildertMiedema\LaravelPlupload\Builder;
use Mockery as m;
use PHPUnit\Framework\TestCase;

class BuilderTest extends PHPUnit_Framework_TestCase
class BuilderTest extends TestCase
{
public function tearDown()
public function tearDown(): void
{
Mockery::close();
}
Expand Down Expand Up @@ -42,7 +43,7 @@ public function testCreateJsInit()

$result = $builder->createJsInit();

$this->assertContains('var test_uploader = new plupload.Uploader({', $result);
$this->assertStringContainsString('var test_uploader = new plupload.Uploader({', $result);
}

public function testCreateJsRun()
Expand Down
5 changes: 3 additions & 2 deletions tests/PluploadTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@

use JildertMiedema\LaravelPlupload\Plupload;
use Mockery as m;
use PHPUnit\Framework\TestCase;

class PluploadTest extends PHPUnit_Framework_TestCase
class PluploadTest extends TestCase
{
public function tearDown()
public function tearDown(): void
{
Mockery::close();
}
Expand Down

0 comments on commit 26495e1

Please sign in to comment.