Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#869 cleanups and hardening of tests around date-related types #902

Conversation

Ocramius
Copy link
Member

@Ocramius Ocramius commented Sep 5, 2015

See #869

@doctrinebot
Copy link

Hello,

thank you for creating this pull request. I have automatically opened an issue
on our Jira Bug Tracker for you. See the issue link:

http://www.doctrine-project.org/jira/browse/DBAL-1294

We use Jira to track the state of pull requests and the versions they got
included in.

@Ocramius Ocramius assigned billschaller and unassigned deeky666 Sep 5, 2015
$actualType,
$toType,
implode(', ', $possibleTypes)
));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes vastly more sense than the nonsense I wrote.

@billschaller
Copy link
Member

The recently added DateTimeInterval type needs the same treatment. I can take care of that if needed. This is ready to merge.


class DateTest extends \Doctrine\Tests\DbalTestCase
class DateTestCase extends BaseDateTypeTestCase
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't matter if nobody extends this (probably nobody will) but the class name doesn't match the filename anymore.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Urgh, silly IDE did silly refactoring. Fixing.

$this->_platform = new MockPlatform();
$this->_type = Type::getType('dateinterval');
$this->platform = new MockPlatform();
$this->type = Type::getType('dateinterval');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assert $this->type is instance of Type

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@billschaller
Copy link
Member

Big 👍 Thanks!

billschaller pushed a commit that referenced this pull request Sep 6, 2015
…ersion-excessive-smartness

Hotfix - #869 - fixes for type conversion logic
@billschaller billschaller merged commit 2161fff into doctrine:master Sep 6, 2015
@Ocramius Ocramius deleted the hotfix/#869-fixes-for-type-conversion-excessive-smartness branch September 6, 2015 02:13
@Ocramius Ocramius changed the title Hotfix - #869 - fixes for type conversion logic #869 cleanups and hardening of tests around date-related types Jul 22, 2017
@Ocramius Ocramius added this to the 2.6 milestone Jul 22, 2017
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants