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

[ZF2-176] Replace all assertType assertions. #836

Merged
merged 3 commits into from
Feb 25, 2012
Merged

[ZF2-176] Replace all assertType assertions. #836

merged 3 commits into from
Feb 25, 2012

Conversation

Maks3w
Copy link
Member

@Maks3w Maks3w commented Feb 25, 2012

I replaced every assertType ocurrence in the code with assertInstanceOf or assertInternalType depending if was asserting a class or a PHP's primitive type

This change is according to the PHPUnit's API changes where assertType was declared as deprecated in PHPUnit 3.5 and finally was removed in 3.6

@padraic
Copy link
Member

padraic commented Feb 25, 2012

Request reviewed - except for PHPUnit method renames for 3.6 there are no other material changes.

@padraic
Copy link
Member

padraic commented Feb 25, 2012

Request pending confirmation that we will upgrade test dependency to PHPUnit 3.6 ;). Bear with us.

@Maks3w
Copy link
Member Author

Maks3w commented Feb 25, 2012

Upgrade to 3.6 is not required. This changes are backward compatible with the oficial PHPUnit version for ZF2 (3.5.x)

@padraic
Copy link
Member

padraic commented Feb 25, 2012

Understood, however we have other test incompatibilities and I'm going through the whole suite so we're waiting for the 3.6 confirm before merging in any bulk changes.

padraic pushed a commit that referenced this pull request Feb 25, 2012
[ZF2-176] Replace all assertType assertions.
@padraic padraic merged commit f1a4cbf into zendframework:master Feb 25, 2012
gianarb pushed a commit to zendframework/zend-test that referenced this pull request May 15, 2015
…/ZF2-176

[ZF2-176] Replace all assertType assertions.
gianarb pushed a commit to zendframework/zend-paginator that referenced this pull request May 15, 2015
…/ZF2-176

[ZF2-176] Replace all assertType assertions.
gianarb pushed a commit to zendframework/zend-http that referenced this pull request May 15, 2015
…/ZF2-176

[ZF2-176] Replace all assertType assertions.
gianarb pushed a commit to zendframework/zend-feed that referenced this pull request May 15, 2015
…/ZF2-176

[ZF2-176] Replace all assertType assertions.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants