Skip to content

Commit 5174daa

Browse files
committed
Merge branch 'develop'
2 parents 582201e + 706fe70 commit 5174daa

31 files changed

+164
-56
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@
66
/laminas-mkdoc-theme/
77
/phpunit.xml
88
/vendor/
9+
.phpunit.result.cache
10+

.travis.yml

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,38 +6,34 @@ cache:
66

77
env:
88
global:
9-
- COMPOSER_ARGS="--no-interaction"
9+
- COMPOSER_ARGS="--no-interaction --ignore-platform-reqs"
1010
- COVERAGE_DEPS="php-coveralls/php-coveralls"
1111

1212
matrix:
1313
fast_finish: true
1414
include:
15-
- php: 5.6
15+
- php: 7.3
1616
env:
1717
- DEPS=lowest
18-
- php: 5.6
18+
- php: 7.3
1919
env:
2020
- DEPS=latest
21-
- php: 7
22-
env:
23-
- DEPS=lowest
24-
- php: 7
25-
env:
26-
- DEPS=latest
27-
- php: 7.1
21+
- CS_CHECK=true
22+
- TEST_COVERAGE=true
23+
- php: 7.4
2824
env:
2925
- DEPS=lowest
30-
- php: 7.1
26+
- php: 7.4
3127
env:
3228
- DEPS=latest
33-
- CS_CHECK=true
34-
- TEST_COVERAGE=true
35-
- php: 7.2
29+
- php: 8.0
3630
env:
3731
- DEPS=lowest
38-
- php: 7.2
32+
- COMPOSER_ARGS="--no-interaction --ignore-platform-reqs"
33+
- php: 8.0
3934
env:
4035
- DEPS=latest
36+
- COMPOSER_ARGS="--no-interaction --ignore-platform-reqs"
4137

