# responsive-menu/3.0.12/tests/app/Form/TextTest.php

Responsive Menu – Create Mobile-Friendly Menu, version 3.0.12. 17 lines.

- Page: https://pluginprobe.com/plugins/responsive-menu/3.0.12/code/tests/app/Form/TextTest.php
- Raw: https://pluginprobe.com/plugins/responsive-menu/3.0.12/raw/tests/app/Form/TextTest.php
- Modified: 2016-08-20T23:47:42+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/responsive-menu/3.0.12/code/tests/app/Form/TextTest.php#L10-L20`.

```php
<?php

use PHPUnit\Framework\TestCase;

class TextTest extends TestCase {

  public function setUp() {
    $this->form_component = new ResponsiveMenu\Form\Text;
  }

  public function testRendering() {
    $output = $this->form_component->render(new ResponsiveMenu\Models\Option('a', 1));
    $this->assertEquals("<input type='text' class='text' id='a' name='menu[a]' value='1' />", $output);
  }

}

```
