Longman\TelegramBot\Tests\Unit\KeyboardTest::testKeyboardMultipleButtonsSingleRow PHP Méthode

testKeyboardMultipleButtonsSingleRow() public méthode

    public function testKeyboardMultipleButtonsSingleRow()
    {
        $keyboard = (new Keyboard(['Button Text 1', 'Button Text 2']))->getProperty('keyboard');
        self::assertSame('Button Text 1', $keyboard[0][0]->getText());
        self::assertSame('Button Text 2', $keyboard[0][1]->getText());
    }