Skip to content

Commit 3874f6b

Browse files
authored
Merge pull request #12 from memio/sf-5
Symfony 5, phpspec 6 and PHP 7.2
2 parents edddc26 + 462a5d6 commit 3874f6b

18 files changed

+47
-25
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
/vendor
44
/phpunit.xml
55
/.couscous
6+
/.php_cs.cache
7+
/.phpunit.result.cache
68

79
# Temporary files
810
/.php_cs.cache

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ cache:
77
- $HOME/.composer/cache
88

99
php:
10-
- 7.1
1110
- 7.2
11+
- 7.3
1212

1313
before_script:
1414
- composer selfupdate

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# CHANGELOG
22

3+
## 0.10.0: Symfony 5, phpspec 6, PHP 7.2
4+
5+
Upgraded requirements:
6+
7+
* Symfony 5
8+
* phpspec 6.1
9+
* PHP 7.2
10+
311
## 0.9.0: phpspec 5
412

513
Upgraded phpspec to v5.0@rc, meaning:

composer.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,19 @@
2525
}
2626
},
2727
"require": {
28-
"gnugat/redaktilo": "^1.7",
28+
"gnugat/redaktilo": "^2.0",
2929
"memio/memio": "^2.0",
3030
"memio/linter": "^2.0",
3131
"memio/validator": "^2.0",
3232
"memio/model": "^2.0.1",
3333
"memio/pretty-printer": "^2.0",
3434
"memio/twig-template-engine": "^2.0.1",
35-
"php": "^7.1",
36-
"phpspec/phpspec": "^5.0@rc",
37-
"symfony/event-dispatcher": "^3.4 || ^4.0"
35+
"php": "^7.2",
36+
"phpspec/phpspec": "^6.1",
37+
"symfony/event-dispatcher": "^5.0"
3838
},
3939
"require-dev": {
40-
"friendsofphp/php-cs-fixer": "^2.12",
41-
"phpunit/phpunit": "^7.2"
40+
"friendsofphp/php-cs-fixer": "^2.16",
41+
"phpunit/phpunit": "^8.4"
4242
}
4343
}

spec/Memio/SpecGen/CodeEditor/InsertPropertiesHandlerSpec.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313

1414
use Gnugat\Redaktilo\File;
1515
use Memio\Model\Property;
16-
use Memio\SpecGen\CodeEditor\InsertPropertyHandler;
1716
use Memio\SpecGen\CodeEditor\InsertProperties;
1817
use Memio\SpecGen\CodeEditor\InsertProperty;
18+
use Memio\SpecGen\CodeEditor\InsertPropertyHandler;
1919
use Memio\SpecGen\CommandBus\CommandHandler;
2020
use PhpSpec\ObjectBehavior;
2121
use Prophecy\Argument;

spec/Memio/SpecGen/CodeEditor/InsertUseStatementsHandlerSpec.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
use Gnugat\Redaktilo\Editor;
1515
use Gnugat\Redaktilo\File;
1616
use Memio\Model\FullyQualifiedName;
17+
use Memio\SpecGen\CodeEditor\InsertUseStatement;
1718
use Memio\SpecGen\CodeEditor\InsertUseStatementHandler;
1819
use Memio\SpecGen\CodeEditor\InsertUseStatements;
19-
use Memio\SpecGen\CodeEditor\InsertUseStatement;
2020
use Memio\SpecGen\CommandBus\CommandHandler;
2121
use PhpSpec\ObjectBehavior;
2222
use Prophecy\Argument;

spec/Memio/SpecGen/GenerateConstructor/GenerateConstructorHandlerSpec.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111

1212
namespace spec\Memio\SpecGen\GenerateConstructor;
1313

