%PDF- %PDF-
Direktori : /var/www/html/kpk/api/vendor/fzaninotto/faker/test/Faker/Provider/kk_KZ/ |
Current File : /var/www/html/kpk/api/vendor/fzaninotto/faker/test/Faker/Provider/kk_KZ/TextTest.php |
<?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('Арыстан баб кесенесі - көне Отырар; ')) ); } }