Skip to content

Commit

Permalink
test fixes, v1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarotero committed Jan 25, 2018
1 parent 1abcd9b commit 2fbcd97
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [UNRELEASED]
## [1.0.0] - 2018-01-25

### Added

Expand Down Expand Up @@ -73,7 +73,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

First version

[UNRELEASED]: https://github.com/middlewares/debugbar/compare/v0.5.0...HEAD
[1.0.0]: https://github.com/middlewares/debugbar/compare/v0.5.0...v1.0.0
[0.5.0]: https://github.com/middlewares/debugbar/compare/v0.4.0...v0.5.0
[0.4.0]: https://github.com/middlewares/debugbar/compare/v0.3.2...v0.4.0
[0.3.2]: https://github.com/middlewares/debugbar/compare/v0.3.1...v0.3.2
Expand Down
8 changes: 4 additions & 4 deletions tests/DebugbarTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ public function testDebugbar(string $contentType, array $headers, bool $expected
(new Debugbar())->captureAjax(),
function () use ($contentType) {
return Factory::createResponse()
->withHeader('Content-Type', $contentType)
->withHeader('Content-Length', '0');
->withHeader('Content-Type', $contentType);
},
], $request);

Expand All @@ -54,8 +53,6 @@ function () use ($contentType) {
} else {
$this->assertFalse($response->hasHeader('phpdebugbar'));
}

$this->assertEquals(strlen($body), (int) $response->getHeaderLine('Content-Length'));
}

public function testInline()
Expand Down Expand Up @@ -98,6 +95,9 @@ function () {
$this->assertEquals(file_get_contents($renderer->getBasePath().$file), $body);
}

/**
* @runInSeparateProcess
*/
public function testRedirection()
{
session_start();
Expand Down

0 comments on commit 2fbcd97

Please sign in to comment.