14+
use Memio\SpecGen\CommandBus\CommandHandler;
1415
use Memio\SpecGen\GenerateConstructor\GenerateConstructor;
1516
use Memio\SpecGen\GenerateConstructor\GeneratedConstructor;
1617
use Memio\SpecGen\Marshaller\VariableArgumentMarshaller;
17-
use Memio\SpecGen\CommandBus\CommandHandler;
1818
use PhpSpec\ObjectBehavior;
1919
use Prophecy\Argument;
2020
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
@@ -49,7 +49,10 @@ function it_builds_a_memio_method_model(
4949

5050
$variableArgumentMarshaller->marshal($variableArguments)->willReturn([]);
5151
$generatedConstructor = Argument::type(GeneratedConstructor::class);
52-
$eventDispatcher->dispatch(GeneratedConstructor::EVENT_NAME, $generatedConstructor)->shouldBeCalled();
52+
$eventDispatcher->dispatch(
53+
$generatedConstructor,
54+
GeneratedConstructor::EVENT_NAME
55+
)->shouldBeCalled();
5356

5457
$this->handle($command);
5558
}

spec/Memio/SpecGen/GenerateConstructor/InsertGeneratedConstructorListenerSpec.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
namespace spec\Memio\SpecGen\GenerateConstructor;
1313

14+
use Gnugat\Redaktilo\File;
1415
use Memio\Model\File as FileModel;
1516
use Memio\Model\FullyQualifiedName as FullyQualifiedNameModel;
1617
use Memio\Model\Method as MethodModel;
@@ -21,7 +22,6 @@
2122
use Memio\SpecGen\CodeEditor\InsertProperties;
2223
use Memio\SpecGen\CodeEditor\InsertUseStatements;
2324
use Memio\SpecGen\GenerateConstructor\GeneratedConstructor;
24-
use Gnugat\Redaktilo\File;
2525
use PhpSpec\ObjectBehavior;
2626
use Prophecy\Argument;
2727

spec/Memio/SpecGen/GenerateMethod/GenerateMethodHandlerSpec.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
namespace spec\Memio\SpecGen\GenerateMethod;
1313

1414
use Memio\SpecGen\CommandBus\CommandHandler;
15-
use Memio\SpecGen\GenerateMethod\GenerateMethod;
1615
use Memio\SpecGen\GenerateMethod\GeneratedMethod;
16+
use Memio\SpecGen\GenerateMethod\GenerateMethod;
1717
use Memio\SpecGen\Marshaller\VariableArgumentMarshaller;
1818
use PhpSpec\ObjectBehavior;
1919
use Prophecy\Argument;
@@ -49,7 +49,10 @@ function it_builds_a_memio_method_model(
4949

5050
$variableArgumentMarshaller->marshal($variableArguments)->willReturn([]);
5151
$generatedMethod = Argument::type(GeneratedMethod::class);
52-
$eventDispatcher->dispatch(GeneratedMethod::EVENT_NAME, $generatedMethod)->shouldBeCalled();
52+
$eventDispatcher->dispatch(
53+
$generatedMethod,
54+
GeneratedMethod::EVENT_NAME
55+
)->shouldBeCalled();
5356

5457
$this->handle($command);
5558
}

spec/Memio/SpecGen/GenerateMethod/InsertGeneratedMethodListenerSpec.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
namespace spec\Memio\SpecGen\GenerateMethod;
1313

14+
use Gnugat\Redaktilo\File;
1415
use Memio\Model\File as FileModel;
1516
use Memio\Model\FullyQualifiedName as FullyQualifiedNameModel;
1617
use Memio\Model\Method as MethodModel;
@@ -19,7 +20,6 @@
1920
use Memio\SpecGen\CodeEditor\InsertMethod;
2021
use Memio\SpecGen\CodeEditor\InsertUseStatements;
2122
use Memio\SpecGen\GenerateMethod\GeneratedMethod;
22-
use Gnugat\Redaktilo\File;
2323
use PhpSpec\ObjectBehavior;
2424
use Prophecy\Argument;
2525

0 commit comments

Comments
 (0)