4238
before_install:
4339
- if [[ $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,28 @@
22

33
All notable changes to this project will be documented in this file, in reverse chronological order by release.
44

5+
## 1.3.0 - TBD
6+
7+
### Added
8+
9+
- [#9](https://github.com/laminas/laminas-mvc-console/pull/9) added PHP 8.x support.
10+
11+
### Changed
12+
13+
- Nothing.
14+
15+
### Deprecated
16+
17+
- Nothing.
18+
19+
### Removed
20+
21+
- Nothing.
22+
23+
### Fixed
24+
25+
- Nothing.
26+
527
## 1.2.1 - TBD
628

729
### Added

composer.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,23 +29,25 @@
2929
}
3030
},
3131
"require": {
32-
"php": "^5.6 || ^7.0",
32+
"php": "^7.3 || ~8.0.0",
3333
"container-interop/container-interop": "^1.1",
3434
"laminas/laminas-console": "^2.6",
35-
"laminas/laminas-eventmanager": "^2.6.2 || ^3.0",
35+
"laminas/laminas-eventmanager": "^3.3",
3636
"laminas/laminas-modulemanager": "^2.7.1",
3737
"laminas/laminas-mvc": "^3.0.3",
3838
"laminas/laminas-router": "^3.0",
39-
"laminas/laminas-servicemanager": "^2.7.5 || ^3.0.3",
40-
"laminas/laminas-stdlib": "^2.7.5 || ^3.0",
39+
"laminas/laminas-servicemanager": "^3.3",
40+
"laminas/laminas-stdlib": "^3.3",
4141
"laminas/laminas-text": "^2.6",
42-
"laminas/laminas-view": "^2.6.3",
42+
"laminas/laminas-view": "^2.11.3",
4343
"laminas/laminas-zendframework-bridge": "^1.0"
4444
},
4545
"require-dev": {
4646
"laminas/laminas-coding-standard": "~1.0.0",
4747
"laminas/laminas-filter": "^2.6.1",
48-
"phpunit/phpunit": "^5.7.27 || ^6.5.8 || ^7.1.4"
48+
"phpspec/prophecy": "^1.12.0",
49+
"phpspec/prophecy-phpunit": "^2.0",
50+
"phpunit/phpunit": "^9.3"
4951
},
5052
"conflict": {
5153
"laminas/laminas-mvc": "<3.0.0"

test/Controller/ConsoleControllerTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,18 @@
1919
use Laminas\ServiceManager\Factory\InvokableFactory;
2020
use PHPUnit\Framework\TestCase;
2121
use Prophecy\Argument;
22+
use Prophecy\PhpUnit\ProphecyTrait;
2223

2324
class ConsoleControllerTest extends TestCase
2425
{
26+
use ProphecyTrait;
27+
2528
/**
2629
* @var TestAsset\ConsoleController
2730
*/
2831
public $controller;
2932

30-
public function setUp()
33+
public function setUp() : void
3134
{
3235
$this->controller = new TestAsset\ConsoleController();
3336

test/ResponseSender/ConsoleResponseSenderTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,12 @@
1313
use Laminas\Stdlib\ResponseInterface;
1414
use LaminasTest\Mvc\Console\ResponseSender\TestAsset\ConsoleResponseSender;
1515
use PHPUnit\Framework\TestCase;
16+
use Prophecy\PhpUnit\ProphecyTrait;
1617

1718
class ConsoleResponseSenderTest extends TestCase
1819
{
20+
use ProphecyTrait;
21+
1922
public function testSendResponseIgnoresInvalidResponseTypes()
2023
{
2124
$mockResponse = $this->getMockForAbstractClass(ResponseInterface::class);

test/Router/CatchallTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,12 @@
1313
use Laminas\Mvc\Console\Router\RouteMatch;
1414
use Laminas\Stdlib\RequestInterface;
1515
use PHPUnit\Framework\TestCase;
16+
use Prophecy\PhpUnit\ProphecyTrait;
1617

1718
class CatchallTest extends TestCase
1819
{
20+
use ProphecyTrait;
21+
1922
public function provideFactoryOptions()
2023
{
2124
return [

test/Router/ConsoleRouterDelegatorFactoryTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@
1212
use Laminas\Mvc\Console\Router\ConsoleRouterDelegatorFactory;
1313
use LaminasTest\Mvc\Console\Service\FactoryEnvironmentTrait;
1414
use PHPUnit\Framework\TestCase;
15+
use Prophecy\PhpUnit\ProphecyTrait;
1516

1617
class ConsoleRouterDelegatorFactoryTest extends TestCase
1718
{
1819
use FactoryEnvironmentTrait;
20+
use ProphecyTrait;
1921

2022
public function environments()
2123
{

test/Router/ConsoleRouterFactoryTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,13 @@
1313
use Laminas\Mvc\Console\Router\SimpleRouteStack;
1414
use Laminas\Router\RoutePluginManager;
1515
use PHPUnit\Framework\TestCase;
16+
use Prophecy\PhpUnit\ProphecyTrait;
1617

1718
class ConsoleRouterFactoryTest extends TestCase
1819
{
19-
public function setUp()
20+
use ProphecyTrait;
21+
22+
public function setUp() : void
2023
{
2124
$this->container = $this->prophesize(ContainerInterface::class);
2225
$this->factory = new ConsoleRouterFactory();

test/Router/FactoryTester.php

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,15 @@ public function testFactory($classname, array $requiredOptions, array $options)
4848
$classname::factory(0);
4949
$this->testCase->fail('An expected exception was not thrown');
5050
} catch (InvalidArgumentException $e) {
51-
$this->testCase->assertContains('factory expects an array or Traversable set of options', $e->getMessage());
51+
$this->testCase->assertStringContainsString(
52+
'factory expects an array or Traversable set of options',
53+
$e->getMessage()
54+
);
5255
} catch (RouterInvalidArgumentException $e) {
53-
$this->testCase->assertContains('factory expects an array or Traversable set of options', $e->getMessage());
56+
$this->testCase->assertStringContainsString(
57+
'factory expects an array or Traversable set of options',
58+
$e->getMessage()
59+
);
5460
}
5561

5662
// Test required options.
@@ -63,9 +69,9 @@ public function testFactory($classname, array $requiredOptions, array $options)
6369
$classname::factory($testOptions);
6470
$this->testCase->fail('An expected exception was not thrown');
6571
} catch (InvalidArgumentException $e) {
66-
$this->testCase->assertContains($exceptionMessage, $e->getMessage());
72+
$this->testCase->assertStringContainsString($exceptionMessage, $e->getMessage());
6773
} catch (RouterInvalidArgumentException $e) {
68-
$this->testCase->assertContains($exceptionMessage, $e->getMessage());
74+
$this->testCase->assertStringContainsString($exceptionMessage, $e->getMessage());
6975
}
7076
}
7177

0 commit comments

Comments
 (0)