Skip to content
Browse files

Removed underscores from test method names to be consistent with othe…

…r components.

It is more common to use fully camel-cased names for test methods. Only some of the test methods are called with underscore notation. To avoid confusion it is better to be consistent.
  • Loading branch information...
1 parent ef499c4 commit 060cfedeb763812f084f99f34ce0e688376d7939 @jakzal jakzal committed
View
8 Tests/Extension/Core/DataTransformer/ArrayToPartsTransformerTest.php
@@ -57,7 +57,7 @@ public function testTransform()
$this->assertSame($output, $this->transformer->transform($input));
}
- public function testTransform_empty()
+ public function testTransformEmpty()
{
$output = array(
'first' => null,
@@ -102,7 +102,7 @@ public function testReverseTransform()
$this->assertSame($output, $this->transformer->reverseTransform($input));
}
- public function testReverseTransform_completelyEmpty()
+ public function testReverseTransformCompletelyEmpty()
{
$input = array(
'first' => '',
@@ -112,7 +112,7 @@ public function testReverseTransform_completelyEmpty()
$this->assertNull($this->transformer->reverseTransform($input));
}
- public function testReverseTransform_completelyNull()
+ public function testReverseTransformCompletelyNull()
{
$input = array(
'first' => null,
@@ -125,7 +125,7 @@ public function testReverseTransform_completelyNull()
/**
* @expectedException Symfony\Component\Form\Exception\TransformationFailedException
*/
- public function testReverseTransform_partiallyNull()
+ public function testReverseTransformPartiallyNull()
{
$input = array(
'first' => array(
View
30 Tests/Extension/Core/DataTransformer/DateTimeToArrayTransformerTest.php
@@ -33,7 +33,7 @@ public function testTransform()
$this->assertSame($output, $transformer->transform($input));
}
- public function testTransform_empty()
+ public function testTransformEmpty()
{
$transformer = new DateTimeToArrayTransformer();
@@ -49,7 +49,7 @@ public function testTransform_empty()
$this->assertSame($output, $transformer->transform(null));
}
- public function testTransform_empty_withFields()
+ public function testTransformEmptyWithFields()
{
$transformer = new DateTimeToArrayTransformer(null, null, array('year', 'minute', 'second'));
@@ -62,7 +62,7 @@ public function testTransform_empty_withFields()
$this->assertSame($output, $transformer->transform(null));
}
- public function testTransform_withFields()
+ public function testTransformWithFields()
{
$transformer = new DateTimeToArrayTransformer('UTC', 'UTC', array('year', 'month', 'minute', 'second'));
@@ -78,7 +78,7 @@ public function testTransform_withFields()
$this->assertSame($output, $transformer->transform($input));
}
- public function testTransform_withPadding()
+ public function testTransformWithPadding()
{
$transformer = new DateTimeToArrayTransformer('UTC', 'UTC', null, true);
@@ -96,7 +96,7 @@ public function testTransform_withPadding()
$this->assertSame($output, $transformer->transform($input));
}
- public function testTransform_differentTimezones()
+ public function testTransformDifferentTimezones()
{
$transformer = new DateTimeToArrayTransformer('America/New_York', 'Asia/Hong_Kong');
@@ -161,7 +161,7 @@ public function testReverseTransformWithSomeZero()
$this->assertDateTimeEquals($output, $transformer->reverseTransform($input));
}
- public function testReverseTransform_completelyEmpty()
+ public function testReverseTransformCompletelyEmpty()
{
$transformer = new DateTimeToArrayTransformer();
@@ -177,7 +177,7 @@ public function testReverseTransform_completelyEmpty()
$this->assertNull($transformer->reverseTransform($input));
}
- public function testReverseTransform_completelyEmpty_subsetOfFields()
+ public function testReverseTransformCompletelyEmptySubsetOfFields()
{
$transformer = new DateTimeToArrayTransformer(null, null, array('year', 'month', 'day'));
@@ -193,7 +193,7 @@ public function testReverseTransform_completelyEmpty_subsetOfFields()
/**
* @expectedException Symfony\Component\Form\Exception\TransformationFailedException
*/
- public function testReverseTransform_partiallyEmpty_year()
+ public function testReverseTransformPartiallyEmptyYear()
{
$transformer = new DateTimeToArrayTransformer();
$transformer->reverseTransform(array(
@@ -208,7 +208,7 @@ public function testReverseTransform_partiallyEmpty_year()
/**
* @expectedException Symfony\Component\Form\Exception\TransformationFailedException
*/
- public function testReverseTransform_partiallyEmpty_month()
+ public function testReverseTransformPartiallyEmptyMonth()
{
$transformer = new DateTimeToArrayTransformer();
$transformer->reverseTransform(array(
@@ -223,7 +223,7 @@ public function testReverseTransform_partiallyEmpty_month()
/**
* @expectedException Symfony\Component\Form\Exception\TransformationFailedException
*/
- public function testReverseTransform_partiallyEmpty_day()
+ public function testReverseTransformPartiallyEmptyDay()
{
$transformer = new DateTimeToArrayTransformer();
$transformer->reverseTransform(array(
@@ -238,7 +238,7 @@ public function testReverseTransform_partiallyEmpty_day()
/**
* @expectedException Symfony\Component\Form\Exception\TransformationFailedException
*/
- public function testReverseTransform_partiallyEmpty_hour()
+ public function testReverseTransformPartiallyEmptyHour()
{
$transformer = new DateTimeToArrayTransformer();
$transformer->reverseTransform(array(
@@ -253,7 +253,7 @@ public function testReverseTransform_partiallyEmpty_hour()
/**
* @expectedException Symfony\Component\Form\Exception\TransformationFailedException
*/
- public function testReverseTransform_partiallyEmpty_minute()
+ public function testReverseTransformPartiallyEmptyMinute()
{
$transformer = new DateTimeToArrayTransformer();
$transformer->reverseTransform(array(
@@ -268,7 +268,7 @@ public function testReverseTransform_partiallyEmpty_minute()
/**
* @expectedException Symfony\Component\Form\Exception\TransformationFailedException
*/
- public function testReverseTransform_partiallyEmpty_second()
+ public function testReverseTransformPartiallyEmptySecond()
{
$transformer = new DateTimeToArrayTransformer();
$transformer->reverseTransform(array(
@@ -280,14 +280,14 @@ public function testReverseTransform_partiallyEmpty_second()
));
}
- public function testReverseTransform_null()
+ public function testReverseTransformNull()
{
$transformer = new DateTimeToArrayTransformer();
$this->assertNull($transformer->reverseTransform(null));
}
- public function testReverseTransform_differentTimezones()
+ public function testReverseTransformDifferentTimezones()
{
$transformer = new DateTimeToArrayTransformer('America/New_York', 'Asia/Hong_Kong');
View
12 Tests/Extension/Core/DataTransformer/DateTimeToLocalizedStringTransformerTest.php
@@ -121,14 +121,14 @@ public function testTransformToDifferentLocale()
$this->assertEquals('Feb 3, 2010 4:05 AM', $transformer->transform($this->dateTime));
}
- public function testTransform_empty()
+ public function testTransformEmpty()
{
$transformer = new DateTimeToLocalizedStringTransformer();
$this->assertSame('', $transformer->transform(null));
}
- public function testTransform_differentTimezones()
+ public function testTransformWithDifferentTimezones()
{
$transformer = new DateTimeToLocalizedStringTransformer('America/New_York', 'Asia/Hong_Kong');
@@ -140,7 +140,7 @@ public function testTransform_differentTimezones()
$this->assertEquals($dateTime->format('d.m.Y H:i'), $transformer->transform($input));
}
- public function testTransform_differentPatterns()
+ public function testTransformWithDifferentPatterns()
{
$transformer = new DateTimeToLocalizedStringTransformer('UTC', 'UTC', \IntlDateFormatter::FULL, \IntlDateFormatter::FULL, \IntlDateFormatter::GREGORIAN, 'MM*yyyy*dd HH|mm|ss');
@@ -206,7 +206,7 @@ public function testReverseTransformFromDifferentLocale()
$this->assertDateTimeEquals($this->dateTimeWithoutSeconds, $transformer->reverseTransform('Feb 3, 2010 04:05 AM'));
}
- public function testReverseTransform_differentTimezones()
+ public function testReverseTransformWithDifferentTimezones()
{
$transformer = new DateTimeToLocalizedStringTransformer('America/New_York', 'Asia/Hong_Kong');
@@ -216,14 +216,14 @@ public function testReverseTransform_differentTimezones()
$this->assertDateTimeEquals($dateTime, $transformer->reverseTransform('03.02.2010 04:05'));
}
- public function testReverseTransform_differentPatterns()
+ public function testReverseTransformWithDifferentPatterns()
{
$transformer = new DateTimeToLocalizedStringTransformer('UTC', 'UTC', \IntlDateFormatter::FULL, \IntlDateFormatter::FULL, \IntlDateFormatter::GREGORIAN, 'MM*yyyy*dd HH|mm|ss');
$this->assertDateTimeEquals($this->dateTime, $transformer->reverseTransform('02*2010*03 04|05|06'));
}
- public function testReverseTransform_empty()
+ public function testReverseTransformEmpty()
{
$transformer = new DateTimeToLocalizedStringTransformer();
View
8 Tests/Extension/Core/DataTransformer/DateTimeToStringTransformerTest.php
@@ -79,14 +79,14 @@ public function testTransform($format, $output, $input)
$this->assertEquals($output, $transformer->transform($input));
}
- public function testTransform_empty()
+ public function testTransformEmpty()
{
$transformer = new DateTimeToStringTransformer();
$this->assertSame('', $transformer->transform(null));
}
- public function testTransform_differentTimezones()
+ public function testTransformWithDifferentTimezones()
{
$transformer = new DateTimeToStringTransformer('Asia/Hong_Kong', 'America/New_York', 'Y-m-d H:i:s');
@@ -134,14 +134,14 @@ public function testReverseTransformWithoutUsingPipe($format, $input, $output)
$this->assertDateTimeEquals($output, $reverseTransformer->reverseTransform($input));
}
- public function testReverseTransform_empty()
+ public function testReverseTransformEmpty()
{
$reverseTransformer = new DateTimeToStringTransformer();
$this->assertNull($reverseTransformer->reverseTransform(''));
}
- public function testReverseTransform_differentTimezones()
+ public function testReverseTransformWithDifferentTimezones()
{
$reverseTransformer = new DateTimeToStringTransformer('America/New_York', 'Asia/Hong_Kong', 'Y-m-d H:i:s');
View
8 Tests/Extension/Core/DataTransformer/DateTimeToTimestampTransformerTest.php
@@ -25,14 +25,14 @@ public function testTransform()
$this->assertEquals($output, $transformer->transform($input));
}
- public function testTransform_empty()
+ public function testTransformEmpty()
{
$transformer = new DateTimeToTimestampTransformer();
$this->assertNull($transformer->transform(null));
}
- public function testTransform_differentTimezones()
+ public function testTransformWithDifferentTimezones()
{
$transformer = new DateTimeToTimestampTransformer('Asia/Hong_Kong', 'America/New_York');
@@ -75,14 +75,14 @@ public function testReverseTransform()
$this->assertDateTimeEquals($output, $reverseTransformer->reverseTransform($input));
}
- public function testReverseTransform_empty()
+ public function testReverseTransformEmpty()
{
$reverseTransformer = new DateTimeToTimestampTransformer();
$this->assertNull($reverseTransformer->reverseTransform(null));
}
- public function testReverseTransform_differentTimezones()
+ public function testReverseTransformWithDifferentTimezones()
{
$reverseTransformer = new DateTimeToTimestampTransformer('Asia/Hong_Kong', 'America/New_York');
View
2 Tests/Extension/Core/DataTransformer/IntegerToLocalizedStringTransformerTest.php
@@ -32,7 +32,7 @@ public function testReverseTransform()
$this->assertEquals(12345, $transformer->reverseTransform('12345,912'));
}
- public function testReverseTransform_empty()
+ public function testReverseTransformEmpty()
{
$transformer = new IntegerToLocalizedStringTransformer();
View
4 Tests/Extension/Core/DataTransformer/MoneyToLocalizedStringTransformerTest.php
@@ -38,7 +38,7 @@ public function testTransformExpectsNumeric()
$transformer->transform('abcd');
}
- public function testTransform_empty()
+ public function testTransformEmpty()
{
$transformer = new MoneyToLocalizedStringTransformer();
@@ -61,7 +61,7 @@ public function testReverseTransformExpectsString()
$transformer->reverseTransform(12345);
}
- public function testReverseTransform_empty()
+ public function testReverseTransformEmpty()
{
$transformer = new MoneyToLocalizedStringTransformer();
View
8 Tests/Extension/Core/DataTransformer/NumberToLocalizedStringTransformerTest.php
@@ -32,7 +32,7 @@ public function testTransform()
$this->assertEquals('12345,912', $transformer->transform(12345.9123));
}
- public function testTransform_empty()
+ public function testTransformEmpty()
{
$transformer = new NumberToLocalizedStringTransformer();
@@ -75,7 +75,7 @@ public function testReverseTransform()
$this->assertEquals(12345.912, $transformer->reverseTransform('12345,912'));
}
- public function testReverseTransform_empty()
+ public function testReverseTransformEmpty()
{
$transformer = new NumberToLocalizedStringTransformer();
@@ -129,7 +129,7 @@ public function testDecimalSeparatorMayNotBeDotIfGroupingSeparatorIsDot()
/**
* @expectedException \Symfony\Component\Form\Exception\TransformationFailedException
*/
- public function testDecimalSeparatorMayNotBeDotIfGroupingSeparatorIsDot_noGroupSep()
+ public function testDecimalSeparatorMayNotBeDotIfGroupingSeparatorIsDotWithNoGroupSep()
{
if ($this->isLowerThanIcuVersion('4.7')) {
$this->markTestSkipped('Please upgrade ICU version to 4.7+');
@@ -185,7 +185,7 @@ public function testDecimalSeparatorMayNotBeCommaIfGroupingSeparatorIsComma()
/**
* @expectedException \Symfony\Component\Form\Exception\TransformationFailedException
*/
- public function testDecimalSeparatorMayNotBeCommaIfGroupingSeparatorIsComma_noGroupSep()
+ public function testDecimalSeparatorMayNotBeCommaIfGroupingSeparatorIsCommaWithNoGroupSep()
{
if ($this->isLowerThanIcuVersion('4.7')) {
$this->markTestSkipped('Please upgrade ICU version to 4.7+');
View
4 Tests/Extension/Core/DataTransformer/PercentToLocalizedStringTransformerTest.php
@@ -32,7 +32,7 @@ public function testTransform()
$this->assertEquals('200', $transformer->transform(2));
}
- public function testTransform_empty()
+ public function testTransformEmpty()
{
$transformer = new PercentToLocalizedStringTransformer();
@@ -66,7 +66,7 @@ public function testReverseTransform()
$this->assertEquals(2, $transformer->reverseTransform('200'));
}
- public function testReverseTransform_empty()
+ public function testReverseTransformEmpty()
{
$transformer = new PercentToLocalizedStringTransformer();
View
10 Tests/Extension/Core/DataTransformer/ValueToDuplicatesTransformerTest.php
@@ -38,7 +38,7 @@ public function testTransform()
$this->assertSame($output, $this->transformer->transform('Foo'));
}
- public function testTransform_empty()
+ public function testTransformEmpty()
{
$output = array(
'a' => null,
@@ -60,7 +60,7 @@ public function testReverseTransform()
$this->assertSame('Foo', $this->transformer->reverseTransform($input));
}
- public function testReverseTransform_completelyEmpty()
+ public function testReverseTransformCompletelyEmpty()
{
$input = array(
'a' => '',
@@ -71,7 +71,7 @@ public function testReverseTransform_completelyEmpty()
$this->assertNull($this->transformer->reverseTransform($input));
}
- public function testReverseTransform_completelyNull()
+ public function testReverseTransformCompletelyNull()
{
$input = array(
'a' => null,
@@ -85,7 +85,7 @@ public function testReverseTransform_completelyNull()
/**
* @expectedException Symfony\Component\Form\Exception\TransformationFailedException
*/
- public function testReverseTransform_partiallyNull()
+ public function testReverseTransformPartiallyNull()
{
$input = array(
'a' => 'Foo',
@@ -99,7 +99,7 @@ public function testReverseTransform_partiallyNull()
/**
* @expectedException Symfony\Component\Form\Exception\TransformationFailedException
*/
- public function testReverseTransform_differences()
+ public function testReverseTransformDifferences()
{
$input = array(
'a' => 'Foo',
View
22 Tests/Extension/Core/Type/DateTimeTypeTest.php
@@ -15,7 +15,7 @@
class DateTimeTypeTest extends LocalizedTestCase
{
- public function testSubmit_dateTime()
+ public function testSubmitDateTime()
{
$form = $this->factory->create('datetime', null, array(
'model_timezone' => 'UTC',
@@ -42,7 +42,7 @@ public function testSubmit_dateTime()
$this->assertDateTimeEquals($dateTime, $form->getData());
}
- public function testSubmit_string()
+ public function testSubmitString()
{
$form = $this->factory->create('datetime', null, array(
'model_timezone' => 'UTC',
@@ -67,7 +67,7 @@ public function testSubmit_string()
$this->assertEquals('2010-06-02 03:04:00', $form->getData());
}
- public function testSubmit_timestamp()
+ public function testSubmitTimestamp()
{
$form = $this->factory->create('datetime', null, array(
'model_timezone' => 'UTC',
@@ -94,7 +94,7 @@ public function testSubmit_timestamp()
$this->assertEquals($dateTime->format('U'), $form->getData());
}
- public function testSubmit_withSeconds()
+ public function testSubmitWithSeconds()
{
$form = $this->factory->create('datetime', null, array(
'model_timezone' => 'UTC',
@@ -125,7 +125,7 @@ public function testSubmit_withSeconds()
$this->assertDateTimeEquals(new \DateTime('2010-06-02 03:04:05 UTC'), $form->getData());
}
- public function testSubmit_differentTimezones()
+ public function testSubmitDifferentTimezones()
{
$form = $this->factory->create('datetime', null, array(
'model_timezone' => 'America/New_York',
@@ -156,7 +156,7 @@ public function testSubmit_differentTimezones()
$this->assertEquals($dateTime->format('Y-m-d H:i:s'), $form->getData());
}
- public function testSubmit_differentTimezonesDateTime()
+ public function testSubmitDifferentTimezonesDateTime()
{
$form = $this->factory->create('datetime', null, array(
'model_timezone' => 'America/New_York',
@@ -175,7 +175,7 @@ public function testSubmit_differentTimezonesDateTime()
$this->assertEquals('2010-06-02T03:04:00-10:00', $form->getViewData());
}
- public function testSubmit_stringSingleText()
+ public function testSubmitStringSingleText()
{
$form = $this->factory->create('datetime', null, array(
'model_timezone' => 'UTC',
@@ -190,7 +190,7 @@ public function testSubmit_stringSingleText()
$this->assertEquals('2010-06-02T03:04:00Z', $form->getViewData());
}
- public function testSubmit_stringSingleText_withSeconds()
+ public function testSubmitStringSingleTextWithSeconds()
{
$form = $this->factory->create('datetime', null, array(
'model_timezone' => 'UTC',
@@ -206,7 +206,7 @@ public function testSubmit_stringSingleText_withSeconds()
$this->assertEquals('2010-06-02T03:04:05Z', $form->getViewData());
}
- public function testSubmit_differentPattern()
+ public function testSubmitDifferentPattern()
{
$form = $this->factory->create('datetime', null, array(
'date_format' => 'MM*yyyy*dd',
@@ -314,7 +314,7 @@ public function testPassEmptyValueAsArray()
$this->assertSame('Empty second', $view['time']['second']->vars['empty_value']);
}
- public function testPassEmptyValueAsPartialArray_addEmptyIfNotRequired()
+ public function testPassEmptyValueAsPartialArrayAddEmptyIfNotRequired()
{
$form = $this->factory->create('datetime', null, array(
'required' => false,
@@ -336,7 +336,7 @@ public function testPassEmptyValueAsPartialArray_addEmptyIfNotRequired()
$this->assertSame('Empty second', $view['time']['second']->vars['empty_value']);
}
- public function testPassEmptyValueAsPartialArray_addNullIfRequired()
+ public function testPassEmptyValueAsPartialArrayAddNullIfRequired()
{
$form = $this->factory->create('datetime', null, array(
'required' => true,
View
8 Tests/Extension/Core/Type/DateTypeTest.php
@@ -313,7 +313,7 @@ public function testThrowExceptionIfFormatIsInvalid()
));
}
- public function testSetData_differentTimezones()
+ public function testSetDataWithDifferentTimezones()
{
$form = $this->factory->create('date', null, array(
'format' => \IntlDateFormatter::MEDIUM,
@@ -328,7 +328,7 @@ public function testSetData_differentTimezones()
$this->assertEquals('01.06.2010', $form->getViewData());
}
- public function testSetData_differentTimezonesDateTime()
+ public function testSetDataWithDifferentTimezonesDateTime()
{
$form = $this->factory->create('date', null, array(
'format' => \IntlDateFormatter::MEDIUM,
@@ -625,7 +625,7 @@ public function testPassEmptyValueAsArray()
$this->assertSame('Empty day', $view['day']->vars['empty_value']);
}
- public function testPassEmptyValueAsPartialArray_addEmptyIfNotRequired()
+ public function testPassEmptyValueAsPartialArrayAddEmptyIfNotRequired()
{
$form = $this->factory->create('date', null, array(
'required' => false,
@@ -641,7 +641,7 @@ public function testPassEmptyValueAsPartialArray_addEmptyIfNotRequired()
$this->assertSame('Empty day', $view['day']->vars['empty_value']);
}
- public function testPassEmptyValueAsPartialArray_addNullIfRequired()
+ public function testPassEmptyValueAsPartialArrayAddNullIfRequired()
{
$form = $this->factory->create('date', null, array(
'required' => true,
View
44 Tests/Extension/Core/Type/TimeTypeTest.php
@@ -16,7 +16,7 @@
class TimeTypeTest extends LocalizedTestCase
{
- public function testSubmit_dateTime()
+ public function testSubmitDateTime()
{
$form = $this->factory->create('time', null, array(
'model_timezone' => 'UTC',
@@ -37,7 +37,7 @@ public function testSubmit_dateTime()
$this->assertEquals($input, $form->getViewData());
}
- public function testSubmit_string()
+ public function testSubmitString()
{
$form = $this->factory->create('time', null, array(
'model_timezone' => 'UTC',
@@ -56,7 +56,7 @@ public function testSubmit_string()
$this->assertEquals($input, $form->getViewData());
}
- public function testSubmit_timestamp()
+ public function testSubmitTimestamp()
{
$form = $this->factory->create('time', null, array(
'model_timezone' => 'UTC',
@@ -77,7 +77,7 @@ public function testSubmit_timestamp()
$this->assertEquals($input, $form->getViewData());
}
- public function testSubmit_array()
+ public function testSubmitArray()
{
$form = $this->factory->create('time', null, array(
'model_timezone' => 'UTC',
@@ -96,7 +96,7 @@ public function testSubmit_array()
$this->assertEquals($input, $form->getViewData());
}
- public function testSubmit_datetimeSingleText()
+ public function testSubmitDatetimeSingleText()
{
$form = $this->factory->create('time', null, array(
'model_timezone' => 'UTC',
@@ -111,7 +111,7 @@ public function testSubmit_datetimeSingleText()
$this->assertEquals('03:04', $form->getViewData());
}
- public function testSubmit_arraySingleText()
+ public function testSubmitArraySingleText()
{
$form = $this->factory->create('time', null, array(
'model_timezone' => 'UTC',
@@ -131,7 +131,7 @@ public function testSubmit_arraySingleText()
$this->assertEquals('03:04', $form->getViewData());
}
- public function testSubmit_arraySingleTextWithSeconds()
+ public function testSubmitArraySingleTextWithSeconds()
{
$form = $this->factory->create('time', null, array(
'model_timezone' => 'UTC',
@@ -153,7 +153,7 @@ public function testSubmit_arraySingleTextWithSeconds()
$this->assertEquals('03:04:05', $form->getViewData());
}
- public function testSubmit_stringSingleText()
+ public function testSubmitStringSingleText()
{
$form = $this->factory->create('time', null, array(
'model_timezone' => 'UTC',
@@ -168,7 +168,7 @@ public function testSubmit_stringSingleText()
$this->assertEquals('03:04', $form->getViewData());
}
- public function testSetData_withSeconds()
+ public function testSetDataWithSeconds()
{
$form = $this->factory->create('time', null, array(
'model_timezone' => 'UTC',
@@ -182,7 +182,7 @@ public function testSetData_withSeconds()
$this->assertEquals(array('hour' => 3, 'minute' => 4, 'second' => 5), $form->getViewData());
}
- public function testSetData_differentTimezones()
+ public function testSetDataDifferentTimezones()
{
$form = $this->factory->create('time', null, array(
'model_timezone' => 'America/New_York',
@@ -208,7 +208,7 @@ public function testSetData_differentTimezones()
$this->assertEquals($displayedData, $form->getViewData());
}
- public function testSetData_differentTimezonesDateTime()
+ public function testSetDataDifferentTimezonesDateTime()
{
$form = $this->factory->create('time', null, array(
'model_timezone' => 'America/New_York',
@@ -249,7 +249,7 @@ public function testHoursOption()
), $view['hour']->vars['choices']);
}
- public function testIsMinuteWithinRange_returnsTrueIfWithin()
+ public function testIsMinuteWithinRangeReturnsTrueIfWithin()
{
$form = $this->factory->create('time', null, array(
'minutes' => array(6, 7),
@@ -263,7 +263,7 @@ public function testIsMinuteWithinRange_returnsTrueIfWithin()
), $view['minute']->vars['choices']);
}
- public function testIsSecondWithinRange_returnsTrueIfWithin()
+ public function testIsSecondWithinRangeReturnsTrueIfWithin()
{
$form = $this->factory->create('time', null, array(
'seconds' => array(6, 7),
@@ -278,7 +278,7 @@ public function testIsSecondWithinRange_returnsTrueIfWithin()
), $view['second']->vars['choices']);
}
- public function testIsPartiallyFilled_returnsFalseIfCompletelyEmpty()
+ public function testIsPartiallyFilledReturnsFalseIfCompletelyEmpty()
{
$this->markTestIncomplete('Needs to be reimplemented using validators');
@@ -294,7 +294,7 @@ public function testIsPartiallyFilled_returnsFalseIfCompletelyEmpty()
$this->assertFalse($form->isPartiallyFilled());
}
- public function testIsPartiallyFilled_returnsFalseIfCompletelyEmpty_withSeconds()
+ public function testIsPartiallyFilledReturnsFalseIfCompletelyEmptyWithSeconds()
{
$this->markTestIncomplete('Needs to be reimplemented using validators');
@@ -312,7 +312,7 @@ public function testIsPartiallyFilled_returnsFalseIfCompletelyEmpty_withSeconds(
$this->assertFalse($form->isPartiallyFilled());
}
- public function testIsPartiallyFilled_returnsFalseIfCompletelyFilled()
+ public function testIsPartiallyFilledReturnsFalseIfCompletelyFilled()
{
$this->markTestIncomplete('Needs to be reimplemented using validators');
@@ -328,7 +328,7 @@ public function testIsPartiallyFilled_returnsFalseIfCompletelyFilled()
$this->assertFalse($form->isPartiallyFilled());
}
- public function testIsPartiallyFilled_returnsFalseIfCompletelyFilled_withSeconds()
+ public function testIsPartiallyFilledReturnsFalseIfCompletelyFilledWithSeconds()
{
$this->markTestIncomplete('Needs to be reimplemented using validators');
@@ -346,7 +346,7 @@ public function testIsPartiallyFilled_returnsFalseIfCompletelyFilled_withSeconds
$this->assertFalse($form->isPartiallyFilled());
}
- public function testIsPartiallyFilled_returnsTrueIfChoiceAndHourEmpty()
+ public function testIsPartiallyFilledReturnsTrueIfChoiceAndHourEmpty()
{
$this->markTestIncomplete('Needs to be reimplemented using validators');
@@ -364,7 +364,7 @@ public function testIsPartiallyFilled_returnsTrueIfChoiceAndHourEmpty()
$this->assertTrue($form->isPartiallyFilled());
}
- public function testIsPartiallyFilled_returnsTrueIfChoiceAndMinuteEmpty()
+ public function testIsPartiallyFilledReturnsTrueIfChoiceAndMinuteEmpty()
{
$this->markTestIncomplete('Needs to be reimplemented using validators');
@@ -382,7 +382,7 @@ public function testIsPartiallyFilled_returnsTrueIfChoiceAndMinuteEmpty()
$this->assertTrue($form->isPartiallyFilled());
}
- public function testIsPartiallyFilled_returnsTrueIfChoiceAndSecondsEmpty()
+ public function testIsPartiallyFilledReturnsTrueIfChoiceAndSecondsEmpty()
{
$this->markTestIncomplete('Needs to be reimplemented using validators');
@@ -474,7 +474,7 @@ public function testPassEmptyValueAsArray()
$this->assertSame('Empty second', $view['second']->vars['empty_value']);
}
- public function testPassEmptyValueAsPartialArray_addEmptyIfNotRequired()
+ public function testPassEmptyValueAsPartialArrayAddEmptyIfNotRequired()
{
$form = $this->factory->create('time', null, array(
'required' => false,
@@ -491,7 +491,7 @@ public function testPassEmptyValueAsPartialArray_addEmptyIfNotRequired()
$this->assertSame('Empty second', $view['second']->vars['empty_value']);
}
- public function testPassEmptyValueAsPartialArray_addNullIfRequired()
+ public function testPassEmptyValueAsPartialArrayAddNullIfRequired()
{
$form = $this->factory->create('time', null, array(
'required' => true,
View
20 Tests/Util/PropertyPathTest.php
@@ -393,7 +393,7 @@ public function testToString()
/**
* @expectedException Symfony\Component\Form\Exception\InvalidPropertyPathException
*/
- public function testInvalidPropertyPath_noDotBeforeProperty()
+ public function testDotIsRequiredBeforeProperty()
{
new PropertyPath('[index]property');
}
@@ -401,7 +401,7 @@ public function testInvalidPropertyPath_noDotBeforeProperty()
/**
* @expectedException Symfony\Component\Form\Exception\InvalidPropertyPathException
*/
- public function testInvalidPropertyPath_dotAtTheBeginning()
+ public function testDotCannotBePresentAtTheBeginning()
{
new PropertyPath('.property');
}
@@ -409,7 +409,7 @@ public function testInvalidPropertyPath_dotAtTheBeginning()
/**
* @expectedException Symfony\Component\Form\Exception\InvalidPropertyPathException
*/
- public function testInvalidPropertyPath_unexpectedCharacters()
+ public function testUnexpectedCharacters()
{
new PropertyPath('property.$form');
}
@@ -417,7 +417,7 @@ public function testInvalidPropertyPath_unexpectedCharacters()
/**
* @expectedException Symfony\Component\Form\Exception\InvalidPropertyPathException
*/
- public function testInvalidPropertyPath_empty()
+ public function testPathCannotBeEmpty()
{
new PropertyPath('');
}
@@ -425,7 +425,7 @@ public function testInvalidPropertyPath_empty()
/**
* @expectedException Symfony\Component\Form\Exception\UnexpectedTypeException
*/
- public function testInvalidPropertyPath_null()
+ public function testPathCannotBeNull()
{
new PropertyPath(null);
}
@@ -433,31 +433,31 @@ public function testInvalidPropertyPath_null()
/**
* @expectedException Symfony\Component\Form\Exception\UnexpectedTypeException
*/
- public function testInvalidPropertyPath_false()
+ public function testPathCannotBeFalse()
{
new PropertyPath(false);
}
- public function testValidPropertyPath_zero()
+ public function testZeroIsValidPropertyPath()
{
new PropertyPath('0');
}
- public function testGetParent_dot()
+ public function testGetParentWithDot()
{
$propertyPath = new PropertyPath('grandpa.parent.child');
$this->assertEquals(new PropertyPath('grandpa.parent'), $propertyPath->getParent());
}
- public function testGetParent_index()
+ public function testGetParentWithIndex()
{
$propertyPath = new PropertyPath('grandpa.parent[child]');
$this->assertEquals(new PropertyPath('grandpa.parent'), $propertyPath->getParent());
}
- public function testGetParent_noParent()
+ public function testGetParentWhenThereIsNoParent()
{
$propertyPath = new PropertyPath('path');

0 comments on commit 060cfed

Please sign in to comment.
Something went wrong with that request. Please try again.