From 14ef09d435b9da1c81e1a784caeb4368463937f5 Mon Sep 17 00:00:00 2001 From: h-hishida Date: Tue, 28 Apr 2015 09:46:49 +0900 Subject: fixed namespace --- composer.json | 7 +++---- src/Plugin/CellStyleFixer.php | 12 ++++++------ src/Plugin/ConditionalFormatFixer.php | 8 ++++---- src/Plugin/Plugin.php | 2 +- src/StyleFixer.php | 4 ++-- src/Util/Book.php | 2 +- src/Util/Sheet.php | 2 +- src/Util/XmlNamespace.php | 2 +- tests/Plugin/BasePluginTest.php | 4 ++-- tests/Plugin/CellStyleFixerTest.php | 4 ++-- tests/Plugin/ConditionalFormatFixerTest.php | 2 +- tests/StyleFixerTest.php | 8 ++++---- tests/Util/BookTest.php | 2 +- tests/Util/SheetTest.php | 2 +- 14 files changed, 30 insertions(+), 31 deletions(-) diff --git a/composer.json b/composer.json index 9780eb1..76026aa 100644 --- a/composer.json +++ b/composer.json @@ -1,18 +1,17 @@ { - "name": "phpexcel/stylefixer", + "name": "phpexcel-fixer/style-fixer", "description":" ", "keywords":[ ], "license": "BSD-3-Clause", "autoload":{ "psr-4":{ - "PHPExcel\\StyleFixer\\": "src/" + "PHPExcelFixer\\StyleFixer\\": "src/" } }, "autoload-dev":{ "psr-4":{ - "PHPExcel\\StyleFixer\\": "tests/", - "PHPExcel\\StyleFixer\\": "tests/Fake" + "PHPExcelFixer\\StyleFixer\\": "tests/" } }, "minimum-stability": "dev", diff --git a/src/Plugin/CellStyleFixer.php b/src/Plugin/CellStyleFixer.php index cbbb4af..cc497be 100644 --- a/src/Plugin/CellStyleFixer.php +++ b/src/Plugin/CellStyleFixer.php @@ -1,22 +1,22 @@ getMock('PHPExcel\StyleFixer\Util\Book'); + $bookUtil = $this->getMock('PHPExcelFixer\StyleFixer\Util\Book'); $bookUtil ->expects($this->exactly($count)) ->method('makeSheetMap') diff --git a/tests/Plugin/CellStyleFixerTest.php b/tests/Plugin/CellStyleFixerTest.php index a30478a..36a500d 100644 --- a/tests/Plugin/CellStyleFixerTest.php +++ b/tests/Plugin/CellStyleFixerTest.php @@ -1,9 +1,9 @@ $template, ]; - $fixer = $this->getMockBuilder('PHPExcel\StyleFixer\StyleFixer') + $fixer = $this->getMockBuilder('PHPExcelFixer\StyleFixer\StyleFixer') ->setMethods(['openFile']) ->getMock() ; @@ -86,9 +86,9 @@ class StyleFixerTest extends \PHPUnit_Framework_TestCase $outputPath => $output, $templatePath => $template, ]; - $plugin = $this->getMockForAbstractClass('PHPExcel\StyleFixer\Plugin\Plugin'); + $plugin = $this->getMockForAbstractClass('PHPExcelFixer\StyleFixer\Plugin\Plugin'); - $fixer = $this->getMockBuilder('PHPExcel\StyleFixer\StyleFixer') + $fixer = $this->getMockBuilder('PHPExcelFixer\StyleFixer\StyleFixer') ->setMethods(['openFile']) ->setConstructorArgs([[$plugin]]) ->getMock() diff --git a/tests/Util/BookTest.php b/tests/Util/BookTest.php index 2e0c26c..d44c7d2 100644 --- a/tests/Util/BookTest.php +++ b/tests/Util/BookTest.php @@ -1,7 +1,7 @@