HtmlOutputFormatterTest.php 844 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /*
  3. * This file is part of Composer.
  4. *
  5. * (c) Nils Adermann <naderman@naderman.de>
  6. * Jordi Boggiano <j.boggiano@seld.be>
  7. *
  8. * For the full copyright and license information, please view the LICENSE
  9. * file that was distributed with this source code.
  10. */
  11. namespace Composer;
  12. use Composer\Console\HtmlOutputFormatter;
  13. class HtmlOutputFormatterTest extends \PHPUnit_Framework_TestCase
  14. {
  15. public function testFormatting()
  16. {
  17. $formatter = new HtmlOutputFormatter;
  18. return $this->assertEquals(
  19. 'Reading composer.json of <span style="color:green;">https://github.com/ccqgithub/sherry-php</span> (<span style="color:yellow;">master</span>)',
  20. $formatter->format('Reading composer.json of <info>https://github.com/ccqgithub/sherry-php</info> (<comment>master</comment>)')
  21. );
  22. }
  23. }