2017 © Pedro Peláez
 

library console

Console tools

image

chornij/console

Console tools

  • Wednesday, August 5, 2015
  • by chornij
  • Repository
  • 1 Watchers
  • 0 Stars
  • 20 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

PHP console tools

Code Climate Test Coverage Build Status, (*1)

  • Report component - allow colorize output in console (useful for testing)

Installation

The preferred way to install this component is through composer., (*2)

Either run, (*3)

php composer.phar require chornij/console "0.1.*"

or add, (*4)

"chornij/console": "0.1.8"

to the require section of your composer.json file., (*5)

USAGE

Using Report component in PHPUnit tests:

<?php

class ReportTest extends \PHPUnit_Framework_TestCase
{

    /**
     * @var Report Report object
     */
    private $report;

    /**
     * @inheritdoc
     */
    public function setUp()
    {
        $this->report = new Report();

        echo $this->report->title('Testing some component');
    }

    public function testComponent()
    {
        $this->report->write('Start testing', 'blue');

        $obj = new Component();
        $obj->attribute = 1234;

        $this->assertTrue($obj->isValidated());

        $this->report->write($obj->result, 'green');

        $this->report->write('XML result:', ['bold', 'magenta']);
        $this->report->writeXml($obj->xmlResult);
    }

}

The Versions

05/08 2015

dev-master

9999999-dev

Console tools

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Igor Chornij

05/08 2015

0.1.4

0.1.4.0

Console tools

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Igor Chornij

05/08 2015

0.1.3

0.1.3.0

Console tools

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Igor Chornij

04/08 2015

0.1.2

0.1.2.0

Console tools

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Igor Chornij

04/08 2015

0.1.1

0.1.1.0

Console tools

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Igor Chornij

03/08 2015

0.1.0

0.1.0.0

Console tools

  Sources   Download

MIT

by Igor Chornij