gmarche/vendor/fzaninotto/faker/test/Faker/Provider/kk_KZ/TextTest.php

58 lines
2.0 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace Faker\Test\Provider\kk_KZ;
use PHPUnit\Framework\TestCase;
class TextTest extends TestCase
{
private $textClass;
public function setUp()
{
$this->textClass = new \ReflectionClass('Faker\Provider\kk_KZ\Text');
}
protected function getMethod($name) {
$method = $this->textClass->getMethod($name);
$method->setAccessible(true);
return $method;
}
/** @test */
function testItShouldAppendEndPunctToTheEndOfString()
{
$this->assertSame(
'Арыстан баб кесенесі - көне Отырар.',
$this->getMethod('appendEnd')->invokeArgs(null, array('Арыстан баб кесенесі - көне Отырар '))
);
$this->assertSame(
'Арыстан баб кесенесі - көне Отырар.',
$this->getMethod('appendEnd')->invokeArgs(null, array('Арыстан баб кесенесі - көне Отырар— '))
);
$this->assertSame(
'Арыстан баб кесенесі - көне Отырар.',
$this->getMethod('appendEnd')->invokeArgs(null, array('Арыстан баб кесенесі - көне Отырар, '))
);
$this->assertSame(
'Арыстан баб кесенесі - көне Отырар!.',
$this->getMethod('appendEnd')->invokeArgs(null, array('Арыстан баб кесенесі - көне Отырар! '))
);
$this->assertSame(
'Арыстан баб кесенесі - көне Отырар.',
$this->getMethod('appendEnd')->invokeArgs(null, array('Арыстан баб кесенесі - көне Отырар: '))
);
$this->assertSame(
'Арыстан баб кесенесі - көне Отырар.',
$this->getMethod('appendEnd')->invokeArgs(null, array('Арыстан баб кесенесі - көне Отырар; '))
);
}
}