StyleTest.php 511 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
<?php

namespace Doctrine\Tests\Common\Cli;

use Doctrine\Common\Cli\Style;

require_once __DIR__ . '/../../TestInit.php';

class StyleTest extends \Doctrine\Tests\DoctrineTestCase
{
    public function testGetMethods()
    {
        $style = new Style('BLACK', 'WHITE', array('BOLD' => true));
        
        $this->assertEquals('BLACK', $style->getForeground());
        $this->assertEquals('WHITE', $style->getBackground());
        $this->assertEquals(array('BOLD' => true), $style->getOptions());
    }
}