Skip to content

Commit 01d87fa

Browse files
authored
Merge pull request #460 from andrerom/fix_tests
Fix tests on travis
2 parents 56dd01d + ad9c08d commit 01d87fa

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
dist: trusty
12
language: php
23

34
cache:

tests/Functional/Varnish/UserContextTestCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ public function testUserContextHash()
5252
$this->assertContextCache($cachedResponse2->getHeaderLine('X-HashCache'));
5353
$this->assertHit($cachedResponse2);
5454

55-
$headResponse1 = $this->getResponse('/user_context.php', ['Cookie' => ['0=foo'], [], 'HEAD']);
55+
$headResponse1 = $this->getResponse('/user_context.php', ['Cookie' => ['0=foo']], 'HEAD');
5656
$this->assertEquals('foo', $headResponse1->getHeaderLine('X-HashTest'));
5757
$this->assertContextCache($headResponse1->getHeaderLine('X-HashCache'));
5858
$this->assertHit($headResponse1);
5959

60-
$headResponse2 = $this->getResponse('/user_context.php', ['Cookie' => ['0=bar'], [], 'HEAD']);
60+
$headResponse2 = $this->getResponse('/user_context.php', ['Cookie' => ['0=bar']], 'HEAD');
6161
$this->assertEquals('bar', $headResponse2->getHeaderLine('X-HashTest'));
6262
$this->assertContextCache($headResponse2->getHeaderLine('X-HashCache'));
6363
$this->assertHit($headResponse2);

0 commit comments

Comments
 (0)