[0.4] Переписаная русская часть библиотеки

This commit is contained in:
Andriy Chaika 2011-07-05 22:24:01 +03:00
parent aa6457b3e2
commit fe05c39eb2
3 changed files with 473 additions and 524 deletions

File diff suppressed because it is too large Load Diff

View File

@ -93,27 +93,19 @@ class NCLNameCaseRuTest extends PHPUnit_Framework_TestCase
$this->assertEquals(explode(',','Чайка,Чайки,Чайке,Чайку,Чайкой,Чайке'), $this->object->qSecondName('Чайка', 15, 1));
}
public function test11()
{
$this->object->setFatherName();
$this->object->setFirstName();
$this->object->setSecondName();
$this->assertEquals(explode(',',',,,,,'), $this->object->getSecondNameCase());
$this->assertEquals(explode(',',',,,,,'), $this->object->getFatherNameCase());
$this->assertEquals(explode(',',',,,,,'), $this->object->getFirstNameCase());
}
public function test12()
public function test11()
{
$this->assertEquals(explode(',','Николаевич,Николаевича,Николаевичу,Николаевича,Николаевичем,Николаевиче'), $this->object->qFatherName('Николаевич', 15, 1));
}
public function test13()
public function test12()
{
$this->assertEquals('на Чайке Андрее Николаевиче красивая рубашка', $this->object->qFullName("Чайка", 'Андрей', 'Николаевич', 1, 5, "на S N F красивая рубашка"));
}
public function test14()
public function test13()
{
$this->assertEquals('комментария', $this->object->qFirstName('комментарий',NCLNameCaseRu::$RODITLN , NCLNameCaseRu::$MAN));
}

View File

@ -3,6 +3,6 @@
header('Content-type: text/html; charset=utf-8');
require '../Library/NCL.NameCase.ua.php';
$ob = new NCLNameCaseUa;
print_r($ob->qFirstName('Ялина',null,2));
print_r($ob->qFirstName('петРО',null,1));
echo $ob->getSecondNameRule();
?>