Skip to content

Commit

Permalink
set 0.11 in changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
Chemaclass committed May 20, 2023
1 parent af49ee8 commit deaffdf
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 10 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

### 0.11.0

##### 2023-05-20

- Upgrade gacela:^1.4 and container:^0.5

### 0.10.0

##### 2023-04-27
Expand Down Expand Up @@ -76,4 +82,4 @@

##### 2023-04-10

- Initial release
- Initial release
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
"license": "MIT",
"require": {
"php": ">=8.0.2",
"gacela-project/container": "^0.4"
"gacela-project/container": "^0.5"
},
"require-dev": {
"ext-mbstring": "*",
"friendsofphp/php-cs-fixer": "^3.16",
"gacela-project/gacela": "^1.3",
"gacela-project/gacela": "^1.4",
"infection/infection": "^0.26",
"phpstan/phpstan": "^1.10",
"phpunit/phpunit": "^9.6",
Expand All @@ -18,7 +18,7 @@
"vimeo/psalm": "^5.11"
},
"suggest": {
"gacela-project/gacela": "^1.3"
"gacela-project/gacela": "^1.4"
},
"config": {
"platform": {
Expand Down
13 changes: 7 additions & 6 deletions tests/Feature/Config/RouterConfigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,16 @@ protected function setUp(): void
{
Gacela::bootstrap(__DIR__, static function (GacelaConfig $config): void {
$config->resetInMemoryCache();
$config->extendGacelaConfig(RouterGacelaConfig::class);

$config->addExtendConfig(RouterGacelaConfig::class);

$config->addPlugin(NameRoutesPlugin::class);
$config->addPlugin(RootRoutesPlugin::class);
$config->addPlugins([
NameRoutesPlugin::class,
RootRoutesPlugin::class,
]);
});
}

public function test_root_routes_plugin(): void
public function test_root_route_plugin(): void
{
$_SERVER['REQUEST_URI'] = 'https://example.org/';
$_SERVER['REQUEST_METHOD'] = Request::METHOD_GET;
Expand All @@ -38,7 +39,7 @@ public function test_root_routes_plugin(): void
$this->expectOutputString(json_encode(['hello' => 'bob?']));
}

public function test_name_routes_plugin(): void
public function test_name_route_plugin(): void
{
$_SERVER['REQUEST_URI'] = 'https://example.org/alice';
$_SERVER['REQUEST_METHOD'] = Request::METHOD_GET;
Expand Down

0 comments on commit deaffdf

Please sign in to comment.