Skip to content

Commit 9d31d78

Browse files
okolesnykbaev
authored andcommitted
update namespace (fixes #44, via #45)
1 parent 48598f4 commit 9d31d78

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/Yandex/Allure/Adapter/AllureAdapter.php renamed to src/Yandex/Allure/Codeception/AllureCodeception.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
namespace Yandex\Allure\Adapter;
2+
namespace Yandex\Allure\Codeception;
33

44
use Codeception\Configuration;
55
use Codeception\Event\FailEvent;
@@ -16,12 +16,14 @@
1616
use Codeception\Util\Locator;
1717
use Symfony\Component\Filesystem\Filesystem;
1818
use Symfony\Component\Finder\Finder;
19+
use Yandex\Allure\Adapter\Allure;
1920
use Yandex\Allure\Adapter\Annotation;
2021
use Yandex\Allure\Adapter\Annotation\Description;
2122
use Yandex\Allure\Adapter\Annotation\Features;
2223
use Yandex\Allure\Adapter\Annotation\Issues;
2324
use Yandex\Allure\Adapter\Annotation\Stories;
2425
use Yandex\Allure\Adapter\Annotation\Title;
26+
use Yandex\Allure\Adapter\Event\AddParameterEvent;
2527
use Yandex\Allure\Adapter\Event\StepFinishedEvent;
2628
use Yandex\Allure\Adapter\Event\StepStartedEvent;
2729
use Yandex\Allure\Adapter\Event\TestCaseBrokenEvent;
@@ -46,7 +48,7 @@
4648
const DEFAULT_REPORT_DIRECTORY = 'allure-report';
4749
const INITIALIZED_PARAMETER = '_initialized';
4850

49-
class AllureAdapter extends Extension
51+
class AllureCodeception extends Extension
5052
{
5153
//NOTE: here we implicitly assume that PHP runs in single-threaded mode
5254
private $uuid;
@@ -306,7 +308,7 @@ function ($a) {
306308
$currentExample = $test->getMetadata()->getCurrent();
307309
if ($currentExample && isset($currentExample['example']) ) {
308310
foreach ($currentExample['example'] as $name => $param) {
309-
$paramEvent = new Event\AddParameterEvent(
311+
$paramEvent = new AddParameterEvent(
310312
$name, $this->stringifyArgument($param), ParameterKind::ARGUMENT);
311313
$this->getLifecycle()->fire($paramEvent);
312314
}
@@ -319,7 +321,7 @@ function ($a) {
319321
$paramNames = $testMethod->getParameters();
320322
foreach ($method->invoke($test) as $key => $param) {
321323
$paramName = array_shift($paramNames);
322-
$paramEvent = new Event\AddParameterEvent(
324+
$paramEvent = new AddParameterEvent(
323325
is_null($paramName)
324326
? $key
325327
: $paramName->getName(),

0 commit comments

Comments
 (0)