Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
wapmorgan committed Aug 25, 2017
1 parent 2c2fe0e commit 5d38ee5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ composer require wapmorgan/morphos
- English
```php
// Pluralize english nouns:
morphos\English\pluralize('house') => 'houses'
morphos\English\pluralize(10, 'house') => '10 houses'

// Generate english cardinal numerals:
morphos\English\CardinalNumeralGenerator::generate(567) => 'five hundred sixty-seven'
Expand Down
15 changes: 15 additions & 0 deletions tests/English/FunctionsTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php
namespace morphos\test\English;

require __DIR__.'/../../vendor/autoload.php';

use morphos\Gender;
use morphos\NumeralGenerator;

class FunctionsTest extends \PHPUnit_Framework_TestCase
{
public function testPluralize()
{
$this->assertEquals('10 messages', \morphos\English\pluralize(10, 'message'));
}
}

0 comments on commit 5d38ee5

Please sign in to comment.