tests/Functional/Visitor/Php/Symfony/ContainerAwareTransChoiceTest.php 1 location
|
@@ 18-28 (lines=11) @@
|
| 15 |
|
use Translation\Extractor\Tests\Resources; |
| 16 |
|
use Translation\Extractor\Visitor\Php\Symfony\ContainerAwareTransChoice; |
| 17 |
|
|
| 18 |
|
class ContainerAwareTransChoiceTest extends BasePHPVisitorTest |
| 19 |
|
{ |
| 20 |
|
public function testExtract() |
| 21 |
|
{ |
| 22 |
|
$collection = $this->getSourceLocations(new ContainerAwareTransChoice(), Resources\Php\Symfony\ContainerAwareTransChoice::class); |
| 23 |
|
|
| 24 |
|
$this->assertCount(1, $collection); |
| 25 |
|
$source = $collection->first(); |
| 26 |
|
$this->assertEquals('foobar', $source->getMessage()); |
| 27 |
|
} |
| 28 |
|
} |
| 29 |
|
|
tests/Functional/Visitor/Php/Symfony/ContainerAwareTransTest.php 1 location
|
@@ 18-28 (lines=11) @@
|
| 15 |
|
use Translation\Extractor\Tests\Resources; |
| 16 |
|
use Translation\Extractor\Visitor\Php\Symfony\ContainerAwareTrans; |
| 17 |
|
|
| 18 |
|
class ContainerAwareTransTest extends BasePHPVisitorTest |
| 19 |
|
{ |
| 20 |
|
public function testExtract() |
| 21 |
|
{ |
| 22 |
|
$collection = $this->getSourceLocations(new ContainerAwareTrans(), Resources\Php\Symfony\ContainerAwareTrans::class); |
| 23 |
|
|
| 24 |
|
$this->assertCount(1, $collection); |
| 25 |
|
$source = $collection->first(); |
| 26 |
|
$this->assertEquals('foobar', $source->getMessage()); |
| 27 |
|
} |
| 28 |
|
} |
| 29 |
|
|
tests/Functional/Visitor/Php/Symfony/FlashMessageTest.php 1 location
|
@@ 18-28 (lines=11) @@
|
| 15 |
|
use Translation\Extractor\Tests\Resources; |
| 16 |
|
use Translation\Extractor\Visitor\Php\Symfony\FlashMessage; |
| 17 |
|
|
| 18 |
|
class FlashMessageTest extends BasePHPVisitorTest |
| 19 |
|
{ |
| 20 |
|
public function testExtract() |
| 21 |
|
{ |
| 22 |
|
$collection = $this->getSourceLocations(new FlashMessage(), Resources\Php\Symfony\FlashMessage::class); |
| 23 |
|
|
| 24 |
|
$this->assertCount(1, $collection); |
| 25 |
|
$source = $collection->first(); |
| 26 |
|
$this->assertEquals('flash.created', $source->getMessage()); |
| 27 |
|
} |
| 28 |
|
} |
| 29 |
|
|
tests/Functional/Visitor/Php/SourceLocationContainerExtractorTest.php 1 location
|
@@ 17-27 (lines=11) @@
|
| 14 |
|
use Translation\Extractor\Visitor\Php\SourceLocationContainerExtractor; |
| 15 |
|
use Translation\Extractor\Tests\Resources; |
| 16 |
|
|
| 17 |
|
class SourceLocationContainerExtractorTest extends BasePHPVisitorTest |
| 18 |
|
{ |
| 19 |
|
public function testExtract() |
| 20 |
|
{ |
| 21 |
|
$collection = $this->getSourceLocations(new SourceLocationContainerExtractor(), Resources\Php\SourceLocationContainer::class); |
| 22 |
|
|
| 23 |
|
$this->assertCount(2, $collection); |
| 24 |
|
$source = $collection->first(); |
| 25 |
|
$this->assertEquals('foo', $source->getMessage()); |
| 26 |
|
} |
| 27 |
|
} |
| 28 |
|
|