|
@@ 81-87 (lines=7) @@
|
| 78 |
|
$this->assertEquals('foo', $this->frameworkExtension->convertToTranslation(' foo ')); |
| 79 |
|
} |
| 80 |
|
|
| 81 |
|
public function testConvertToTranslationToLowerCase() |
| 82 |
|
{ |
| 83 |
|
$this->assertEquals('foo', $this->frameworkExtension->convertToTranslation('foo')); |
| 84 |
|
$this->assertEquals('FOO', $this->frameworkExtension->convertToTranslation('FOO')); |
| 85 |
|
$this->assertEquals('FoO', $this->frameworkExtension->convertToTranslation('FoO')); |
| 86 |
|
$this->assertEquals('fOo', $this->frameworkExtension->convertToTranslation('fOo')); |
| 87 |
|
} |
| 88 |
|
|
| 89 |
|
public function testConvertToTranslationReplaceFakeSpaces() |
| 90 |
|
{ |
|
@@ 106-112 (lines=7) @@
|
| 103 |
|
$this->assertEquals('foo', $this->frameworkExtension->convertToTranslation('foo 123')); |
| 104 |
|
} |
| 105 |
|
|
| 106 |
|
public function testTranslationWithSumoCodersInTheString() |
| 107 |
|
{ |
| 108 |
|
$this->assertEquals('foo', $this->frameworkExtension->convertToTranslation('SumoCoders.foo')); |
| 109 |
|
$this->assertEquals('foo', $this->frameworkExtension->convertToTranslation('sumocoders.foo')); |
| 110 |
|
$this->assertEquals('foo.sumocoders', $this->frameworkExtension->convertToTranslation('foo.sumocoders')); |
| 111 |
|
$this->assertEquals('foo.bar', $this->frameworkExtension->convertToTranslation('SumoCoders.foo.bar')); |
| 112 |
|
} |
| 113 |
|
|
| 114 |
|
public function testTranslationWithBundleInTheString() |
| 115 |
|
{ |