Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/vendor
/.idea
composer.lock
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ language: php
php:
- 7.2
- 7.3
- 7.4

before_script:
- composer self-update
- composer install --prefer-source --no-interaction --dev

script: phpunit
script: vendor/bin/phpunit

notifications:
email:
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
],
"require": {
"php": ">=7.2",
"illuminate/contracts": "^5.1. | ^6.0 | ^7.0 | ^8.0",
"illuminate/support": "^5.1 | ^6.0 | ^7.0 | ^8.0",
"illuminate/http": "5.1 | ^6.0 | ^7.0 | ^8.0"
"illuminate/contracts": "^5.1|^6.0|^7.0|^8.0",
"illuminate/support": "^5.1|^6.0|^7.0|^8.0",
"illuminate/http": "^5.1|^6.0|^7.0|^8.0"
},
"require-dev": {
"phpunit/phpunit": "^5.4",
Expand Down
6 changes: 3 additions & 3 deletions tests/HttpPushTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ class HttpPushTest extends PHPUnit_Framework_TestCase
*/
protected $instance;

public function setUp()
public function setUp(): void
{
$this->instance = new HttpPush();
}

public function tearDown()
public function tearDown(): void
{
$this->instance->clear();
parent::tearDown();
Expand Down Expand Up @@ -89,7 +89,7 @@ public function test_resource_generates_font_link_string()
{
$this->instance->queueResource('/assets/font/Roboto.woff', 'font');

$this->assertEquals('</assets/font/Roboto.woff>; rel=preload; as=font', $this->instance->generateLinks()[0]);
$this->assertEquals('</assets/font/Roboto.woff>; rel=preload; as=font; crossorigin', $this->instance->generateLinks()[0]);
}

public function test_clear_resources()
Expand Down