8000 [OptionsResolver] support array of instance validation by EVODelavega · Pull Request #17032 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[OptionsResolver] support array of instance validation #17032

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

Closed
wants to merge 22 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix dataprovider annotation -> rebase conflict
  • Loading branch information
EVODelavega committed Dec 21, 2015
commit c03ccdf8a6c2f1cfa235025dc0c825beae78fb6e
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,6 @@ public function testResolveFailsIfInvalidTypedArray()
}

/**
* @dataProvider provideInvalidTypes
* @expectedException \Symfony\Component\OptionsResolver\Exception\InvalidOptionsException
* @expectedExceptionMessage The option "foo" with value array is expected to be of type "int[][]", but is of type "double[][]".
*/
Expand Down Expand Up @@ -547,8 +546,7 @@ public function testResolveFailsIfTypedArrayContainsInvalidTypes()
}

/**
* @expectedException \Symfony\Component\OptionsResolver\Exception\InvalidOptionsException
* @expectedExceptionMessage The option "foo" with value 42 is expected to be of type "string", but is of type "integer".
* @dataProvider provideInvalidTypes
*/
public function testResolveFailsIfInvalidType($actualType, $allowedType, $exceptionMessage)
{
Expand Down
0