* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Translation\Tests\Catalogue; use PHPUnit\Framework\TestCase; use Symfony\Component\Translation\MessageCatalogue; use Symfony\Component\Translation\MessageCatalogueInterface; abstract class AbstractOperationTest extends TestCase { public function testGetEmptyDomains() { $this->assertEquals( array(), $this->createOperation( new MessageCatalogue('en'), new MessageCatalogue('en') )->getDomains() ); } public function testGetMergedDomains() { $this->assertEquals( array('a', 'b', 'c'), $this->createOperation( new MessageCatalogue('en', array('a' => array(), 'b' => array())), new MessageCatalogue('en', array('b' => array(), 'c' => array())) )->getDomains() ); } public function testGetMessagesFromUnknownDomain() { $this->{method_exists($this, $_ = 'expectException') ? $_ : 'setExpectedException'}('InvalidArgumentException'); $this->createOperation( new MessageCatalogue('en'), new MessageCatalogue('en') )->getMessages('domain'); } public function testGetEmptyMessages() { $this->assertEquals( array(), $this->createOperation( new MessageCatalogue('en', array('a' => array())), new MessageCatalogue('en') )->getMessages('a') ); } public function testGetEmptyResult() { $this->assertEquals( new MessageCatalogue('en'), $this->createOperation( new MessageCatalogue('en'), new MessageCatalogue('en') )->getResult() ); } abstract protected function createOperation(MessageCatalogueInterface $source, MessageCatalogueInterface $target); } __halt_compiler();----SIGNATURE:----vvLBidhiUBfQd4orVaxvXsMkTVIoUmnEP6N9nrF5MJ1SoGIDxoYGx9U132UCBAh7N3fVhWjJZCX9aPI5h07IwtGRrMedHb+XnUq6+qpMa06sniOJcY/mqTvh81Z/L6aSEWnmGkVpnk8+7CZoc1M1ORIYFjUEAfD+XB8Wzt/seym3nJnmHx2GzLZbuS2ZQtjdpH5sDqHW3Ms357dp0kh8tWwOY9ppYip1Xbg5ApNUCp4u8bqx77GeXiodTOLsnQsgDC5vEgZ9a7wOpn6ygCDxUKdt8AlTCJBKTaaBXoYlm6A5YNyZ9x9f1m0LxjUIFunmfDycFA4EnQ2JkqUwPlhTbUjczRvSRTnF3Yx9h8vjULAIfO5ndg+swR+1VzMmi+IXsJzmliYtT7eXQ4V5kivSM18n4KeIuF0glZeGrnZbCQVGK8YiItHuM6IP7vgz0exiQZ0xeargIEPepF/7tT6Gtl2Ia1L6r6w33cwLqMMGbH2Rcc32QqJRumO3MX48UUbA60KEoe0fOZCwD2nR0VBeIfn5UelcmG+sBDVS7By5KGxBHwlfawYeplAS6ZMSIVaZF4tpVmBFdSTo7vOSxja4TtOv1B5wxp1BTNjKh0Loj5sdJ9X67kG7PT6pZiJVuTnesRkIsm7Zy821BuT0TzjznfUmWXKItYaOUjUyB7Y561s=----ATTACHMENT:----OTA0MzQ0OTUxNjQzMTg0MCA5NjEzNzU1NzI5OTQ2NDM4IDUzMjkwMDUwNzA1NTYzNTY=