Skip to content

Commit

Permalink
update namespace (fixes #44, via #45)
Browse files Browse the repository at this point in the history
  • Loading branch information
okolesnyk authored and baev committed Dec 18, 2018
1 parent 48598f4 commit 9d31d78
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Yandex\Allure\Adapter;
namespace Yandex\Allure\Codeception;

use Codeception\Configuration;
use Codeception\Event\FailEvent;
Expand All @@ -16,12 +16,14 @@
use Codeception\Util\Locator;
use Symfony\Component\Filesystem\Filesystem;
use Symfony\Component\Finder\Finder;
use Yandex\Allure\Adapter\Allure;
use Yandex\Allure\Adapter\Annotation;
use Yandex\Allure\Adapter\Annotation\Description;
use Yandex\Allure\Adapter\Annotation\Features;
use Yandex\Allure\Adapter\Annotation\Issues;
use Yandex\Allure\Adapter\Annotation\Stories;
use Yandex\Allure\Adapter\Annotation\Title;
use Yandex\Allure\Adapter\Event\AddParameterEvent;
use Yandex\Allure\Adapter\Event\StepFinishedEvent;
use Yandex\Allure\Adapter\Event\StepStartedEvent;
use Yandex\Allure\Adapter\Event\TestCaseBrokenEvent;
Expand All @@ -46,7 +48,7 @@
const DEFAULT_REPORT_DIRECTORY = 'allure-report';
const INITIALIZED_PARAMETER = '_initialized';

class AllureAdapter extends Extension
class AllureCodeception extends Extension
{
//NOTE: here we implicitly assume that PHP runs in single-threaded mode
private $uuid;
Expand Down Expand Up @@ -306,7 +308,7 @@ function ($a) {
$currentExample = $test->getMetadata()->getCurrent();
if ($currentExample && isset($currentExample['example']) ) {
foreach ($currentExample['example'] as $name => $param) {
$paramEvent = new Event\AddParameterEvent(
$paramEvent = new AddParameterEvent(
$name, $this->stringifyArgument($param), ParameterKind::ARGUMENT);
$this->getLifecycle()->fire($paramEvent);
}
Expand All @@ -319,7 +321,7 @@ function ($a) {
$paramNames = $testMethod->getParameters();
foreach ($method->invoke($test) as $key => $param) {
$paramName = array_shift($paramNames);
$paramEvent = new Event\AddParameterEvent(
$paramEvent = new AddParameterEvent(
is_null($paramName)
? $key
: $paramName->getName(),
Expand Down

0 comments on commit 9d31d78

Please sign in to comment.