-
Notifications
You must be signed in to change notification settings - Fork 119
Conversation
#SymfonyConHackday2017
#SymfonyConHackday2017
#SymfonyConHackday2017
#SymfonyConHackday2017
#SymfonyConHackday2017
#SymfonyConHackday2017
the unit tests need to be fixed (it's not related to this pr) |
.travis.yml
Outdated
@@ -12,6 +12,11 @@ php: | |||
- 7.1 | |||
|
|||
matrix: | |||
exclude: | |||
- php: 5.6 | |||
env: DEPENDENCIES='beta' SYMFONY_VERSION='4.0.*' STABLE=beta |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can remove beta, Symfony 4 is stable now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@garak DONE
I'm afraid this won't work until you add explicit visibility of services |
@garak You can see tests are green on SF3.2 and PHP 7.1, but not with 3.3. And not with PHP 7.0 I'm trying to search why we have these errors, but right now, I don't know.. 🤔 But the tests were already broken on previous commits.. |
I see all tests failing. But, again, you need to fix that service visibility. Otherwise, even if you fix tests, Symfony 4 won't work |
Yes the service id |
I'm afraid you need to make the listener public, too |
|
||
class PrepareListenerTest extends \PHPUnit_Framework_TestCase | ||
class PrepareListenerTest extends TestCase |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you want to switch to newer phpunit version, you must be sure to avoid deprecated functions. E.g., $this->getMock() has been removed
Any news on this PR? |
Any news? |
@@ -17,7 +17,7 @@ public function testGetForceCaseInsensitivity() | |||
$pgPlatform = $this->getMockBuilder('Doctrine\DBAL\Platforms\PostgreSqlPlatform')->getMock(); | |||
$myPlatform = $this->getMockBuilder('Doctrine\DBAL\Platforms\MySqlPlatform')->getMock(); | |||
|
|||
$connection = $this->getMock( | |||
$connection = $this->getMockClass( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe getMockBuilder()
? And then getMock()
on the result.
'', | ||
false | ||
); | ||
$connection = $this->getMockBuilder('Doctrine\DBAL\Connection')->getMock(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You also need disableOriginalConstructor()
here
Any news? |
Any news? :) |
Still waiting for tests to pass. Until @bodorszilard doesn't make proper changes, I'm afraid that this cannot be merged |
I have tried to fix some tests, but some tests failed and I don't know why and I'm not a specialist of DateRange with different Timezone 😜
|
I'm also waiting :) |
Any news ? Can't use this bundle in sf3.4 without forking it, just because a service isn't public. |
Someone ? |
# Conflicts: # Tests/Event/Listenener/PrepareListenerTest.php # composer.json
@garak What did you think? We can merge PR maybe |
@Spike31 it' OK for me |
Thanks for all your help @bodorszilard and the others of course :) |
#SymfonyConHackday2017