Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Remove zend-version dev dependency #10

Merged
merged 1 commit into from
Nov 18, 2015
Merged

Remove zend-version dev dependency #10

merged 1 commit into from
Nov 18, 2015

Conversation

Maks3w
Copy link
Member

@Maks3w Maks3w commented Oct 21, 2015

No description provided.

@stof
Copy link
Contributor

stof commented Nov 16, 2015

👍

@stof stof mentioned this pull request Nov 16, 2015
require_once $filePath;
$reflectionFile = new FileReflection($filePath);
$this->assertEquals(get_class($reflectionFile), 'Zend\Code\Reflection\FileReflection');
}
Copy link
Member

Choose a reason for hiding this comment

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

I'd argue we still need the test, but should use a different class for it, perhaps just another class in the component.

Copy link
Member Author

Choose a reason for hiding this comment

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

I've found many zend-code tests do this kind of assertions about if the constructor don't throw any exception.

However rests of tests do the same but specific to the intended behavior. So I did remove this because its covered by the rest of tests.

Copy link
Contributor

Choose a reason for hiding this comment

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

yeah. Testing that new ... gives you an object of this class is either testing PHP (useless) or testing that there is no exception when passing a file (already covered by other tests as they would break)

@weierophinney weierophinney added this to the 2.6.0 milestone Nov 18, 2015
@weierophinney weierophinney self-assigned this Nov 18, 2015
@weierophinney weierophinney modified the milestones: 2.5.3, 2.6.0 Nov 18, 2015
@weierophinney weierophinney merged commit 2684541 into zendframework:master Nov 18, 2015
weierophinney added a commit that referenced this pull request Nov 18, 2015
weierophinney added a commit that referenced this pull request Nov 18, 2015
weierophinney added a commit that referenced this pull request Nov 18, 2015
weierophinney added a commit that referenced this pull request Nov 18, 2015
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.

3 participants