lithium\tests\cases\template\HelperTest::testAttributeMinimization PHP Method

testAttributeMinimization() public method

    public function testAttributeMinimization()
    {
        $attributes = array('selected' => 1);
        $expected = ' selected="selected"';
        $result = $this->helper->testAttributes($attributes);
        $this->assertEqual($expected, $result);
        $attributes = array('selected' => true);
        $expected = ' selected="selected"';
        $result = $this->helper->testAttributes($attributes);
        $this->assertEqual($expected, $result);
        $attributes = array('selected' => 'true');
        $expected = ' selected="true"';
        $result = $this->helper->testAttributes($attributes);
        $this->assertEqual($expected, $result);
    }