Permalink
Browse files

Fixed @expectedException definitions to reference absolute exception …

…paths
  • Loading branch information...
webmozart committed Jan 5, 2013
1 parent 6808a0d commit 5d5e0f44368baa53b51847eb521b18f93c6a4ba4
@@ -82,7 +82,7 @@ public function testGetValuesForChoices()
}
/**
- * @expectedException Symfony\Component\Form\Exception\FormException
+ * @expectedException \Symfony\Component\Form\Exception\FormException
*/
public function testLoadChoiceListShouldReturnChoiceList()
{
@@ -193,7 +193,7 @@ public function testInitArrayUsesToString()
}
/**
- * @expectedException Symfony\Component\Form\Exception\FormException
+ * @expectedException \Symfony\Component\Form\Exception\FormException
*/
public function testInitArrayThrowsExceptionIfToStringNotFound()
{
@@ -68,7 +68,7 @@ public function testTransform_empty()
}
/**
- * @expectedException Symfony\Component\Form\Exception\UnexpectedTypeException
+ * @expectedException \Symfony\Component\Form\Exception\UnexpectedTypeException
*/
public function testTransformRequiresArray()
{
@@ -123,7 +123,7 @@ public function testReverseTransform_completelyNull()
}
/**
- * @expectedException Symfony\Component\Form\Exception\TransformationFailedException
+ * @expectedException \Symfony\Component\Form\Exception\TransformationFailedException
*/
public function testReverseTransform_partiallyNull()
{
@@ -140,7 +140,7 @@ public function testReverseTransform_partiallyNull()
}
/**
- * @expectedException Symfony\Component\Form\Exception\UnexpectedTypeException
+ * @expectedException \Symfony\Component\Form\Exception\UnexpectedTypeException
*/
public function testReverseTransformRequiresArray()
{
@@ -67,7 +67,7 @@ public function testReverseTransform($in, $out)
}
/**
- * @expectedException Symfony\Component\Form\Exception\UnexpectedTypeException
+ * @expectedException \Symfony\Component\Form\Exception\UnexpectedTypeException
*/
public function testReverseTransformExpectsScalar()
{
@@ -45,7 +45,7 @@ public function testTransformNull()
}
/**
- * @expectedException Symfony\Component\Form\Exception\UnexpectedTypeException
+ * @expectedException \Symfony\Component\Form\Exception\UnexpectedTypeException
*/
public function testTransformExpectsArray()
{
@@ -67,7 +67,7 @@ public function testReverseTransformNull()
}
/**
- * @expectedException Symfony\Component\Form\Exception\UnexpectedTypeException
+ * @expectedException \Symfony\Component\Form\Exception\UnexpectedTypeException
*/
public function testReverseTransformExpectsArray()
{
@@ -117,7 +117,7 @@ public function testTransform_differentTimezones()
}
/**
- * @expectedException Symfony\Component\Form\Exception\UnexpectedTypeException
+ * @expectedException \Symfony\Component\Form\Exception\UnexpectedTypeException
*/
public function testTransformRequiresDateTime()
{
@@ -191,7 +191,7 @@ public function testReverseTransform_completelyEmpty_subsetOfFields()
}
/**
- * @expectedException Symfony\Component\Form\Exception\TransformationFailedException
+ * @expectedException \Symfony\Component\Form\Exception\TransformationFailedException
*/
public function testReverseTransform_partiallyEmpty_year()
{
@@ -206,7 +206,7 @@ public function testReverseTransform_partiallyEmpty_year()
}
/**
- * @expectedException Symfony\Component\Form\Exception\TransformationFailedException
+ * @expectedException \Symfony\Component\Form\Exception\TransformationFailedException
*/
public function testReverseTransform_partiallyEmpty_month()
{
@@ -221,7 +221,7 @@ public function testReverseTransform_partiallyEmpty_month()
}
/**
- * @expectedException Symfony\Component\Form\Exception\TransformationFailedException
+ * @expectedException \Symfony\Component\Form\Exception\TransformationFailedException
*/
public function testReverseTransform_partiallyEmpty_day()
{
@@ -236,7 +236,7 @@ public function testReverseTransform_partiallyEmpty_day()
}
/**
- * @expectedException Symfony\Component\Form\Exception\TransformationFailedException
+ * @expectedException \Symfony\Component\Form\Exception\TransformationFailedException
*/
public function testReverseTransform_partiallyEmpty_hour()
{
@@ -251,7 +251,7 @@ public function testReverseTransform_partiallyEmpty_hour()
}
/**
- * @expectedException Symfony\Component\Form\Exception\TransformationFailedException
+ * @expectedException \Symfony\Component\Form\Exception\TransformationFailedException
*/
public function testReverseTransform_partiallyEmpty_minute()
{
@@ -266,7 +266,7 @@ public function testReverseTransform_partiallyEmpty_minute()
}
/**
- * @expectedException Symfony\Component\Form\Exception\TransformationFailedException
+ * @expectedException \Symfony\Component\Form\Exception\TransformationFailedException
*/
public function testReverseTransform_partiallyEmpty_second()
{
@@ -326,7 +326,7 @@ public function testReverseTransformToDifferentTimezone()
}
/**
- * @expectedException Symfony\Component\Form\Exception\UnexpectedTypeException
+ * @expectedException \Symfony\Component\Form\Exception\UnexpectedTypeException
*/
public function testReverseTransformRequiresArray()
{
@@ -335,7 +335,7 @@ public function testReverseTransformRequiresArray()
}
/**
- * @expectedException Symfony\Component\Form\Exception\TransformationFailedException
+ * @expectedException \Symfony\Component\Form\Exception\TransformationFailedException
*/
public function testReverseTransformWithNegativeYear()
{
@@ -351,7 +351,7 @@ public function testReverseTransformWithNegativeYear()
}
/**
- * @expectedException Symfony\Component\Form\Exception\TransformationFailedException
+ * @expectedException \Symfony\Component\Form\Exception\TransformationFailedException
*/
public function testReverseTransformWithNegativeMonth()
{
@@ -367,7 +367,7 @@ public function testReverseTransformWithNegativeMonth()
}
/**
- * @expectedException Symfony\Component\Form\Exception\TransformationFailedException
+ * @expectedException \Symfony\Component\Form\Exception\TransformationFailedException
*/
public function testReverseTransformWithNegativeDay()
{
@@ -383,7 +383,7 @@ public function testReverseTransformWithNegativeDay()
}
/**
- * @expectedException Symfony\Component\Form\Exception\TransformationFailedException
+ * @expectedException \Symfony\Component\Form\Exception\TransformationFailedException
*/
public function testReverseTransformWithNegativeHour()
{
@@ -399,7 +399,7 @@ public function testReverseTransformWithNegativeHour()
}
/**
- * @expectedException Symfony\Component\Form\Exception\TransformationFailedException
+ * @expectedException \Symfony\Component\Form\Exception\TransformationFailedException
*/
public function testReverseTransformWithNegativeMinute()
{
@@ -415,7 +415,7 @@ public function testReverseTransformWithNegativeMinute()
}
/**
- * @expectedException Symfony\Component\Form\Exception\TransformationFailedException
+ * @expectedException \Symfony\Component\Form\Exception\TransformationFailedException
*/
public function testReverseTransformWithNegativeSecond()
{
@@ -431,7 +431,7 @@ public function testReverseTransformWithNegativeSecond()
}
/**
- * @expectedException Symfony\Component\Form\Exception\TransformationFailedException
+ * @expectedException \Symfony\Component\Form\Exception\TransformationFailedException
*/
public function testReverseTransformWithInvalidMonth()
{
@@ -447,7 +447,7 @@ public function testReverseTransformWithInvalidMonth()
}
/**
- * @expectedException Symfony\Component\Form\Exception\TransformationFailedException
+ * @expectedException \Symfony\Component\Form\Exception\TransformationFailedException
*/
public function testReverseTransformWithInvalidDay()
{
@@ -463,7 +463,7 @@ public function testReverseTransformWithInvalidDay()
}
/**
- * @expectedException Symfony\Component\Form\Exception\TransformationFailedException
+ * @expectedException \Symfony\Component\Form\Exception\TransformationFailedException
*/
public function testReverseTransformWithStringDay()
{
@@ -479,7 +479,7 @@ public function testReverseTransformWithStringDay()
}
/**
- * @expectedException Symfony\Component\Form\Exception\TransformationFailedException
+ * @expectedException \Symfony\Component\Form\Exception\TransformationFailedException
*/
public function testReverseTransformWithStringMonth()
{
@@ -495,7 +495,7 @@ public function testReverseTransformWithStringMonth()
}
/**
- * @expectedException Symfony\Component\Form\Exception\TransformationFailedException
+ * @expectedException \Symfony\Component\Form\Exception\TransformationFailedException
*/
public function testReverseTransformWithStringYear()
{
@@ -79,7 +79,7 @@ public function testTransform($fromTz, $toTz, $from, $to)
}
/**
- * @expectedException Symfony\Component\Form\Exception\UnexpectedTypeException
+ * @expectedException \Symfony\Component\Form\Exception\UnexpectedTypeException
*/
public function testTransformRequiresValidDateTime()
{
@@ -102,7 +102,7 @@ public function testReverseTransform($toTz, $fromTz, $to, $from)
}
/**
- * @expectedException Symfony\Component\Form\Exception\UnexpectedTypeException
+ * @expectedException \Symfony\Component\Form\Exception\UnexpectedTypeException
*/
public function testReverseTransformRequiresString()
{
@@ -111,7 +111,7 @@ public function testReverseTransformRequiresString()
}
/**
- * @expectedException Symfony\Component\Form\Exception\TransformationFailedException
+ * @expectedException \Symfony\Component\Form\Exception\TransformationFailedException
*/
public function testReverseTransformWithNonExistingDate()
{
@@ -50,7 +50,7 @@ public function testReverseTransformWithGrouping()
}
/**
- * @expectedException Symfony\Component\Form\Exception\UnexpectedTypeException
+ * @expectedException \Symfony\Component\Form\Exception\UnexpectedTypeException
*/
public function testReverseTransformExpectsString()
{
@@ -60,7 +60,7 @@ public function testReverseTransformExpectsString()
}
/**
- * @expectedException Symfony\Component\Form\Exception\TransformationFailedException
+ * @expectedException \Symfony\Component\Form\Exception\TransformationFailedException
*/
public function testReverseTransformExpectsValidNumber()
{
@@ -70,7 +70,7 @@ public function testReverseTransformExpectsValidNumber()
}
/**
- * @expectedException Symfony\Component\Form\Exception\TransformationFailedException
+ * @expectedException \Symfony\Component\Form\Exception\TransformationFailedException
*/
public function testReverseTransformDisallowsNaN()
{
@@ -80,7 +80,7 @@ public function testReverseTransformDisallowsNaN()
}
/**
- * @expectedException Symfony\Component\Form\Exception\TransformationFailedException
+ * @expectedException \Symfony\Component\Form\Exception\TransformationFailedException
*/
public function testReverseTransformDisallowsNaN2()
{
@@ -90,7 +90,7 @@ public function testReverseTransformDisallowsNaN2()
}
/**
- * @expectedException Symfony\Component\Form\Exception\TransformationFailedException
+ * @expectedException \Symfony\Component\Form\Exception\TransformationFailedException
*/
public function testReverseTransformDisallowsInfinity()
{
@@ -100,7 +100,7 @@ public function testReverseTransformDisallowsInfinity()
}
/**
- * @expectedException Symfony\Component\Form\Exception\TransformationFailedException
+ * @expectedException \Symfony\Component\Form\Exception\TransformationFailedException
*/
public function testReverseTransformDisallowsNegativeInfinity()
{
@@ -83,7 +83,7 @@ public function testReverseTransform_completelyNull()
}
/**
- * @expectedException Symfony\Component\Form\Exception\TransformationFailedException
+ * @expectedException \Symfony\Component\Form\Exception\TransformationFailedException
*/
public function testReverseTransform_partiallyNull()
{
@@ -97,7 +97,7 @@ public function testReverseTransform_partiallyNull()
}
/**
- * @expectedException Symfony\Component\Form\Exception\TransformationFailedException
+ * @expectedException \Symfony\Component\Form\Exception\TransformationFailedException
*/
public function testReverseTransform_differences()
{
@@ -111,7 +111,7 @@ public function testReverseTransform_differences()
}
/**
- * @expectedException Symfony\Component\Form\Exception\UnexpectedTypeException
+ * @expectedException \Symfony\Component\Form\Exception\UnexpectedTypeException
*/
public function testReverseTransformRequiresArray()
{
@@ -196,7 +196,7 @@ public function testDoNothingIfNotAllowDelete($allowAdd)
/**
* @dataProvider getBooleanMatrix2
- * @expectedException Symfony\Component\Form\Exception\UnexpectedTypeException
+ * @expectedException \Symfony\Component\Form\Exception\UnexpectedTypeException
*/
public function testRequireArrayOrTraversable($allowAdd, $allowDelete)
{
@@ -79,7 +79,7 @@ public function testChoicesOptionExpectsArray()
}
/**
- * @expectedException Symfony\Component\OptionsResolver\Exception\InvalidOptionsException
+ * @expectedException \Symfony\Component\OptionsResolver\Exception\InvalidOptionsException
*/
public function testChoiceListOptionExpectsChoiceListInterface()
{
@@ -89,7 +89,7 @@ public function testChoiceListOptionExpectsChoiceListInterface()
}
/**
- * expectedException Symfony\Component\Form\Exception\FormException
+ * expectedException \Symfony\Component\Form\Exception\FormException
*/
public function testEitherChoiceListOrChoicesMustBeSet()
{
Oops, something went wrong.

0 comments on commit 5d5e0f4

Please sign in to comment.