Skip to content

Commit

Permalink
Add base Gettext parser test
Browse files Browse the repository at this point in the history
  • Loading branch information
finwe authored and kukulich committed Oct 3, 2016
1 parent 4190a6f commit d6bff71
Show file tree
Hide file tree
Showing 2 changed files with 1,526 additions and 0 deletions.
37 changes: 37 additions & 0 deletions tests/Jyxo/Gettext/ParserTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?php declare(strict_types = 1);

/**
* Jyxo PHP Library
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file license.txt.
* It is also available through the world-wide-web at this URL:
* https://github.com/jyxo/php/blob/master/license.txt
*/

namespace Jyxo\Gettext;

use Jyxo\Gettext\Parser\Item;

/**
* Test for class \Jyxo\Input\Factory
*
* @copyright Copyright (c) 2005-2011 Jyxo, s.r.o.
* @license https://github.com/jyxo/php/blob/master/license.txt
* @author Matěj Humpál
*/
class FactoryTest extends \PHPUnit_Framework_TestCase
{

public function testParse()
{
$po = new Parser(__DIR__ . '/../../files/gettext/patterns.cs.po');
$this->assertCount(300, $po);
foreach ($po as $item) {
$this->assertInstanceOf(Item::class, $item);
}
}

}
Loading

0 comments on commit d6bff71

Please sign in to comment.