From c783bcd398ca27367777b11211a47eeb8d17156f Mon Sep 17 00:00:00 2001 From: Viktor Masicek Date: Mon, 19 Dec 2011 17:14:52 +0100 Subject: [PATCH] Rename namespace XSLTBechmark to XSLTBenchmarking --- DriversContainer.php | 6 ++-- Exceptions.php | 2 +- RunnerConsole/Runner.php | 4 +-- TestsGenerator/Generator.php | 2 +- TestsGenerator/Params/IParamsDriver.php | 2 +- TestsGenerator/Params/Params.php | 4 +-- TestsGenerator/Params/XmlParamsDriver.php | 2 +- .../Templating/ITemplatingDriver.php | 2 +- .../Templating/SimpleTemplatingDriver.php | 4 +-- .../Templating/SmartyTemplatingDriver.php | 4 +-- TestsGenerator/Templating/Templating.php | 4 +-- TestsGenerator/Test.php | 4 +-- .../XmlGenerator/EasyXmlGeneratorDriver.php | 2 +- .../XmlGenerator/IXmlGeneratorDriver.php | 2 +- TestsGenerator/XmlGenerator/XmlGenerator.php | 4 +-- Tools/Runner.php | 2 +- Tools/Tests/TestCase.php | 2 +- .../DriverContainer/DriverContainerTest.php | 34 +++++++++--------- .../DriverContainer/Foo/FirstFooDriver.php | 2 +- Tools/Tests/Unit/DriverContainer/Foo/Foo.php | 4 +-- .../Unit/DriverContainer/Foo/IFooDriver.php | 2 +- .../DriverContainer/Foo/SecondFooDriver.php | 2 +- .../Generator/AddAndGetTestsTest.php | 12 +++---- .../Generator/GenerateAllTest.php | 14 ++++---- .../Generator/GeneratorTest.php | 8 ++--- .../Params/Params/ParamsTest.php | 12 +++---- .../Params/XmlParamsDriver/GetValuesTest.php | 22 ++++++------ .../XmlParamsDriver/XmlParamsDriverTest.php | 12 +++---- .../SimpleTemplatingDriver/GenerateTest.php | 10 +++--- .../SmartyTemplatingDriver/GenerateTest.php | 10 +++--- .../Templating/Templating/GenerateTest.php | 10 +++--- .../Templating/Templating/TemplatingTest.php | 14 ++++---- Tools/Tests/Unit/TestsGenerator/TestTest.php | 36 +++++++++---------- .../EasyXmlGeneratorDriver/GenerateTest.php | 8 ++--- .../XmlGenerator/XmlGeneratorTest.php | 12 +++---- Tools/run.php | 2 +- index.php | 2 +- 37 files changed, 140 insertions(+), 140 deletions(-) diff --git a/DriversContainer.php b/DriversContainer.php index d898256..8a39ea9 100644 --- a/DriversContainer.php +++ b/DriversContainer.php @@ -7,7 +7,7 @@ * @license "New" BSD License */ -namespace XSLTBenchmark; +namespace XSLTBenchmarking; require_once LIBS . '/PhpPath/PhpPath.min.php'; require_once ROOT . '/Exceptions.php'; @@ -69,14 +69,14 @@ public function __construct($driverName) * @param string $name Name of method * @param array $arguments List of arguments for calling method * - * @throws \XSLTBenchmark\UnknownMethodException Unknown method on set driver + * @throws \XSLTBenchmarking\UnknownMethodException Unknown method on set driver * @return mix */ public function __call($name, $arguments) { if (!in_array($name, get_class_methods($this->driver))) { - throw new \XSLTBenchmark\UnknownMethodException('On driver "' . get_class($this->driver) . '" is not method "' . $name . '"'); + throw new \XSLTBenchmarking\UnknownMethodException('On driver "' . get_class($this->driver) . '" is not method "' . $name . '"'); } return call_user_func_array(array($this->driver, $name), $arguments); diff --git a/Exceptions.php b/Exceptions.php index 22432bd..af7e8c4 100644 --- a/Exceptions.php +++ b/Exceptions.php @@ -7,7 +7,7 @@ * @license "New" BSD License */ -namespace XSLTBenchmark; +namespace XSLTBenchmarking; /** * List of exceptions used in XSLT Benchmarking. diff --git a/RunnerConsole/Runner.php b/RunnerConsole/Runner.php index 9db12fc..dd9a2bb 100644 --- a/RunnerConsole/Runner.php +++ b/RunnerConsole/Runner.php @@ -7,7 +7,7 @@ * @license "New" BSD License */ -namespace XSLTBenchmark\RunnerConsole; +namespace XSLTBenchmarking\RunnerConsole; define ('LIBS', __DIR__ . '/../Libs'); define ('ROOT', __DIR__ . '/..'); @@ -17,7 +17,7 @@ use PhpOptions\Options; use PhpOptions\Option; -use XSLTBenchmark\TestsGenerator\Generator; +use XSLTBenchmarking\TestsGenerator\Generator; /** * Class for runnig XSLT Benchmark from console diff --git a/TestsGenerator/Generator.php b/TestsGenerator/Generator.php index e40e466..87de78c 100644 --- a/TestsGenerator/Generator.php +++ b/TestsGenerator/Generator.php @@ -7,7 +7,7 @@ * @license "New" BSD License */ -namespace XSLTBenchmark\TestsGenerator; +namespace XSLTBenchmarking\TestsGenerator; require_once __DIR__ . '/Templating/Templating.php'; require_once __DIR__ . '/Test.php'; diff --git a/TestsGenerator/Params/IParamsDriver.php b/TestsGenerator/Params/IParamsDriver.php index 2228cc9..4b8e1bd 100644 --- a/TestsGenerator/Params/IParamsDriver.php +++ b/TestsGenerator/Params/IParamsDriver.php @@ -7,7 +7,7 @@ * @license "New" BSD License */ -namespace XSLTBenchmark\TestsGenerator; +namespace XSLTBenchmarking\TestsGenerator; /** * Abstract parent for object for collect params about templates. diff --git a/TestsGenerator/Params/Params.php b/TestsGenerator/Params/Params.php index 18a1ae4..1bf98b5 100644 --- a/TestsGenerator/Params/Params.php +++ b/TestsGenerator/Params/Params.php @@ -7,7 +7,7 @@ * @license "New" BSD License */ -namespace XSLTBenchmark\TestsGenerator; +namespace XSLTBenchmarking\TestsGenerator; require_once LIBS . '/PhpPath/PhpPath.min.php'; require_once ROOT . '/DriversContainer.php'; @@ -19,7 +19,7 @@ * * @author Viktor Mašíček */ -class Params extends \XSLTBenchmark\DriversContainer +class Params extends \XSLTBenchmarking\DriversContainer { diff --git a/TestsGenerator/Params/XmlParamsDriver.php b/TestsGenerator/Params/XmlParamsDriver.php index 0bb7b05..4b63040 100644 --- a/TestsGenerator/Params/XmlParamsDriver.php +++ b/TestsGenerator/Params/XmlParamsDriver.php @@ -7,7 +7,7 @@ * @license "New" BSD License */ -namespace XSLTBenchmark\TestsGenerator; +namespace XSLTBenchmarking\TestsGenerator; require_once __DIR__ . '/IParamsDriver.php'; require_once __DIR__ . '/../XmlGenerator/XmlGenerator.php'; diff --git a/TestsGenerator/Templating/ITemplatingDriver.php b/TestsGenerator/Templating/ITemplatingDriver.php index 054388d..225a442 100644 --- a/TestsGenerator/Templating/ITemplatingDriver.php +++ b/TestsGenerator/Templating/ITemplatingDriver.php @@ -7,7 +7,7 @@ * @license "New" BSD License */ -namespace XSLTBenchmark\TestsGenerator; +namespace XSLTBenchmarking\TestsGenerator; /** * Interface for object for generating XSLT file from template. diff --git a/TestsGenerator/Templating/SimpleTemplatingDriver.php b/TestsGenerator/Templating/SimpleTemplatingDriver.php index 723199e..e8233a3 100644 --- a/TestsGenerator/Templating/SimpleTemplatingDriver.php +++ b/TestsGenerator/Templating/SimpleTemplatingDriver.php @@ -7,7 +7,7 @@ * @license "New" BSD License */ -namespace XSLTBenchmark\TestsGenerator; +namespace XSLTBenchmarking\TestsGenerator; require_once __DIR__ . '/ITemplatingDriver.php'; require_once ROOT . '/Exceptions.php'; @@ -44,7 +44,7 @@ public function generate($templatePath, $outputPath, array $settings = array()) { if (!copy($templatePath, $outputPath)) {// @codeCoverageIgnoreStart - throw new \XSLTBenchmark\GenerteTemplateException('Cannot create file "' . $outputFile . '".'); + throw new \XSLTBenchmarking\GenerteTemplateException('Cannot create file "' . $outputFile . '".'); }// @codeCoverageIgnoreEnd } diff --git a/TestsGenerator/Templating/SmartyTemplatingDriver.php b/TestsGenerator/Templating/SmartyTemplatingDriver.php index 4dd1436..1c2374a 100644 --- a/TestsGenerator/Templating/SmartyTemplatingDriver.php +++ b/TestsGenerator/Templating/SmartyTemplatingDriver.php @@ -7,7 +7,7 @@ * @license "New" BSD License */ -namespace XSLTBenchmark\TestsGenerator; +namespace XSLTBenchmarking\TestsGenerator; require_once LIBS . '/Smarty/Smarty.class.php'; require_once LIBS . '/PhpPath/PhpPath.min.php'; @@ -64,7 +64,7 @@ public function generate($templatePath, $outputPath, array $settings) if (!file_put_contents($outputPath, $content)) {// @codeCoverageIgnoreStart - throw new \XSLTBenchmark\GenerteTemplateException('Cannot create file "' . $outputFile . '".'); + throw new \XSLTBenchmarking\GenerteTemplateException('Cannot create file "' . $outputFile . '".'); }// @codeCoverageIgnoreEnd } diff --git a/TestsGenerator/Templating/Templating.php b/TestsGenerator/Templating/Templating.php index 061e98d..6895c3d 100644 --- a/TestsGenerator/Templating/Templating.php +++ b/TestsGenerator/Templating/Templating.php @@ -7,7 +7,7 @@ * @license "New" BSD License */ -namespace XSLTBenchmark\TestsGenerator; +namespace XSLTBenchmarking\TestsGenerator; require_once LIBS . '/PhpPath/PhpPath.min.php'; require_once ROOT . '/DriversContainer.php'; @@ -19,7 +19,7 @@ * * @author Viktor Mašíček */ -class Templating extends \XSLTBenchmark\DriversContainer +class Templating extends \XSLTBenchmarking\DriversContainer { diff --git a/TestsGenerator/Test.php b/TestsGenerator/Test.php index bd17482..b2e8ba1 100644 --- a/TestsGenerator/Test.php +++ b/TestsGenerator/Test.php @@ -7,7 +7,7 @@ * @license "New" BSD License */ -namespace XSLTBenchmark\TestsGenerator; +namespace XSLTBenchmarking\TestsGenerator; require_once LIBS . '/PhpPath/PhpPath.min.php'; require_once ROOT . '/Exceptions.php'; @@ -95,7 +95,7 @@ public function setTemplatePath($templatePath) ($parts[$partsCount - 2] != 'tpl') || ($parts[$partsCount - 1] != 'xsl' && $parts[$partsCount - 1] != 'xslt')) { - throw new \XSLTBenchmark\InvalidArgumentException('Template path does not have extension ".tpl.xsl" or ".tpl.xslt". It has value "' . $templatePath . '"'); + throw new \XSLTBenchmarking\InvalidArgumentException('Template path does not have extension ".tpl.xsl" or ".tpl.xslt". It has value "' . $templatePath . '"'); } $this->templatePath = $templatePath; diff --git a/TestsGenerator/XmlGenerator/EasyXmlGeneratorDriver.php b/TestsGenerator/XmlGenerator/EasyXmlGeneratorDriver.php index 83411e3..34f60ad 100644 --- a/TestsGenerator/XmlGenerator/EasyXmlGeneratorDriver.php +++ b/TestsGenerator/XmlGenerator/EasyXmlGeneratorDriver.php @@ -7,7 +7,7 @@ * @license "New" BSD License */ -namespace XSLTBenchmark\TestsGenerator; +namespace XSLTBenchmarking\TestsGenerator; require_once __DIR__ . '/IXmlGeneratorDriver.php'; diff --git a/TestsGenerator/XmlGenerator/IXmlGeneratorDriver.php b/TestsGenerator/XmlGenerator/IXmlGeneratorDriver.php index 399af78..f1f2a75 100644 --- a/TestsGenerator/XmlGenerator/IXmlGeneratorDriver.php +++ b/TestsGenerator/XmlGenerator/IXmlGeneratorDriver.php @@ -7,7 +7,7 @@ * @license "New" BSD License */ -namespace XSLTBenchmark\TestsGenerator; +namespace XSLTBenchmarking\TestsGenerator; /** * Inerface for drivers for generating XML files. diff --git a/TestsGenerator/XmlGenerator/XmlGenerator.php b/TestsGenerator/XmlGenerator/XmlGenerator.php index 0a6112b..d63a4d8 100644 --- a/TestsGenerator/XmlGenerator/XmlGenerator.php +++ b/TestsGenerator/XmlGenerator/XmlGenerator.php @@ -7,7 +7,7 @@ * @license "New" BSD License */ -namespace XSLTBenchmark\TestsGenerator; +namespace XSLTBenchmarking\TestsGenerator; require_once LIBS . '/PhpPath/PhpPath.min.php'; require_once ROOT . '/DriversContainer.php'; @@ -19,6 +19,6 @@ * * @author Viktor Mašíček */ -class XmlGenerator extends \XSLTBenchmark\DriversContainer +class XmlGenerator extends \XSLTBenchmarking\DriversContainer { } diff --git a/Tools/Runner.php b/Tools/Runner.php index f4cd14c..49b07da 100644 --- a/Tools/Runner.php +++ b/Tools/Runner.php @@ -7,7 +7,7 @@ * @license "New" BSD License */ -namespace XSLTBenchmark\Tools; +namespace XSLTBenchmarking\Tools; define('DATA_TOOLS', __DIR__ . '/Data'); define('TESTS_TOOLS', __DIR__ . '/Tests'); diff --git a/Tools/Tests/TestCase.php b/Tools/Tests/TestCase.php index a4829a6..5378f7b 100644 --- a/Tools/Tests/TestCase.php +++ b/Tools/Tests/TestCase.php @@ -7,7 +7,7 @@ * @license "New" BSD License */ -namespace Tests\XSLTBenchmark; +namespace Tests\XSLTBenchmarking; require_once LIBS . '/PhpOptions/PhpOptions.min.php'; diff --git a/Tools/Tests/Unit/DriverContainer/DriverContainerTest.php b/Tools/Tests/Unit/DriverContainer/DriverContainerTest.php index 3e7d7c1..ec1ff34 100644 --- a/Tools/Tests/Unit/DriverContainer/DriverContainerTest.php +++ b/Tools/Tests/Unit/DriverContainer/DriverContainerTest.php @@ -7,22 +7,22 @@ * @license "New" BSD License */ -namespace Tests\XSLTBenchmark\DriversContainer; +namespace Tests\XSLTBenchmarking\DriversContainer; require_once __DIR__ . '/Foo/Foo.php'; -use \Tests\XSLTBenchmark\TestCase; +use \Tests\XSLTBenchmarking\TestCase; /** * DriversContainerTest * * @author Viktor Mašíček * - * @covers XSLTBenchmark\DriversContainer::__construct - * @covers XSLTBenchmark\DriversContainer::__call - * @covers XSLTBenchmark\DriversContainer::getDriversDirectory - * @covers XSLTBenchmark\DriversContainer::getDriversNamespace - * @covers XSLTBenchmark\DriversContainer::getDriversNamesSuffix + * @covers XSLTBenchmarking\DriversContainer::__construct + * @covers XSLTBenchmarking\DriversContainer::__call + * @covers XSLTBenchmarking\DriversContainer::getDriversDirectory + * @covers XSLTBenchmarking\DriversContainer::getDriversNamespace + * @covers XSLTBenchmarking\DriversContainer::getDriversNamesSuffix */ class DriversContainerTest extends TestCase { @@ -31,17 +31,17 @@ class DriversContainerTest extends TestCase public function testFirstFooDriver() { $foo = new Foo('first'); - $this->assertInstanceOf('\XSLTBenchmark\DriversContainer', $foo); - $this->assertInstanceOf('\Tests\XSLTBenchmark\DriversContainer\Foo', $foo); + $this->assertInstanceOf('\XSLTBenchmarking\DriversContainer', $foo); + $this->assertInstanceOf('\Tests\XSLTBenchmarking\DriversContainer\Foo', $foo); $driver = $this->getPropertyValue($foo, 'driver'); - $this->assertInstanceOf('\Tests\XSLTBenchmark\DriversContainer\IFooDriver', $driver); - $this->assertInstanceOf('\Tests\XSLTBenchmark\DriversContainer\FirstFooDriver', $driver); + $this->assertInstanceOf('\Tests\XSLTBenchmarking\DriversContainer\IFooDriver', $driver); + $this->assertInstanceOf('\Tests\XSLTBenchmarking\DriversContainer\FirstFooDriver', $driver); $this->assertEquals('First::method1', $foo->methodOne()); $this->assertEquals('First::method2: lorem ipsum', $foo->methodTwo('lorem', 'ipsum')); - $this->setExpectedException('\XSLTBenchmark\UnknownMethodException'); + $this->setExpectedException('\XSLTBenchmarking\UnknownMethodException'); $foo->methodUnknown(); } @@ -49,17 +49,17 @@ public function testFirstFooDriver() public function testSecondFooDriver() { $foo = new Foo('second'); - $this->assertInstanceOf('\XSLTBenchmark\DriversContainer', $foo); - $this->assertInstanceOf('\Tests\XSLTBenchmark\DriversContainer\Foo', $foo); + $this->assertInstanceOf('\XSLTBenchmarking\DriversContainer', $foo); + $this->assertInstanceOf('\Tests\XSLTBenchmarking\DriversContainer\Foo', $foo); $driver = $this->getPropertyValue($foo, 'driver'); - $this->assertInstanceOf('\Tests\XSLTBenchmark\DriversContainer\IFooDriver', $driver); - $this->assertInstanceOf('\Tests\XSLTBenchmark\DriversContainer\SecondFooDriver', $driver); + $this->assertInstanceOf('\Tests\XSLTBenchmarking\DriversContainer\IFooDriver', $driver); + $this->assertInstanceOf('\Tests\XSLTBenchmarking\DriversContainer\SecondFooDriver', $driver); $this->assertEquals('Second::method1', $foo->methodOne()); $this->assertEquals('Second::method2: lorem ipsum', $foo->methodTwo('lorem', 'ipsum')); - $this->setExpectedException('\XSLTBenchmark\UnknownMethodException'); + $this->setExpectedException('\XSLTBenchmarking\UnknownMethodException'); $foo->methodUnknown(); } diff --git a/Tools/Tests/Unit/DriverContainer/Foo/FirstFooDriver.php b/Tools/Tests/Unit/DriverContainer/Foo/FirstFooDriver.php index a639320..18d243c 100644 --- a/Tools/Tests/Unit/DriverContainer/Foo/FirstFooDriver.php +++ b/Tools/Tests/Unit/DriverContainer/Foo/FirstFooDriver.php @@ -7,7 +7,7 @@ * @license "New" BSD License */ -namespace Tests\XSLTBenchmark\DriversContainer; +namespace Tests\XSLTBenchmarking\DriversContainer; require_once __DIR__ . '/IFooDriver.php'; diff --git a/Tools/Tests/Unit/DriverContainer/Foo/Foo.php b/Tools/Tests/Unit/DriverContainer/Foo/Foo.php index 1b3e422..e44349c 100644 --- a/Tools/Tests/Unit/DriverContainer/Foo/Foo.php +++ b/Tools/Tests/Unit/DriverContainer/Foo/Foo.php @@ -7,7 +7,7 @@ * @license "New" BSD License */ -namespace Tests\XSLTBenchmark\DriversContainer; +namespace Tests\XSLTBenchmarking\DriversContainer; require_once ROOT . '/DriversContainer.php'; @@ -16,6 +16,6 @@ * * @author Viktor Mašíček */ -class Foo extends \XSLTBenchmark\DriversContainer +class Foo extends \XSLTBenchmarking\DriversContainer { } diff --git a/Tools/Tests/Unit/DriverContainer/Foo/IFooDriver.php b/Tools/Tests/Unit/DriverContainer/Foo/IFooDriver.php index 58fe0fd..faeb11b 100644 --- a/Tools/Tests/Unit/DriverContainer/Foo/IFooDriver.php +++ b/Tools/Tests/Unit/DriverContainer/Foo/IFooDriver.php @@ -7,7 +7,7 @@ * @license "New" BSD License */ -namespace Tests\XSLTBenchmark\DriversContainer; +namespace Tests\XSLTBenchmarking\DriversContainer; /** * IFooDriver diff --git a/Tools/Tests/Unit/DriverContainer/Foo/SecondFooDriver.php b/Tools/Tests/Unit/DriverContainer/Foo/SecondFooDriver.php index 5aae18b..7af5832 100644 --- a/Tools/Tests/Unit/DriverContainer/Foo/SecondFooDriver.php +++ b/Tools/Tests/Unit/DriverContainer/Foo/SecondFooDriver.php @@ -7,7 +7,7 @@ * @license "New" BSD License */ -namespace Tests\XSLTBenchmark\DriversContainer; +namespace Tests\XSLTBenchmarking\DriversContainer; require_once __DIR__ . '/IFooDriver.php'; diff --git a/Tools/Tests/Unit/TestsGenerator/Generator/AddAndGetTestsTest.php b/Tools/Tests/Unit/TestsGenerator/Generator/AddAndGetTestsTest.php index 830d218..4afceed 100644 --- a/Tools/Tests/Unit/TestsGenerator/Generator/AddAndGetTestsTest.php +++ b/Tools/Tests/Unit/TestsGenerator/Generator/AddAndGetTestsTest.php @@ -7,22 +7,22 @@ * @license "New" BSD License */ -namespace Tests\XSLTBenchmark\TestsGenerator\Generator; +namespace Tests\XSLTBenchmarking\TestsGenerator\Generator; require_once ROOT . '/TestsGenerator/Generator.php'; require_once ROOT . '/TestsGenerator/Test.php'; -use \Tests\XSLTBenchmark\TestCase; -use \XSLTBenchmark\TestsGenerator\Generator; -use \XSLTBenchmark\TestsGenerator\Test; +use \Tests\XSLTBenchmarking\TestCase; +use \XSLTBenchmarking\TestsGenerator\Generator; +use \XSLTBenchmarking\TestsGenerator\Test; /** * AddAndGetTestsTest * * @author Viktor Mašíček * - * @covers \XSLTBenchmark\TestsGenerator\Generator::addTests - * @covers \XSLTBenchmark\TestsGenerator\Generator::getTests + * @covers \XSLTBenchmarking\TestsGenerator\Generator::addTests + * @covers \XSLTBenchmarking\TestsGenerator\Generator::getTests */ class AddAndGetTestsTest extends TestCase { diff --git a/Tools/Tests/Unit/TestsGenerator/Generator/GenerateAllTest.php b/Tools/Tests/Unit/TestsGenerator/Generator/GenerateAllTest.php index 603cfaf..15957a0 100644 --- a/Tools/Tests/Unit/TestsGenerator/Generator/GenerateAllTest.php +++ b/Tools/Tests/Unit/TestsGenerator/Generator/GenerateAllTest.php @@ -7,23 +7,23 @@ * @license "New" BSD License */ -namespace Tests\XSLTBenchmark\TestsGenerator\Generator; +namespace Tests\XSLTBenchmarking\TestsGenerator\Generator; require_once ROOT . '/TestsGenerator/Generator.php'; require_once ROOT . '/TestsGenerator/Test.php'; -use \Tests\XSLTBenchmark\TestCase; -use \XSLTBenchmark\TestsGenerator\Generator; -use \XSLTBenchmark\TestsGenerator\Test; +use \Tests\XSLTBenchmarking\TestCase; +use \XSLTBenchmarking\TestsGenerator\Generator; +use \XSLTBenchmarking\TestsGenerator\Test; /** * AddAndGetTestsTest * * @author Viktor Mašíček * - * @covers \XSLTBenchmark\TestsGenerator\Generator::generateAll - * @covers \XSLTBenchmark\TestsGenerator\Generator::generateTest - * @covers \XSLTBenchmark\TestsGenerator\Generator::generateInputOutputCouples + * @covers \XSLTBenchmarking\TestsGenerator\Generator::generateAll + * @covers \XSLTBenchmarking\TestsGenerator\Generator::generateTest + * @covers \XSLTBenchmarking\TestsGenerator\Generator::generateInputOutputCouples */ class GenerateAllTest extends TestCase { diff --git a/Tools/Tests/Unit/TestsGenerator/Generator/GeneratorTest.php b/Tools/Tests/Unit/TestsGenerator/Generator/GeneratorTest.php index 9597047..fd66823 100644 --- a/Tools/Tests/Unit/TestsGenerator/Generator/GeneratorTest.php +++ b/Tools/Tests/Unit/TestsGenerator/Generator/GeneratorTest.php @@ -7,19 +7,19 @@ * @license "New" BSD License */ -namespace Tests\XSLTBenchmark\TestsGenerator\Generator; +namespace Tests\XSLTBenchmarking\TestsGenerator\Generator; require_once ROOT . '/TestsGenerator/Generator.php'; -use \Tests\XSLTBenchmark\TestCase; -use \XSLTBenchmark\TestsGenerator\Generator; +use \Tests\XSLTBenchmarking\TestCase; +use \XSLTBenchmarking\TestsGenerator\Generator; /** * GeneratorTest * * @author Viktor Mašíček * - * @covers \XSLTBenchmark\TestsGenerator\Generator::__construct + * @covers \XSLTBenchmarking\TestsGenerator\Generator::__construct */ class GeneratorTest extends TestCase { diff --git a/Tools/Tests/Unit/TestsGenerator/Params/Params/ParamsTest.php b/Tools/Tests/Unit/TestsGenerator/Params/Params/ParamsTest.php index d7521e6..a2090ed 100644 --- a/Tools/Tests/Unit/TestsGenerator/Params/Params/ParamsTest.php +++ b/Tools/Tests/Unit/TestsGenerator/Params/Params/ParamsTest.php @@ -7,10 +7,10 @@ * @license "New" BSD License */ -namespace Tests\XSLTBenchmark\TestsGenerator\Params; +namespace Tests\XSLTBenchmarking\TestsGenerator\Params; -use \Tests\XSLTBenchmark\TestCase; -use \XSLTBenchmark\TestsGenerator\Params; +use \Tests\XSLTBenchmarking\TestCase; +use \XSLTBenchmarking\TestsGenerator\Params; require_once ROOT_TOOLS . '/TestsGenerator/Params/Params.php'; @@ -19,7 +19,7 @@ * * @author Viktor Mašíček * - * @covers \XSLTBenchmark\TestsGenerator\Params::__construct + * @covers \XSLTBenchmarking\TestsGenerator\Params::__construct */ class ParamsTest extends TestCase { @@ -43,8 +43,8 @@ public function testXml() { $params = new Params($this->setDirSep(__DIR__ . '/params.xml'), __DIR__); $driver = $this->getPropertyValue($params, 'driver'); - $this->assertInstanceOf('\XSLTBenchmark\TestsGenerator\IParamsDriver', $driver); - $this->assertInstanceOf('\XSLTBenchmark\TestsGenerator\XmlParamsDriver', $driver); + $this->assertInstanceOf('\XSLTBenchmarking\TestsGenerator\IParamsDriver', $driver); + $this->assertInstanceOf('\XSLTBenchmarking\TestsGenerator\XmlParamsDriver', $driver); } diff --git a/Tools/Tests/Unit/TestsGenerator/Params/XmlParamsDriver/GetValuesTest.php b/Tools/Tests/Unit/TestsGenerator/Params/XmlParamsDriver/GetValuesTest.php index b1bf225..bd99b5e 100644 --- a/Tools/Tests/Unit/TestsGenerator/Params/XmlParamsDriver/GetValuesTest.php +++ b/Tools/Tests/Unit/TestsGenerator/Params/XmlParamsDriver/GetValuesTest.php @@ -7,10 +7,10 @@ * @license "New" BSD License */ -namespace Tests\XSLTBenchmark\TestsGenerator\XmlParamsDriver; +namespace Tests\XSLTBenchmarking\TestsGenerator\XmlParamsDriver; -use \Tests\XSLTBenchmark\TestCase; -use \XSLTBenchmark\TestsGenerator\XmlParamsDriver; +use \Tests\XSLTBenchmarking\TestCase; +use \XSLTBenchmarking\TestsGenerator\XmlParamsDriver; require_once ROOT_TOOLS . '/TestsGenerator/Params/XmlParamsDriver.php'; @@ -19,14 +19,14 @@ * * @author Viktor Mašíček * - * @covers \XSLTBenchmark\TestsGenerator\XmlParamsDriver::getTemplateName - * @covers \XSLTBenchmark\TestsGenerator\XmlParamsDriver::getTemplatePath - * @covers \XSLTBenchmark\TestsGenerator\XmlParamsDriver::getTemplatingType - * @covers \XSLTBenchmark\TestsGenerator\XmlParamsDriver::getTestsNames - * @covers \XSLTBenchmark\TestsGenerator\XmlParamsDriver::getTestFilesPaths - * @covers \XSLTBenchmark\TestsGenerator\XmlParamsDriver::getTestSettings - * @covers \XSLTBenchmark\TestsGenerator\XmlParamsDriver::getAllFilesPaths - * @covers \XSLTBenchmark\TestsGenerator\XmlParamsDriver::createAllFilesPaths + * @covers \XSLTBenchmarking\TestsGenerator\XmlParamsDriver::getTemplateName + * @covers \XSLTBenchmarking\TestsGenerator\XmlParamsDriver::getTemplatePath + * @covers \XSLTBenchmarking\TestsGenerator\XmlParamsDriver::getTemplatingType + * @covers \XSLTBenchmarking\TestsGenerator\XmlParamsDriver::getTestsNames + * @covers \XSLTBenchmarking\TestsGenerator\XmlParamsDriver::getTestFilesPaths + * @covers \XSLTBenchmarking\TestsGenerator\XmlParamsDriver::getTestSettings + * @covers \XSLTBenchmarking\TestsGenerator\XmlParamsDriver::getAllFilesPaths + * @covers \XSLTBenchmarking\TestsGenerator\XmlParamsDriver::createAllFilesPaths */ class GetValuesTest extends TestCase { diff --git a/Tools/Tests/Unit/TestsGenerator/Params/XmlParamsDriver/XmlParamsDriverTest.php b/Tools/Tests/Unit/TestsGenerator/Params/XmlParamsDriver/XmlParamsDriverTest.php index fc6b753..ad4dfbc 100644 --- a/Tools/Tests/Unit/TestsGenerator/Params/XmlParamsDriver/XmlParamsDriverTest.php +++ b/Tools/Tests/Unit/TestsGenerator/Params/XmlParamsDriver/XmlParamsDriverTest.php @@ -7,10 +7,10 @@ * @license "New" BSD License */ -namespace Tests\XSLTBenchmark\TestsGenerator\XmlParamsDriver; +namespace Tests\XSLTBenchmarking\TestsGenerator\XmlParamsDriver; -use \Tests\XSLTBenchmark\TestCase; -use \XSLTBenchmark\TestsGenerator\XmlParamsDriver; +use \Tests\XSLTBenchmarking\TestCase; +use \XSLTBenchmarking\TestsGenerator\XmlParamsDriver; require_once ROOT_TOOLS . '/TestsGenerator/Params/XmlParamsDriver.php'; @@ -19,7 +19,7 @@ * * @author Viktor Mašíček * - * @covers \XSLTBenchmark\TestsGenerator\XmlParamsDriver::__construct + * @covers \XSLTBenchmarking\TestsGenerator\XmlParamsDriver::__construct */ class XmlParamsDriverTest extends TestCase { @@ -28,8 +28,8 @@ class XmlParamsDriverTest extends TestCase public function test() { $driver = new XmlParamsDriver($this->setDirSep(__DIR__ . '/params.xml'), __DIR__); - $this->assertInstanceOf('\XSLTBenchmark\TestsGenerator\IParamsDriver', $driver); - $this->assertInstanceOf('\XSLTBenchmark\TestsGenerator\XmlParamsDriver', $driver); + $this->assertInstanceOf('\XSLTBenchmarking\TestsGenerator\IParamsDriver', $driver); + $this->assertInstanceOf('\XSLTBenchmarking\TestsGenerator\XmlParamsDriver', $driver); } diff --git a/Tools/Tests/Unit/TestsGenerator/Templating/SimpleTemplatingDriver/GenerateTest.php b/Tools/Tests/Unit/TestsGenerator/Templating/SimpleTemplatingDriver/GenerateTest.php index 2826307..0978403 100644 --- a/Tools/Tests/Unit/TestsGenerator/Templating/SimpleTemplatingDriver/GenerateTest.php +++ b/Tools/Tests/Unit/TestsGenerator/Templating/SimpleTemplatingDriver/GenerateTest.php @@ -7,10 +7,10 @@ * @license "New" BSD License */ -namespace Tests\XSLTBenchmark\TestsGenerator\SimpleTemplatingDriver; +namespace Tests\XSLTBenchmarking\TestsGenerator\SimpleTemplatingDriver; -use \Tests\XSLTBenchmark\TestCase; -use \XSLTBenchmark\TestsGenerator\SimpleTemplatingDriver; +use \Tests\XSLTBenchmarking\TestCase; +use \XSLTBenchmarking\TestsGenerator\SimpleTemplatingDriver; require_once ROOT_TOOLS . '/TestsGenerator/Templating/SimpleTemplatingDriver.php'; @@ -19,8 +19,8 @@ * * @author Viktor Mašíček * - * @covers XSLTBenchmark\TestsGenerator\SimpleTemplatingDriver::__construct - * @covers XSLTBenchmark\TestsGenerator\SimpleTemplatingDriver::generate + * @covers XSLTBenchmarking\TestsGenerator\SimpleTemplatingDriver::__construct + * @covers XSLTBenchmarking\TestsGenerator\SimpleTemplatingDriver::generate */ class GenerateTest extends TestCase { diff --git a/Tools/Tests/Unit/TestsGenerator/Templating/SmartyTemplatingDriver/GenerateTest.php b/Tools/Tests/Unit/TestsGenerator/Templating/SmartyTemplatingDriver/GenerateTest.php index eae302c..337db9c 100644 --- a/Tools/Tests/Unit/TestsGenerator/Templating/SmartyTemplatingDriver/GenerateTest.php +++ b/Tools/Tests/Unit/TestsGenerator/Templating/SmartyTemplatingDriver/GenerateTest.php @@ -7,10 +7,10 @@ * @license "New" BSD License */ -namespace Tests\XSLTBenchmark\TestsGenerator\SmartyTemplatingDriver; +namespace Tests\XSLTBenchmarking\TestsGenerator\SmartyTemplatingDriver; -use \Tests\XSLTBenchmark\TestCase; -use \XSLTBenchmark\TestsGenerator\SmartyTemplatingDriver; +use \Tests\XSLTBenchmarking\TestCase; +use \XSLTBenchmarking\TestsGenerator\SmartyTemplatingDriver; require_once ROOT_TOOLS . '/TestsGenerator/Templating/SmartyTemplatingDriver.php'; @@ -19,8 +19,8 @@ * * @author Viktor Mašíček * - * @covers XSLTBenchmark\TestsGenerator\SmartyTemplatingDriver::__construct - * @covers XSLTBenchmark\TestsGenerator\SmartyTemplatingDriver::generate + * @covers XSLTBenchmarking\TestsGenerator\SmartyTemplatingDriver::__construct + * @covers XSLTBenchmarking\TestsGenerator\SmartyTemplatingDriver::generate */ class GenerateTest extends TestCase { diff --git a/Tools/Tests/Unit/TestsGenerator/Templating/Templating/GenerateTest.php b/Tools/Tests/Unit/TestsGenerator/Templating/Templating/GenerateTest.php index 3a76192..7b6c43b 100644 --- a/Tools/Tests/Unit/TestsGenerator/Templating/Templating/GenerateTest.php +++ b/Tools/Tests/Unit/TestsGenerator/Templating/Templating/GenerateTest.php @@ -7,10 +7,10 @@ * @license "New" BSD License */ -namespace Tests\XSLTBenchmark\TestsGenerator\Templating; +namespace Tests\XSLTBenchmarking\TestsGenerator\Templating; -use \Tests\XSLTBenchmark\TestCase; -use \XSLTBenchmark\TestsGenerator\Templating; +use \Tests\XSLTBenchmarking\TestCase; +use \XSLTBenchmarking\TestsGenerator\Templating; require_once ROOT_TOOLS . '/TestsGenerator/Templating/Templating.php'; require_once ROOT_TOOLS . '/TestsGenerator/Templating/ITemplatingDriver.php'; @@ -20,7 +20,7 @@ * * @author Viktor Mašíček * - * @covers XSLTBenchmark\TestsGenerator\Templating::generate + * @covers XSLTBenchmarking\TestsGenerator\Templating::generate */ class GenerateTest extends TestCase { @@ -31,7 +31,7 @@ public function testOk() $templating = new Templating('simple', __DIR__); // mocked driver - $driver = \Mockery::mock('\XSLTBenchmark\TestsGenerator\ITemplatingDriver'); + $driver = \Mockery::mock('\XSLTBenchmarking\TestsGenerator\ITemplatingDriver'); $driver->shouldReceive('generate')->with(__FILE__, 'output/path', array('foo', 'bar' => 'car')); $this->setPropertyValue($templating, 'driver', $driver); diff --git a/Tools/Tests/Unit/TestsGenerator/Templating/Templating/TemplatingTest.php b/Tools/Tests/Unit/TestsGenerator/Templating/Templating/TemplatingTest.php index 579453d..b17c678 100644 --- a/Tools/Tests/Unit/TestsGenerator/Templating/Templating/TemplatingTest.php +++ b/Tools/Tests/Unit/TestsGenerator/Templating/Templating/TemplatingTest.php @@ -7,10 +7,10 @@ * @license "New" BSD License */ -namespace Tests\XSLTBenchmark\TestsGenerator\Templating; +namespace Tests\XSLTBenchmarking\TestsGenerator\Templating; -use \Tests\XSLTBenchmark\TestCase; -use \XSLTBenchmark\TestsGenerator\Templating; +use \Tests\XSLTBenchmarking\TestCase; +use \XSLTBenchmarking\TestsGenerator\Templating; require_once ROOT_TOOLS . '/TestsGenerator/Templating/Templating.php'; @@ -27,8 +27,8 @@ public function testSimple() { $templating = new Templating('simple', __DIR__); $driver = $this->getPropertyValue($templating, 'driver'); - $this->assertInstanceOf('\XSLTBenchmark\TestsGenerator\ITemplatingDriver', $driver); - $this->assertInstanceOf('\XSLTBenchmark\TestsGenerator\SimpleTemplatingDriver', $driver); + $this->assertInstanceOf('\XSLTBenchmarking\TestsGenerator\ITemplatingDriver', $driver); + $this->assertInstanceOf('\XSLTBenchmarking\TestsGenerator\SimpleTemplatingDriver', $driver); } @@ -36,8 +36,8 @@ public function testSmarty() { $templating = new Templating('smarty', __DIR__); $driver = $this->getPropertyValue($templating, 'driver'); - $this->assertInstanceOf('\XSLTBenchmark\TestsGenerator\ITemplatingDriver', $driver); - $this->assertInstanceOf('\XSLTBenchmark\TestsGenerator\SmartyTemplatingDriver', $driver); + $this->assertInstanceOf('\XSLTBenchmarking\TestsGenerator\ITemplatingDriver', $driver); + $this->assertInstanceOf('\XSLTBenchmarking\TestsGenerator\SmartyTemplatingDriver', $driver); } diff --git a/Tools/Tests/Unit/TestsGenerator/TestTest.php b/Tools/Tests/Unit/TestsGenerator/TestTest.php index 14d2a5a..99f15b6 100644 --- a/Tools/Tests/Unit/TestsGenerator/TestTest.php +++ b/Tools/Tests/Unit/TestsGenerator/TestTest.php @@ -7,10 +7,10 @@ * @license "New" BSD License */ -namespace Tests\XSLTBenchmark\TestsGenerator\Test; +namespace Tests\XSLTBenchmarking\TestsGenerator\Test; -use \Tests\XSLTBenchmark\TestCase; -use \XSLTBenchmark\TestsGenerator\Test; +use \Tests\XSLTBenchmarking\TestCase; +use \XSLTBenchmarking\TestsGenerator\Test; require_once ROOT_TOOLS . '/TestsGenerator/Test.php'; @@ -23,7 +23,7 @@ class TestTest extends TestCase { /** - * @covers XSLTBenchmark\TestsGenerator\Test::__construct + * @covers XSLTBenchmarking\TestsGenerator\Test::__construct */ public function testTest() { @@ -33,8 +33,8 @@ public function testTest() /** - * @covers XSLTBenchmark\TestsGenerator\Test::setTemplatePath - * @covers XSLTBenchmark\TestsGenerator\Test::getTemplatePath + * @covers XSLTBenchmarking\TestsGenerator\Test::setTemplatePath + * @covers XSLTBenchmarking\TestsGenerator\Test::getTemplatePath */ public function testTemplatePath() { @@ -51,12 +51,12 @@ public function testTemplatePath() /** * @dataProvider providerTemplatePathWrong * - * @covers XSLTBenchmark\TestsGenerator\Test::setTemplatePath + * @covers XSLTBenchmarking\TestsGenerator\Test::setTemplatePath */ public function testTemplatePathWrong($path) { $test = new Test('Foo'); - $this->setExpectedException('\XSLTBenchmark\InvalidArgumentException'); + $this->setExpectedException('\XSLTBenchmarking\InvalidArgumentException'); $test->setTemplatePath($path); } @@ -78,8 +78,8 @@ public function providerTemplatePathWrong() /** - * @covers XSLTBenchmark\TestsGenerator\Test::setTemplatingType - * @covers XSLTBenchmark\TestsGenerator\Test::getTemplatingType + * @covers XSLTBenchmarking\TestsGenerator\Test::setTemplatingType + * @covers XSLTBenchmarking\TestsGenerator\Test::getTemplatingType */ public function testTemplatingType() { @@ -90,8 +90,8 @@ public function testTemplatingType() /** - * @covers XSLTBenchmark\TestsGenerator\Test::setPath - * @covers XSLTBenchmark\TestsGenerator\Test::getPath + * @covers XSLTBenchmarking\TestsGenerator\Test::setPath + * @covers XSLTBenchmarking\TestsGenerator\Test::getPath */ public function testPath() { @@ -102,7 +102,7 @@ public function testPath() /** - * @covers XSLTBenchmark\TestsGenerator\Test::getXsltName + * @covers XSLTBenchmarking\TestsGenerator\Test::getXsltName */ public function testGetXsltName() { @@ -113,7 +113,7 @@ public function testGetXsltName() /** - * @covers XSLTBenchmark\TestsGenerator\Test::getXsltPath + * @covers XSLTBenchmarking\TestsGenerator\Test::getXsltPath */ public function testGetXsltPath() { @@ -129,8 +129,8 @@ public function testGetXsltPath() /** - * @covers XSLTBenchmark\TestsGenerator\Test::addSettings - * @covers XSLTBenchmark\TestsGenerator\Test::getSettings + * @covers XSLTBenchmarking\TestsGenerator\Test::addSettings + * @covers XSLTBenchmarking\TestsGenerator\Test::getSettings */ public function testSettings() { @@ -145,8 +145,8 @@ public function testSettings() /** - * @covers XSLTBenchmark\TestsGenerator\Test::addFilesPaths - * @covers XSLTBenchmark\TestsGenerator\Test::getFilesPaths + * @covers XSLTBenchmarking\TestsGenerator\Test::addFilesPaths + * @covers XSLTBenchmarking\TestsGenerator\Test::getFilesPaths */ public function testFilesPaths() { diff --git a/Tools/Tests/Unit/TestsGenerator/XmlGenerator/EasyXmlGeneratorDriver/GenerateTest.php b/Tools/Tests/Unit/TestsGenerator/XmlGenerator/EasyXmlGeneratorDriver/GenerateTest.php index 2f77190..5bb7c5f 100644 --- a/Tools/Tests/Unit/TestsGenerator/XmlGenerator/EasyXmlGeneratorDriver/GenerateTest.php +++ b/Tools/Tests/Unit/TestsGenerator/XmlGenerator/EasyXmlGeneratorDriver/GenerateTest.php @@ -7,18 +7,18 @@ * @license "New" BSD License */ -namespace Tests\XSLTBenchmark\TestsGenerator\EasyXmlGeneratorDriver; +namespace Tests\XSLTBenchmarking\TestsGenerator\EasyXmlGeneratorDriver; require_once ROOT . '/TestsGenerator/XmlGenerator/EasyXmlGeneratorDriver.php'; -use \Tests\XSLTBenchmark\TestCase; +use \Tests\XSLTBenchmarking\TestCase; /** * GenerateTest * * @author Viktor Mašíček * - * @covers \XSLTBenchmark\TestsGenerator\EasyXmlGeneratorDriver::generate + * @covers \XSLTBenchmarking\TestsGenerator\EasyXmlGeneratorDriver::generate */ class GenerateTest extends TestCase { @@ -26,7 +26,7 @@ class GenerateTest extends TestCase public function test() { - $generator = new \XSLTBenchmark\TestsGenerator\EasyXmlGeneratorDriver(); + $generator = new \XSLTBenchmarking\TestsGenerator\EasyXmlGeneratorDriver(); $outputPath = $this->setDirSep(__DIR__ . '/foo.xml'); $expectedOutputPath = $this->setDirSep(__DIR__ . '/expected.xml'); diff --git a/Tools/Tests/Unit/TestsGenerator/XmlGenerator/XmlGenerator/XmlGeneratorTest.php b/Tools/Tests/Unit/TestsGenerator/XmlGenerator/XmlGenerator/XmlGeneratorTest.php index 3b939e4..de5cc00 100644 --- a/Tools/Tests/Unit/TestsGenerator/XmlGenerator/XmlGenerator/XmlGeneratorTest.php +++ b/Tools/Tests/Unit/TestsGenerator/XmlGenerator/XmlGenerator/XmlGeneratorTest.php @@ -7,10 +7,10 @@ * @license "New" BSD License */ -namespace Tests\XSLTBenchmark\TestsGenerator\XmlGenerator; +namespace Tests\XSLTBenchmarking\TestsGenerator\XmlGenerator; -use \Tests\XSLTBenchmark\TestCase; -use \XSLTBenchmark\TestsGenerator\XmlGenerator; +use \Tests\XSLTBenchmarking\TestCase; +use \XSLTBenchmarking\TestsGenerator\XmlGenerator; require_once ROOT_TOOLS . '/TestsGenerator/XmlGenerator/XmlGenerator.php'; @@ -19,7 +19,7 @@ * * @author Viktor Mašíček * - * @covers \XSLTBenchmark\TestsGenerator\XmlGenerator + * @covers \XSLTBenchmarking\TestsGenerator\XmlGenerator */ class XmlGeneratorTest extends TestCase { @@ -29,8 +29,8 @@ public function testEasy() { $params = new XmlGenerator('easy'); $driver = $this->getPropertyValue($params, 'driver'); - $this->assertInstanceOf('\XSLTBenchmark\TestsGenerator\IXmlGeneratorDriver', $driver); - $this->assertInstanceOf('\XSLTBenchmark\TestsGenerator\EasyXmlGeneratorDriver', $driver); + $this->assertInstanceOf('\XSLTBenchmarking\TestsGenerator\IXmlGeneratorDriver', $driver); + $this->assertInstanceOf('\XSLTBenchmarking\TestsGenerator\EasyXmlGeneratorDriver', $driver); } diff --git a/Tools/run.php b/Tools/run.php index 80f3b20..7b3e9f2 100644 --- a/Tools/run.php +++ b/Tools/run.php @@ -11,5 +11,5 @@ */ require_once __DIR__ . DIRECTORY_SEPARATOR . 'Runner.php'; -$runner = new XSLTBenchmark\Tools\Runner(); +$runner = new XSLTBenchmarking\Tools\Runner(); $runner->run(); diff --git a/index.php b/index.php index 4f1a00f..144d60d 100644 --- a/index.php +++ b/index.php @@ -19,6 +19,6 @@ else { require_once __DIR__ . '/RunnerConsole/Runner.php'; - $runner = new \XSLTBenchmark\RunnerConsole\Runner(__DIR__); + $runner = new \XSLTBenchmarking\RunnerConsole\Runner(__DIR__); $runner->run(); }