diff --git a/CHANGELOG.md b/CHANGELOG.md index e284ed1..7ff5b78 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [Unreleased] +### Changed + +- BC-Break: The top-level namespace for all classes has changed from `JakubOnderka` to `PHP_Parallel_Lint`. [#10](https://github.com/php-parallel-lint/PHP-Console-Color/pull/10) from [@grogy](https://github.com/grogy). + ### Added - Added downloading per month badge from [@grogy](https://github.com/grogy). diff --git a/composer.json b/composer.json index 94aba0f..fec8f5e 100644 --- a/composer.json +++ b/composer.json @@ -8,7 +8,10 @@ } ], "autoload": { - "psr-4": {"JakubOnderka\\PhpConsoleColor\\": "src/"} + "psr-4": {"PHP_Parallel_Lint\\PhpConsoleColor\\": "src/"} + }, + "autoload-dev": { + "psr-4": {"PHP_Parallel_Lint\\PhpConsoleColor\\Test\\": "tests/"} }, "require": { "php": ">=5.4.0" diff --git a/example.php b/example.php index 5e698a2..3ac1b2d 100644 --- a/example.php +++ b/example.php @@ -1,7 +1,7 @@ isSupported() ? 'Yes' : 'No') . "\n"; echo "256 colors are supported: " . ($consoleColor->are256ColorsSupported() ? 'Yes' : 'No') . "\n\n"; diff --git a/src/ConsoleColor.php b/src/ConsoleColor.php index 90fd125..b7234ed 100644 --- a/src/ConsoleColor.php +++ b/src/ConsoleColor.php @@ -1,5 +1,5 @@ exceptionHelper('\InvalidArgumentException'); - $this->uut->apply(new stdClass(), 'text'); + $this->uut->apply(new \stdClass(), 'text'); } public function testApplyInvalidStyleName() { - $this->exceptionHelper('\JakubOnderka\PhpConsoleColor\InvalidStyleException'); + $this->exceptionHelper('\PHP_Parallel_Lint\PhpConsoleColor\InvalidStyleException'); $this->uut->apply('invalid', 'text'); } public function testApplyInvalid256Color() { - $this->exceptionHelper('\JakubOnderka\PhpConsoleColor\InvalidStyleException'); + $this->exceptionHelper('\PHP_Parallel_Lint\PhpConsoleColor\InvalidStyleException'); $this->uut->apply('color_2134', 'text'); } public function testThemeInvalidStyle() { - $this->exceptionHelper('\JakubOnderka\PhpConsoleColor\InvalidStyleException'); + $this->exceptionHelper('\PHP_Parallel_Lint\PhpConsoleColor\InvalidStyleException'); $this->uut->addTheme('invalid', array('invalid')); }