update webpatser/laravel-uuid to version 3
Some checks failed
abc-api/abcParser/pipeline/head There was a failure building this commit

This commit is contained in:
2020-06-20 12:36:34 -04:00
parent a530e8fd78
commit 2cdf7dd1cf
94 changed files with 1846 additions and 1848 deletions

0
.env-testing Normal file → Executable file
View File

0
.gitignore vendored Normal file → Executable file
View File

0
Jenkinsfile vendored Normal file → Executable file
View File

0
README.md Normal file → Executable file
View File

0
codeception.yml Normal file → Executable file
View File

2
composer.json Normal file → Executable file
View File

@@ -12,7 +12,7 @@
"require": { "require": {
"php": ">=7.1", "php": ">=7.1",
"zackkitzmiller/tiny": "^1.2", "zackkitzmiller/tiny": "^1.2",
"webpatser/laravel-uuid": "^2.0", "webpatser/laravel-uuid": "~3.0",
"enzyme/axiom": "^4.2", "enzyme/axiom": "^4.2",
"enzyme/freckle": "^0.3.0", "enzyme/freckle": "^0.3.0",
"illuminate/database": "^5.5", "illuminate/database": "^5.5",

2433
composer.lock generated Normal file → Executable file

File diff suppressed because it is too large Load Diff

0
database/migrations/.gitkeep Normal file → Executable file
View File

View File

@@ -1,7 +1,7 @@
<?php <?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateUsersTable extends Migration class CreateUsersTable extends Migration
{ {

View File

@@ -1,7 +1,7 @@
<?php <?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreatePasswordResetsTable extends Migration class CreatePasswordResetsTable extends Migration
{ {

View File

@@ -1,7 +1,7 @@
<?php <?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateParseabcTables extends Migration class CreateParseabcTables extends Migration
{ {

View File

@@ -1,7 +1,7 @@
<?php <?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateJobsTable extends Migration class CreateJobsTable extends Migration
{ {

View File

@@ -1,7 +1,7 @@
<?php <?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateFailedJobsTable extends Migration class CreateFailedJobsTable extends Migration
{ {

0
docker-compose.yml Normal file → Executable file
View File

0
src/Application/Boundary/PersonMapper.php Normal file → Executable file
View File

0
src/Application/PersonFactory.php Normal file → Executable file
View File

0
src/Application/PersonRepository.php Normal file → Executable file
View File

0
src/Application/UseCases/ExtractTuneFromCollection.php Normal file → Executable file
View File

0
src/Application/UseCases/ImportAbcFile.php Normal file → Executable file
View File

3
src/Domain/Atoms/EmailAtom.php Normal file → Executable file
View File

@@ -2,6 +2,7 @@
namespace XaiCorp\AbcParser\Domain\Atoms; namespace XaiCorp\AbcParser\Domain\Atoms;
use Enzyme\Axiom\Atoms\AtomInterface; use Enzyme\Axiom\Atoms\AtomInterface;
use Exception;
class EmailAtom implements AtomInterface class EmailAtom implements AtomInterface
{ {
@@ -26,7 +27,7 @@ class EmailAtom implements AtomInterface
private function validateEmail($value) private function validateEmail($value)
{ {
if (!$this->isValid($value)) { if (!$this->isValid($value)) {
throw new \Exception('Not a valid email'); throw new Exception('Not a valid email');
} }
} }

0
src/Domain/Atoms/UnsignedIntegerAtom.php Normal file → Executable file
View File

0
src/Domain/Boundary/PersonFactory.php Normal file → Executable file
View File

0
src/Domain/Boundary/PersonRepository.php Normal file → Executable file
View File

0
src/Domain/Core/AttributeTrait.php Normal file → Executable file
View File

0
src/Domain/Core/Author.php Normal file → Executable file
View File

0
src/Domain/Core/Collection.php Normal file → Executable file
View File

0
src/Domain/Core/Composer.php Normal file → Executable file
View File

0
src/Domain/Core/EntityInterface.php Normal file → Executable file
View File

0
src/Domain/Core/IdentityTrait.php Normal file → Executable file
View File

0
src/Domain/Core/MultivalueAttribute.php Normal file → Executable file
View File

3
src/Domain/Core/Person.php Normal file → Executable file
View File

@@ -2,6 +2,7 @@
namespace XaiCorp\AbcParser\Domain\Core; namespace XaiCorp\AbcParser\Domain\Core;
use Enzyme\Axiom\Atoms\StringAtom; use Enzyme\Axiom\Atoms\StringAtom;
use Exception;
use Webpatser\Uuid\Uuid; use Webpatser\Uuid\Uuid;
use XaiCorp\AbcParser\Domain\Atoms\EmailAtom; use XaiCorp\AbcParser\Domain\Atoms\EmailAtom;
@@ -69,7 +70,7 @@ class Person implements EntityInterface
public function get($attribute) public function get($attribute)
{ {
if (!$this->has($attribute)) { if (!$this->has($attribute)) {
throw new \Exception('Cannot access attribute on person'); throw new Exception('Cannot access attribute on person');
} }
return $this->{$attribute}; return $this->{$attribute};

2
src/Domain/Core/Setting.php Normal file → Executable file
View File

@@ -2,8 +2,6 @@
namespace XaiCorp\AbcParser\Domain\Core; namespace XaiCorp\AbcParser\Domain\Core;
use Enzyme\Axiom\Atoms\StringAtom;
class Setting class Setting
{ {
use IdentityTrait; use IdentityTrait;

0
src/Domain/Core/Transcriber.php Normal file → Executable file
View File

1
src/Domain/Core/Tune.php Normal file → Executable file
View File

@@ -1,7 +1,6 @@
<?php <?php
namespace XaiCorp\AbcParser\Domain\Core; namespace XaiCorp\AbcParser\Domain\Core;
use Enzyme\Axiom\Atoms\IntegerAtom;
use Enzyme\Axiom\Atoms\StringAtom; use Enzyme\Axiom\Atoms\StringAtom;
use Webpatser\Uuid\Uuid; use Webpatser\Uuid\Uuid;
use XaiCorp\AbcParser\Domain\Atoms\UnsignedIntegerAtom; use XaiCorp\AbcParser\Domain\Atoms\UnsignedIntegerAtom;

0
src/Domain/Core/TuneAttributeArrayBuilder.php Normal file → Executable file
View File

0
src/Domain/Core/TuneBuilder.php Normal file → Executable file
View File

0
src/Domain/Core/TuneCollection.php Normal file → Executable file
View File

1
src/Domain/Modules/Interpreter/Builder.php Normal file → Executable file
View File

@@ -12,6 +12,7 @@ use XaiCorp\AbcParser\Domain\Core\Transcriber;
use XaiCorp\AbcParser\Domain\Core\Tune; use XaiCorp\AbcParser\Domain\Core\Tune;
use XaiCorp\AbcParser\Domain\Core\TuneBuilder; use XaiCorp\AbcParser\Domain\Core\TuneBuilder;
use XaiCorp\AbcParser\Domain\Core\TuneCollection; use XaiCorp\AbcParser\Domain\Core\TuneCollection;
//use XaiCorp\AbcParser\Models\Laravel5\TuneSetting; //use XaiCorp\AbcParser\Models\Laravel5\TuneSetting;
class Builder implements TuneBuilder class Builder implements TuneBuilder

0
src/Domain/Modules/Interpreter/Context.php Normal file → Executable file
View File

2
src/Domain/Modules/Interpreter/DefaultInterpreter.php Normal file → Executable file
View File

@@ -1,8 +1,6 @@
<?php <?php
namespace XaiCorp\AbcParser\Domain\Modules\Interpreter; namespace XaiCorp\AbcParser\Domain\Modules\Interpreter;
use Enzyme\Axiom\Atoms\StringAtom;
use XaiCorp\AbcParser\Domain\Core\Tune;
use XaiCorp\AbcParser\Domain\Modules\Interpreter\Lexicon\Author; use XaiCorp\AbcParser\Domain\Modules\Interpreter\Lexicon\Author;
use XaiCorp\AbcParser\Domain\Modules\Interpreter\Lexicon\Book; use XaiCorp\AbcParser\Domain\Modules\Interpreter\Lexicon\Book;
use XaiCorp\AbcParser\Domain\Modules\Interpreter\Lexicon\Composer; use XaiCorp\AbcParser\Domain\Modules\Interpreter\Lexicon\Composer;

1
src/Domain/Modules/Interpreter/Interpreter.php Normal file → Executable file
View File

@@ -1,7 +1,6 @@
<?php <?php
namespace XaiCorp\AbcParser\Domain\Modules\Interpreter; namespace XaiCorp\AbcParser\Domain\Modules\Interpreter;
use XaiCorp\AbcParser\Domain\Core\Tune;
use XaiCorp\AbcParser\Domain\Core\TuneBuilder; use XaiCorp\AbcParser\Domain\Core\TuneBuilder;
use XaiCorp\AbcParser\Domain\Core\TuneCollection; use XaiCorp\AbcParser\Domain\Core\TuneCollection;

0
src/Domain/Modules/Interpreter/InterpreterPipeline.php Normal file → Executable file
View File

8
src/Domain/Modules/Interpreter/Lexicon/Author.php Normal file → Executable file
View File

@@ -1,10 +1,8 @@
<?php <?php
namespace XaiCorp\AbcParser\Domain\Modules\Interpreter\Lexicon; namespace XaiCorp\AbcParser\Domain\Modules\Interpreter\Lexicon;
use Enzyme\Axiom\Atoms\StringAtom; use Closure;
use XaiCorp\AbcParser\Domain\Atoms\UnsignedIntegerAtom;
use XaiCorp\AbcParser\Domain\Core\TuneBuilder; use XaiCorp\AbcParser\Domain\Core\TuneBuilder;
use XaiCorp\AbcParser\Domain\Modules\Interpreter\Builder;
use XaiCorp\AbcParser\Domain\Modules\Interpreter\Context; use XaiCorp\AbcParser\Domain\Modules\Interpreter\Context;
class Author implements Lex class Author implements Lex
@@ -27,10 +25,10 @@ class Author implements Lex
* @return mixed * @return mixed
* @throws \Enzyme\Axiom\Exceptions\AtomException * @throws \Enzyme\Axiom\Exceptions\AtomException
*/ */
public function handle(Context $context, \Closure $next) public function handle(Context $context, Closure $next)
{ {
$line = $context->current(); $line = $context->current();
list($key, $data) = $this->getKeyDataFromLine($line); [$key, $data] = $this->getKeyDataFromLine($line);
if ($key === 'A') { if ($key === 'A') {
$this->builder->addAuthor($data); $this->builder->addAuthor($data);

7
src/Domain/Modules/Interpreter/Lexicon/Book.php Normal file → Executable file
View File

@@ -1,10 +1,9 @@
<?php <?php
namespace XaiCorp\AbcParser\Domain\Modules\Interpreter\Lexicon; namespace XaiCorp\AbcParser\Domain\Modules\Interpreter\Lexicon;
use Closure;
use Enzyme\Axiom\Atoms\StringAtom; use Enzyme\Axiom\Atoms\StringAtom;
use XaiCorp\AbcParser\Domain\Atoms\UnsignedIntegerAtom;
use XaiCorp\AbcParser\Domain\Core\TuneBuilder; use XaiCorp\AbcParser\Domain\Core\TuneBuilder;
use XaiCorp\AbcParser\Domain\Modules\Interpreter\Builder;
use XaiCorp\AbcParser\Domain\Modules\Interpreter\Context; use XaiCorp\AbcParser\Domain\Modules\Interpreter\Context;
class Book implements Lex class Book implements Lex
@@ -27,10 +26,10 @@ class Book implements Lex
* @return mixed * @return mixed
* @throws \Enzyme\Axiom\Exceptions\AtomException * @throws \Enzyme\Axiom\Exceptions\AtomException
*/ */
public function handle(Context $context, \Closure $next) public function handle(Context $context, Closure $next)
{ {
$line = $context->current(); $line = $context->current();
list($key, $data) = $this->getKeyDataFromLine($line); [$key, $data] = $this->getKeyDataFromLine($line);
if ($key === 'B') { if ($key === 'B') {
$this->builder->addBook(new StringAtom($data)); $this->builder->addBook(new StringAtom($data));

8
src/Domain/Modules/Interpreter/Lexicon/Composer.php Normal file → Executable file
View File

@@ -1,10 +1,8 @@
<?php <?php
namespace XaiCorp\AbcParser\Domain\Modules\Interpreter\Lexicon; namespace XaiCorp\AbcParser\Domain\Modules\Interpreter\Lexicon;
use Enzyme\Axiom\Atoms\StringAtom; use Closure;
use XaiCorp\AbcParser\Domain\Atoms\UnsignedIntegerAtom;
use XaiCorp\AbcParser\Domain\Core\TuneBuilder; use XaiCorp\AbcParser\Domain\Core\TuneBuilder;
use XaiCorp\AbcParser\Domain\Modules\Interpreter\Builder;
use XaiCorp\AbcParser\Domain\Modules\Interpreter\Context; use XaiCorp\AbcParser\Domain\Modules\Interpreter\Context;
class Composer implements Lex class Composer implements Lex
@@ -27,10 +25,10 @@ class Composer implements Lex
* @return mixed * @return mixed
* @throws \Enzyme\Axiom\Exceptions\AtomException * @throws \Enzyme\Axiom\Exceptions\AtomException
*/ */
public function handle(Context $context, \Closure $next) public function handle(Context $context, Closure $next)
{ {
$line = $context->current(); $line = $context->current();
list($key, $data) = $this->getKeyDataFromLine($line); [$key, $data] = $this->getKeyDataFromLine($line);
if ($key === 'C') { if ($key === 'C') {
$this->builder->addComposer($data); $this->builder->addComposer($data);

7
src/Domain/Modules/Interpreter/Lexicon/Discography.php Normal file → Executable file
View File

@@ -1,10 +1,9 @@
<?php <?php
namespace XaiCorp\AbcParser\Domain\Modules\Interpreter\Lexicon; namespace XaiCorp\AbcParser\Domain\Modules\Interpreter\Lexicon;
use Closure;
use Enzyme\Axiom\Atoms\StringAtom; use Enzyme\Axiom\Atoms\StringAtom;
use XaiCorp\AbcParser\Domain\Atoms\UnsignedIntegerAtom;
use XaiCorp\AbcParser\Domain\Core\TuneBuilder; use XaiCorp\AbcParser\Domain\Core\TuneBuilder;
use XaiCorp\AbcParser\Domain\Modules\Interpreter\Builder;
use XaiCorp\AbcParser\Domain\Modules\Interpreter\Context; use XaiCorp\AbcParser\Domain\Modules\Interpreter\Context;
class Discography implements Lex class Discography implements Lex
@@ -27,10 +26,10 @@ class Discography implements Lex
* @return mixed * @return mixed
* @throws \Enzyme\Axiom\Exceptions\AtomException * @throws \Enzyme\Axiom\Exceptions\AtomException
*/ */
public function handle(Context $context, \Closure $next) public function handle(Context $context, Closure $next)
{ {
$line = $context->current(); $line = $context->current();
list($key, $data) = $this->getKeyDataFromLine($line); [$key, $data] = $this->getKeyDataFromLine($line);
if ($key === 'D') { if ($key === 'D') {
$this->builder->addDiscography(new StringAtom($data)); $this->builder->addDiscography(new StringAtom($data));

6
src/Domain/Modules/Interpreter/Lexicon/EndOfTune.php Normal file → Executable file
View File

@@ -1,10 +1,8 @@
<?php <?php
namespace XaiCorp\AbcParser\Domain\Modules\Interpreter\Lexicon; namespace XaiCorp\AbcParser\Domain\Modules\Interpreter\Lexicon;
use Enzyme\Axiom\Atoms\StringAtom; use Closure;
use XaiCorp\AbcParser\Domain\Atoms\UnsignedIntegerAtom;
use XaiCorp\AbcParser\Domain\Core\TuneBuilder; use XaiCorp\AbcParser\Domain\Core\TuneBuilder;
use XaiCorp\AbcParser\Domain\Modules\Interpreter\Builder;
use XaiCorp\AbcParser\Domain\Modules\Interpreter\Context; use XaiCorp\AbcParser\Domain\Modules\Interpreter\Context;
class EndOfTune implements Lex class EndOfTune implements Lex
@@ -27,7 +25,7 @@ class EndOfTune implements Lex
* @return mixed * @return mixed
* @throws \Enzyme\Axiom\Exceptions\AtomException * @throws \Enzyme\Axiom\Exceptions\AtomException
*/ */
public function handle(Context $context, \Closure $next) public function handle(Context $context, Closure $next)
{ {
$line = $context->current(); $line = $context->current();
// list($key, $data) = $this->getKeyDataFromLine($line); // list($key, $data) = $this->getKeyDataFromLine($line);

7
src/Domain/Modules/Interpreter/Lexicon/Filename.php Normal file → Executable file
View File

@@ -1,10 +1,9 @@
<?php <?php
namespace XaiCorp\AbcParser\Domain\Modules\Interpreter\Lexicon; namespace XaiCorp\AbcParser\Domain\Modules\Interpreter\Lexicon;
use Closure;
use Enzyme\Axiom\Atoms\StringAtom; use Enzyme\Axiom\Atoms\StringAtom;
use XaiCorp\AbcParser\Domain\Atoms\UnsignedIntegerAtom;
use XaiCorp\AbcParser\Domain\Core\TuneBuilder; use XaiCorp\AbcParser\Domain\Core\TuneBuilder;
use XaiCorp\AbcParser\Domain\Modules\Interpreter\Builder;
use XaiCorp\AbcParser\Domain\Modules\Interpreter\Context; use XaiCorp\AbcParser\Domain\Modules\Interpreter\Context;
class Filename implements Lex class Filename implements Lex
@@ -27,10 +26,10 @@ class Filename implements Lex
* @return mixed * @return mixed
* @throws \Enzyme\Axiom\Exceptions\AtomException * @throws \Enzyme\Axiom\Exceptions\AtomException
*/ */
public function handle(Context $context, \Closure $next) public function handle(Context $context, Closure $next)
{ {
$line = $context->current(); $line = $context->current();
list($key, $data) = $this->getKeyDataFromLine($line); [$key, $data] = $this->getKeyDataFromLine($line);
if ($key === 'F' if ($key === 'F'
&& $context->getState() === $context::MODE_TUNE_HEADER && $context->getState() === $context::MODE_TUNE_HEADER

7
src/Domain/Modules/Interpreter/Lexicon/Group.php Normal file → Executable file
View File

@@ -1,10 +1,9 @@
<?php <?php
namespace XaiCorp\AbcParser\Domain\Modules\Interpreter\Lexicon; namespace XaiCorp\AbcParser\Domain\Modules\Interpreter\Lexicon;
use Closure;
use Enzyme\Axiom\Atoms\StringAtom; use Enzyme\Axiom\Atoms\StringAtom;
use XaiCorp\AbcParser\Domain\Atoms\UnsignedIntegerAtom;
use XaiCorp\AbcParser\Domain\Core\TuneBuilder; use XaiCorp\AbcParser\Domain\Core\TuneBuilder;
use XaiCorp\AbcParser\Domain\Modules\Interpreter\Builder;
use XaiCorp\AbcParser\Domain\Modules\Interpreter\Context; use XaiCorp\AbcParser\Domain\Modules\Interpreter\Context;
class Group implements Lex class Group implements Lex
@@ -27,10 +26,10 @@ class Group implements Lex
* @return mixed * @return mixed
* @throws \Enzyme\Axiom\Exceptions\AtomException * @throws \Enzyme\Axiom\Exceptions\AtomException
*/ */
public function handle(Context $context, \Closure $next) public function handle(Context $context, Closure $next)
{ {
$line = $context->current(); $line = $context->current();
list($key, $data) = $this->getKeyDataFromLine($line); [$key, $data] = $this->getKeyDataFromLine($line);
if ($key === 'G') { if ($key === 'G') {
$this->builder->addGroup(new StringAtom($data)); $this->builder->addGroup(new StringAtom($data));

12
src/Domain/Modules/Interpreter/Lexicon/History.php Normal file → Executable file
View File

@@ -1,10 +1,8 @@
<?php <?php
namespace XaiCorp\AbcParser\Domain\Modules\Interpreter\Lexicon; namespace XaiCorp\AbcParser\Domain\Modules\Interpreter\Lexicon;
use Enzyme\Axiom\Atoms\StringAtom; use Closure;
use XaiCorp\AbcParser\Domain\Atoms\UnsignedIntegerAtom;
use XaiCorp\AbcParser\Domain\Core\TuneBuilder; use XaiCorp\AbcParser\Domain\Core\TuneBuilder;
use XaiCorp\AbcParser\Domain\Modules\Interpreter\Builder;
use XaiCorp\AbcParser\Domain\Modules\Interpreter\Context; use XaiCorp\AbcParser\Domain\Modules\Interpreter\Context;
class History implements Lex class History implements Lex
@@ -28,10 +26,10 @@ class History implements Lex
* @throws \Enzyme\Axiom\Exceptions\AtomException * @throws \Enzyme\Axiom\Exceptions\AtomException
* @throws \Enzyme\Collection\CollectionException * @throws \Enzyme\Collection\CollectionException
*/ */
public function handle(Context $context, \Closure $next) public function handle(Context $context, Closure $next)
{ {
$line = $context->current(); $line = $context->current();
list($key, $data) = $this->getKeyDataFromLine($line); [$key, $data] = $this->getKeyDataFromLine($line);
if ($key === 'H' if ($key === 'H'
&& $context->isState($context::MODE_TUNE_HEADER) && $context->isState($context::MODE_TUNE_HEADER)
@@ -56,8 +54,8 @@ class History implements Lex
*/ */
private function nextLineNotHistory(Context $context) private function nextLineNotHistory(Context $context)
{ {
$nextLine = $context->get($context->key() +1); $nextLine = $context->get($context->key() + 1);
list($key, $data) = $this->getKeyDataFromLine($nextLine); [$key, $data] = $this->getKeyDataFromLine($nextLine);
return $key !== ''; return $key !== '';
} }
} }

7
src/Domain/Modules/Interpreter/Lexicon/Index.php Normal file → Executable file
View File

@@ -1,10 +1,9 @@
<?php <?php
namespace XaiCorp\AbcParser\Domain\Modules\Interpreter\Lexicon; namespace XaiCorp\AbcParser\Domain\Modules\Interpreter\Lexicon;
use Enzyme\Axiom\Atoms\StringAtom; use Closure;
use XaiCorp\AbcParser\Domain\Atoms\UnsignedIntegerAtom; use XaiCorp\AbcParser\Domain\Atoms\UnsignedIntegerAtom;
use XaiCorp\AbcParser\Domain\Core\TuneBuilder; use XaiCorp\AbcParser\Domain\Core\TuneBuilder;
use XaiCorp\AbcParser\Domain\Modules\Interpreter\Builder;
use XaiCorp\AbcParser\Domain\Modules\Interpreter\Context; use XaiCorp\AbcParser\Domain\Modules\Interpreter\Context;
class Index implements Lex class Index implements Lex
@@ -21,10 +20,10 @@ class Index implements Lex
$this->builder = $builder; $this->builder = $builder;
} }
public function handle(Context $context, \Closure $next) public function handle(Context $context, Closure $next)
{ {
$line = $context->current(); $line = $context->current();
list($key, $data) = $this->getKeyDataFromLine($line); [$key, $data] = $this->getKeyDataFromLine($line);
if ($key === 'X') { if ($key === 'X') {
$context->setStateInTuneHeader(); $context->setStateInTuneHeader();

View File

@@ -1,10 +1,9 @@
<?php <?php
namespace XaiCorp\AbcParser\Domain\Modules\Interpreter\Lexicon; namespace XaiCorp\AbcParser\Domain\Modules\Interpreter\Lexicon;
use Closure;
use Enzyme\Axiom\Atoms\StringAtom; use Enzyme\Axiom\Atoms\StringAtom;
use XaiCorp\AbcParser\Domain\Atoms\UnsignedIntegerAtom;
use XaiCorp\AbcParser\Domain\Core\TuneBuilder; use XaiCorp\AbcParser\Domain\Core\TuneBuilder;
use XaiCorp\AbcParser\Domain\Modules\Interpreter\Builder;
use XaiCorp\AbcParser\Domain\Modules\Interpreter\Context; use XaiCorp\AbcParser\Domain\Modules\Interpreter\Context;
class KeySignature implements Lex class KeySignature implements Lex
@@ -27,10 +26,10 @@ class KeySignature implements Lex
* @return mixed * @return mixed
* @throws \Enzyme\Axiom\Exceptions\AtomException * @throws \Enzyme\Axiom\Exceptions\AtomException
*/ */
public function handle(Context $context, \Closure $next) public function handle(Context $context, Closure $next)
{ {
$line = $context->current(); $line = $context->current();
list($key, $data) = $this->getKeyDataFromLine($line); [$key, $data] = $this->getKeyDataFromLine($line);
if ($context->getState() === $context::MODE_TUNE_HEADER && $key === 'K') { if ($context->getState() === $context::MODE_TUNE_HEADER && $key === 'K') {
$this->builder->setKey(new StringAtom($data)); $this->builder->setKey(new StringAtom($data));

0
src/Domain/Modules/Interpreter/Lexicon/Lex.php Normal file → Executable file
View File

View File

7
src/Domain/Modules/Interpreter/Lexicon/Meter.php Normal file → Executable file
View File

@@ -1,10 +1,9 @@
<?php <?php
namespace XaiCorp\AbcParser\Domain\Modules\Interpreter\Lexicon; namespace XaiCorp\AbcParser\Domain\Modules\Interpreter\Lexicon;
use Closure;
use Enzyme\Axiom\Atoms\StringAtom; use Enzyme\Axiom\Atoms\StringAtom;
use XaiCorp\AbcParser\Domain\Atoms\UnsignedIntegerAtom;
use XaiCorp\AbcParser\Domain\Core\TuneBuilder; use XaiCorp\AbcParser\Domain\Core\TuneBuilder;
use XaiCorp\AbcParser\Domain\Modules\Interpreter\Builder;
use XaiCorp\AbcParser\Domain\Modules\Interpreter\Context; use XaiCorp\AbcParser\Domain\Modules\Interpreter\Context;
class Meter implements Lex class Meter implements Lex
@@ -27,10 +26,10 @@ class Meter implements Lex
* @return mixed * @return mixed
* @throws \Enzyme\Axiom\Exceptions\AtomException * @throws \Enzyme\Axiom\Exceptions\AtomException
*/ */
public function handle(Context $context, \Closure $next) public function handle(Context $context, Closure $next)
{ {
$line = $context->current(); $line = $context->current();
list($key, $data) = $this->getKeyDataFromLine($line); [$key, $data] = $this->getKeyDataFromLine($line);
if ($key === 'M' if ($key === 'M'
&& $context->getState() === $context::MODE_TUNE_HEADER && $context->getState() === $context::MODE_TUNE_HEADER

8
src/Domain/Modules/Interpreter/Lexicon/MusicLine.php Normal file → Executable file
View File

@@ -1,10 +1,8 @@
<?php <?php
namespace XaiCorp\AbcParser\Domain\Modules\Interpreter\Lexicon; namespace XaiCorp\AbcParser\Domain\Modules\Interpreter\Lexicon;
use Enzyme\Axiom\Atoms\StringAtom; use Closure;
use XaiCorp\AbcParser\Domain\Atoms\UnsignedIntegerAtom;
use XaiCorp\AbcParser\Domain\Core\TuneBuilder; use XaiCorp\AbcParser\Domain\Core\TuneBuilder;
use XaiCorp\AbcParser\Domain\Modules\Interpreter\Builder;
use XaiCorp\AbcParser\Domain\Modules\Interpreter\Context; use XaiCorp\AbcParser\Domain\Modules\Interpreter\Context;
class MusicLine implements Lex class MusicLine implements Lex
@@ -27,10 +25,10 @@ class MusicLine implements Lex
* @return mixed * @return mixed
* @throws \Enzyme\Axiom\Exceptions\AtomException * @throws \Enzyme\Axiom\Exceptions\AtomException
*/ */
public function handle(Context $context, \Closure $next) public function handle(Context $context, Closure $next)
{ {
$line = $context->current(); $line = $context->current();
list($key, $data) = $this->getKeyDataFromLine($line); [$key, $data] = $this->getKeyDataFromLine($line);
if ($context->getState() === $context::MODE_TUNE_BODY if ($context->getState() === $context::MODE_TUNE_BODY
&& $key !== 'K' && $key !== 'K'

7
src/Domain/Modules/Interpreter/Lexicon/NoteLength.php Normal file → Executable file
View File

@@ -1,10 +1,9 @@
<?php <?php
namespace XaiCorp\AbcParser\Domain\Modules\Interpreter\Lexicon; namespace XaiCorp\AbcParser\Domain\Modules\Interpreter\Lexicon;
use Closure;
use Enzyme\Axiom\Atoms\StringAtom; use Enzyme\Axiom\Atoms\StringAtom;
use XaiCorp\AbcParser\Domain\Atoms\UnsignedIntegerAtom;
use XaiCorp\AbcParser\Domain\Core\TuneBuilder; use XaiCorp\AbcParser\Domain\Core\TuneBuilder;
use XaiCorp\AbcParser\Domain\Modules\Interpreter\Builder;
use XaiCorp\AbcParser\Domain\Modules\Interpreter\Context; use XaiCorp\AbcParser\Domain\Modules\Interpreter\Context;
class NoteLength implements Lex class NoteLength implements Lex
@@ -27,10 +26,10 @@ class NoteLength implements Lex
* @return mixed * @return mixed
* @throws \Enzyme\Axiom\Exceptions\AtomException * @throws \Enzyme\Axiom\Exceptions\AtomException
*/ */
public function handle(Context $context, \Closure $next) public function handle(Context $context, Closure $next)
{ {
$line = $context->current(); $line = $context->current();
list($key, $data) = $this->getKeyDataFromLine($line); [$key, $data] = $this->getKeyDataFromLine($line);
if ($key === 'L') { if ($key === 'L') {
$this->builder->addNoteLength(new StringAtom($data)); $this->builder->addNoteLength(new StringAtom($data));

7
src/Domain/Modules/Interpreter/Lexicon/Notes.php Normal file → Executable file
View File

@@ -1,10 +1,9 @@
<?php <?php
namespace XaiCorp\AbcParser\Domain\Modules\Interpreter\Lexicon; namespace XaiCorp\AbcParser\Domain\Modules\Interpreter\Lexicon;
use Closure;
use Enzyme\Axiom\Atoms\StringAtom; use Enzyme\Axiom\Atoms\StringAtom;
use XaiCorp\AbcParser\Domain\Atoms\UnsignedIntegerAtom;
use XaiCorp\AbcParser\Domain\Core\TuneBuilder; use XaiCorp\AbcParser\Domain\Core\TuneBuilder;
use XaiCorp\AbcParser\Domain\Modules\Interpreter\Builder;
use XaiCorp\AbcParser\Domain\Modules\Interpreter\Context; use XaiCorp\AbcParser\Domain\Modules\Interpreter\Context;
class Notes implements Lex class Notes implements Lex
@@ -27,10 +26,10 @@ class Notes implements Lex
* @return mixed * @return mixed
* @throws \Enzyme\Axiom\Exceptions\AtomException * @throws \Enzyme\Axiom\Exceptions\AtomException
*/ */
public function handle(Context $context, \Closure $next) public function handle(Context $context, Closure $next)
{ {
$line = $context->current(); $line = $context->current();
list($key, $data) = $this->getKeyDataFromLine($line); [$key, $data] = $this->getKeyDataFromLine($line);
if ($key === 'N') { if ($key === 'N') {
$this->builder->addNote(new StringAtom($data)); $this->builder->addNote(new StringAtom($data));

7
src/Domain/Modules/Interpreter/Lexicon/Origin.php Normal file → Executable file
View File

@@ -1,10 +1,9 @@
<?php <?php
namespace XaiCorp\AbcParser\Domain\Modules\Interpreter\Lexicon; namespace XaiCorp\AbcParser\Domain\Modules\Interpreter\Lexicon;
use Closure;
use Enzyme\Axiom\Atoms\StringAtom; use Enzyme\Axiom\Atoms\StringAtom;
use XaiCorp\AbcParser\Domain\Atoms\UnsignedIntegerAtom;
use XaiCorp\AbcParser\Domain\Core\TuneBuilder; use XaiCorp\AbcParser\Domain\Core\TuneBuilder;
use XaiCorp\AbcParser\Domain\Modules\Interpreter\Builder;
use XaiCorp\AbcParser\Domain\Modules\Interpreter\Context; use XaiCorp\AbcParser\Domain\Modules\Interpreter\Context;
class Origin implements Lex class Origin implements Lex
@@ -27,10 +26,10 @@ class Origin implements Lex
* @return mixed * @return mixed
* @throws \Enzyme\Axiom\Exceptions\AtomException * @throws \Enzyme\Axiom\Exceptions\AtomException
*/ */
public function handle(Context $context, \Closure $next) public function handle(Context $context, Closure $next)
{ {
$line = $context->current(); $line = $context->current();
list($key, $data) = $this->getKeyDataFromLine($line); [$key, $data] = $this->getKeyDataFromLine($line);
if ($key === 'O') { if ($key === 'O') {
$this->builder->addOrigin(new StringAtom($data)); $this->builder->addOrigin(new StringAtom($data));

7
src/Domain/Modules/Interpreter/Lexicon/Parts.php Normal file → Executable file
View File

@@ -1,10 +1,9 @@
<?php <?php
namespace XaiCorp\AbcParser\Domain\Modules\Interpreter\Lexicon; namespace XaiCorp\AbcParser\Domain\Modules\Interpreter\Lexicon;
use Closure;
use Enzyme\Axiom\Atoms\StringAtom; use Enzyme\Axiom\Atoms\StringAtom;
use XaiCorp\AbcParser\Domain\Atoms\UnsignedIntegerAtom;
use XaiCorp\AbcParser\Domain\Core\TuneBuilder; use XaiCorp\AbcParser\Domain\Core\TuneBuilder;
use XaiCorp\AbcParser\Domain\Modules\Interpreter\Builder;
use XaiCorp\AbcParser\Domain\Modules\Interpreter\Context; use XaiCorp\AbcParser\Domain\Modules\Interpreter\Context;
class Parts implements Lex class Parts implements Lex
@@ -27,10 +26,10 @@ class Parts implements Lex
* @return mixed * @return mixed
* @throws \Enzyme\Axiom\Exceptions\AtomException * @throws \Enzyme\Axiom\Exceptions\AtomException
*/ */
public function handle(Context $context, \Closure $next) public function handle(Context $context, Closure $next)
{ {
$line = $context->current(); $line = $context->current();
list($key, $data) = $this->getKeyDataFromLine($line); [$key, $data] = $this->getKeyDataFromLine($line);
if ($key === 'P' if ($key === 'P'
&& $context->getState() === $context::MODE_TUNE_HEADER && $context->getState() === $context::MODE_TUNE_HEADER

7
src/Domain/Modules/Interpreter/Lexicon/Rhythm.php Normal file → Executable file
View File

@@ -1,10 +1,9 @@
<?php <?php
namespace XaiCorp\AbcParser\Domain\Modules\Interpreter\Lexicon; namespace XaiCorp\AbcParser\Domain\Modules\Interpreter\Lexicon;
use Closure;
use Enzyme\Axiom\Atoms\StringAtom; use Enzyme\Axiom\Atoms\StringAtom;
use XaiCorp\AbcParser\Domain\Atoms\UnsignedIntegerAtom;
use XaiCorp\AbcParser\Domain\Core\TuneBuilder; use XaiCorp\AbcParser\Domain\Core\TuneBuilder;
use XaiCorp\AbcParser\Domain\Modules\Interpreter\Builder;
use XaiCorp\AbcParser\Domain\Modules\Interpreter\Context; use XaiCorp\AbcParser\Domain\Modules\Interpreter\Context;
class Rhythm implements Lex class Rhythm implements Lex
@@ -27,10 +26,10 @@ class Rhythm implements Lex
* @return mixed * @return mixed
* @throws \Enzyme\Axiom\Exceptions\AtomException * @throws \Enzyme\Axiom\Exceptions\AtomException
*/ */
public function handle(Context $context, \Closure $next) public function handle(Context $context, Closure $next)
{ {
$line = $context->current(); $line = $context->current();
list($key, $data) = $this->getKeyDataFromLine($line); [$key, $data] = $this->getKeyDataFromLine($line);
if ($key === 'R' if ($key === 'R'
&& $context->getState() === $context::MODE_TUNE_HEADER && $context->getState() === $context::MODE_TUNE_HEADER

7
src/Domain/Modules/Interpreter/Lexicon/Source.php Normal file → Executable file
View File

@@ -1,10 +1,9 @@
<?php <?php
namespace XaiCorp\AbcParser\Domain\Modules\Interpreter\Lexicon; namespace XaiCorp\AbcParser\Domain\Modules\Interpreter\Lexicon;
use Closure;
use Enzyme\Axiom\Atoms\StringAtom; use Enzyme\Axiom\Atoms\StringAtom;
use XaiCorp\AbcParser\Domain\Atoms\UnsignedIntegerAtom;
use XaiCorp\AbcParser\Domain\Core\TuneBuilder; use XaiCorp\AbcParser\Domain\Core\TuneBuilder;
use XaiCorp\AbcParser\Domain\Modules\Interpreter\Builder;
use XaiCorp\AbcParser\Domain\Modules\Interpreter\Context; use XaiCorp\AbcParser\Domain\Modules\Interpreter\Context;
class Source implements Lex class Source implements Lex
@@ -27,10 +26,10 @@ class Source implements Lex
* @return mixed * @return mixed
* @throws \Enzyme\Axiom\Exceptions\AtomException * @throws \Enzyme\Axiom\Exceptions\AtomException
*/ */
public function handle(Context $context, \Closure $next) public function handle(Context $context, Closure $next)
{ {
$line = $context->current(); $line = $context->current();
list($key, $data) = $this->getKeyDataFromLine($line); [$key, $data] = $this->getKeyDataFromLine($line);
if ($key === 'S' if ($key === 'S'
&& $context->getState() === $context::MODE_TUNE_HEADER && $context->getState() === $context::MODE_TUNE_HEADER

7
src/Domain/Modules/Interpreter/Lexicon/Tempo.php Normal file → Executable file
View File

@@ -1,10 +1,9 @@
<?php <?php
namespace XaiCorp\AbcParser\Domain\Modules\Interpreter\Lexicon; namespace XaiCorp\AbcParser\Domain\Modules\Interpreter\Lexicon;
use Closure;
use Enzyme\Axiom\Atoms\StringAtom; use Enzyme\Axiom\Atoms\StringAtom;
use XaiCorp\AbcParser\Domain\Atoms\UnsignedIntegerAtom;
use XaiCorp\AbcParser\Domain\Core\TuneBuilder; use XaiCorp\AbcParser\Domain\Core\TuneBuilder;
use XaiCorp\AbcParser\Domain\Modules\Interpreter\Builder;
use XaiCorp\AbcParser\Domain\Modules\Interpreter\Context; use XaiCorp\AbcParser\Domain\Modules\Interpreter\Context;
class Tempo implements Lex class Tempo implements Lex
@@ -27,10 +26,10 @@ class Tempo implements Lex
* @return mixed * @return mixed
* @throws \Enzyme\Axiom\Exceptions\AtomException * @throws \Enzyme\Axiom\Exceptions\AtomException
*/ */
public function handle(Context $context, \Closure $next) public function handle(Context $context, Closure $next)
{ {
$line = $context->current(); $line = $context->current();
list($key, $data) = $this->getKeyDataFromLine($line); [$key, $data] = $this->getKeyDataFromLine($line);
if ($key === 'Q') { if ($key === 'Q') {
$this->builder->addTempo(new StringAtom($data)); $this->builder->addTempo(new StringAtom($data));

8
src/Domain/Modules/Interpreter/Lexicon/Title.php Normal file → Executable file
View File

@@ -1,10 +1,8 @@
<?php <?php
namespace XaiCorp\AbcParser\Domain\Modules\Interpreter\Lexicon; namespace XaiCorp\AbcParser\Domain\Modules\Interpreter\Lexicon;
use Enzyme\Axiom\Atoms\StringAtom; use Closure;
use XaiCorp\AbcParser\Domain\Atoms\UnsignedIntegerAtom;
use XaiCorp\AbcParser\Domain\Core\TuneBuilder; use XaiCorp\AbcParser\Domain\Core\TuneBuilder;
use XaiCorp\AbcParser\Domain\Modules\Interpreter\Builder;
use XaiCorp\AbcParser\Domain\Modules\Interpreter\Context; use XaiCorp\AbcParser\Domain\Modules\Interpreter\Context;
class Title implements Lex class Title implements Lex
@@ -27,10 +25,10 @@ class Title implements Lex
* @return mixed * @return mixed
* @throws \Enzyme\Axiom\Exceptions\AtomException * @throws \Enzyme\Axiom\Exceptions\AtomException
*/ */
public function handle(Context $context, \Closure $next) public function handle(Context $context, Closure $next)
{ {
$line = $context->current(); $line = $context->current();
list($key, $data) = $this->getKeyDataFromLine($line); [$key, $data] = $this->getKeyDataFromLine($line);
if ($key === 'T') { if ($key === 'T') {
$this->builder->addTitle($data); $this->builder->addTitle($data);

7
src/Domain/Modules/Interpreter/Lexicon/Transcriber.php Normal file → Executable file
View File

@@ -1,10 +1,9 @@
<?php <?php
namespace XaiCorp\AbcParser\Domain\Modules\Interpreter\Lexicon; namespace XaiCorp\AbcParser\Domain\Modules\Interpreter\Lexicon;
use Closure;
use Enzyme\Axiom\Atoms\StringAtom; use Enzyme\Axiom\Atoms\StringAtom;
use XaiCorp\AbcParser\Domain\Atoms\UnsignedIntegerAtom;
use XaiCorp\AbcParser\Domain\Core\TuneBuilder; use XaiCorp\AbcParser\Domain\Core\TuneBuilder;
use XaiCorp\AbcParser\Domain\Modules\Interpreter\Builder;
use XaiCorp\AbcParser\Domain\Modules\Interpreter\Context; use XaiCorp\AbcParser\Domain\Modules\Interpreter\Context;
class Transcriber implements Lex class Transcriber implements Lex
@@ -27,10 +26,10 @@ class Transcriber implements Lex
* @return mixed * @return mixed
* @throws \Enzyme\Axiom\Exceptions\AtomException * @throws \Enzyme\Axiom\Exceptions\AtomException
*/ */
public function handle(Context $context, \Closure $next) public function handle(Context $context, Closure $next)
{ {
$line = $context->current(); $line = $context->current();
list($key, $data) = $this->getKeyDataFromLine($line); [$key, $data] = $this->getKeyDataFromLine($line);
if ($key === 'Z') { if ($key === 'Z') {
$this->builder->addTranscriber(new StringAtom($data)); $this->builder->addTranscriber(new StringAtom($data));

7
src/Domain/Modules/Interpreter/Lexicon/Words.php Normal file → Executable file
View File

@@ -1,10 +1,9 @@
<?php <?php
namespace XaiCorp\AbcParser\Domain\Modules\Interpreter\Lexicon; namespace XaiCorp\AbcParser\Domain\Modules\Interpreter\Lexicon;
use Closure;
use Enzyme\Axiom\Atoms\StringAtom; use Enzyme\Axiom\Atoms\StringAtom;
use XaiCorp\AbcParser\Domain\Atoms\UnsignedIntegerAtom;
use XaiCorp\AbcParser\Domain\Core\TuneBuilder; use XaiCorp\AbcParser\Domain\Core\TuneBuilder;
use XaiCorp\AbcParser\Domain\Modules\Interpreter\Builder;
use XaiCorp\AbcParser\Domain\Modules\Interpreter\Context; use XaiCorp\AbcParser\Domain\Modules\Interpreter\Context;
class Words implements Lex class Words implements Lex
@@ -27,10 +26,10 @@ class Words implements Lex
* @return mixed * @return mixed
* @throws \Enzyme\Axiom\Exceptions\AtomException * @throws \Enzyme\Axiom\Exceptions\AtomException
*/ */
public function handle(Context $context, \Closure $next) public function handle(Context $context, Closure $next)
{ {
$line = $context->current(); $line = $context->current();
list($key, $data) = $this->getKeyDataFromLine($line); [$key, $data] = $this->getKeyDataFromLine($line);
if ($key === 'W') { if ($key === 'W') {
$this->builder->addWords(new StringAtom($data)); $this->builder->addWords(new StringAtom($data));

0
src/Interfaces/Builder.php Normal file → Executable file
View File

0
src/Interfaces/Exporter.php Normal file → Executable file
View File

0
src/Interfaces/Manipulator.php Normal file → Executable file
View File

2
src/Traits/ValidationTrait.php Normal file → Executable file
View File

@@ -1,8 +1,8 @@
<?php <?php
namespace XaiCorp\AbcParser\Traits; namespace XaiCorp\AbcParser\Traits;
use Illuminate\Support\MessageBag;
use Illuminate\Support\Facades\Validator; use Illuminate\Support\Facades\Validator;
use Illuminate\Support\MessageBag;
Trait ValidationTrait Trait ValidationTrait
{ {

4
tests/_bootstrap.php Normal file → Executable file
View File

@@ -1,5 +1,7 @@
<?php <?php
// This is global bootstrap for autoloading // This is global bootstrap for autoloading
use Codeception\Util\Autoload;
include_once 'vendor/autoload.php'; include_once 'vendor/autoload.php';
\Codeception\Util\Autoload::addNamespace('Tests', codecept_root_dir().'tests/unit'); Autoload::addNamespace('Tests', codecept_root_dir() . 'tests/unit');

0
tests/_data/abc/jigs.abc Normal file → Executable file
View File

0
tests/_data/abc/valid_abc_1.abc Normal file → Executable file
View File

0
tests/_data/abc/valid_abc_2.abc Normal file → Executable file
View File

0
tests/_data/abc/valid_abc_3.abc Normal file → Executable file
View File

0
tests/_data/dump.sql Normal file → Executable file
View File

12
tests/_support/Helper/ExtraAsserts.php Normal file → Executable file
View File

@@ -4,9 +4,11 @@ namespace Helper;
// here you can define custom actions // here you can define custom actions
// all public methods declared in helper class will be available in $I // all public methods declared in helper class will be available in $I
use Codeception\Module;
use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Model;
use PHPUnit_Framework_Assert;
class ExtraAsserts extends \Codeception\Module class ExtraAsserts extends Module
{ {
/** /**
@@ -16,21 +18,21 @@ class ExtraAsserts extends \Codeception\Module
*/ */
public function assertInstanceOf($expected, $actual, $message = '') public function assertInstanceOf($expected, $actual, $message = '')
{ {
\PHPUnit_Framework_Assert::assertInstanceOf($expected, $actual, $message); PHPUnit_Framework_Assert::assertInstanceOf($expected, $actual, $message);
} }
public function assertCanSave(Model $model) public function assertCanSave(Model $model)
{ {
\PHPUnit_Framework_Assert::assertTrue($model->save(), json_encode($model->getMessages())); PHPUnit_Framework_Assert::assertTrue($model->save(), json_encode($model->getMessages()));
} }
public function assertCanNotSave(Model $model, $message = '') public function assertCanNotSave(Model $model, $message = '')
{ {
\PHPUnit_Framework_Assert::assertNotTrue($model->save(), $message); PHPUnit_Framework_Assert::assertNotTrue($model->save(), $message);
} }
public function haveNotFinishedTest() public function haveNotFinishedTest()
{ {
\PHPUnit_Framework_Assert::markTestIncomplete(); PHPUnit_Framework_Assert::markTestIncomplete();
} }
} }

4
tests/_support/Helper/Unit.php Normal file → Executable file
View File

@@ -4,7 +4,9 @@ namespace Helper;
// here you can define custom actions // here you can define custom actions
// all public methods declared in helper class will be available in $I // all public methods declared in helper class will be available in $I
class Unit extends \Codeception\Module use Codeception\Module;
class Unit extends Module
{ {
} }

15
tests/_support/UnitTester.php Normal file → Executable file
View File

@@ -1,5 +1,8 @@
<?php <?php
use Codeception\Actor;
use Codeception\Lib\Friend;
/** /**
* Inherited Methods * Inherited Methods
@@ -12,15 +15,15 @@
* @method void am($role) * @method void am($role)
* @method void lookForwardTo($achieveValue) * @method void lookForwardTo($achieveValue)
* @method void comment($description) * @method void comment($description)
* @method \Codeception\Lib\Friend haveFriend($name, $actorClass = NULL) * @method Friend haveFriend($name, $actorClass = null)
* *
* @SuppressWarnings(PHPMD) * @SuppressWarnings(PHPMD)
*/ */
class UnitTester extends \Codeception\Actor class UnitTester extends Actor
{ {
use _generated\UnitTesterActions; use _generated\UnitTesterActions;
/** /**
* Define custom actions here * Define custom actions here
*/ */
} }

301
tests/_support/_generated/AcceptanceTesterActions.php Normal file → Executable file
View File

@@ -5,7 +5,10 @@ namespace _generated;
// You should not change it manually as it will be overwritten on next build // You should not change it manually as it will be overwritten on next build
// @codingStandardsIgnoreFile // @codingStandardsIgnoreFile
use Codeception\Module\PhpBrowser; use Codeception\Step\Action;
use Codeception\Step\Assertion;
use Codeception\Step\Condition;
use Codeception\Step\ConditionalAssertion;
use Helper\Acceptance; use Helper\Acceptance;
trait AcceptanceTesterActions trait AcceptanceTesterActions
@@ -15,7 +18,7 @@ trait AcceptanceTesterActions
*/ */
abstract protected function getScenario(); abstract protected function getScenario();
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -26,10 +29,10 @@ trait AcceptanceTesterActions
* @see \Codeception\Module\PhpBrowser::setHeader() * @see \Codeception\Module\PhpBrowser::setHeader()
*/ */
public function setHeader($name, $value) { public function setHeader($name, $value) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('setHeader', func_get_args())); return $this->getScenario()->runStep(new Action('setHeader', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -40,10 +43,10 @@ trait AcceptanceTesterActions
* @see \Codeception\Module\PhpBrowser::amHttpAuthenticated() * @see \Codeception\Module\PhpBrowser::amHttpAuthenticated()
*/ */
public function amHttpAuthenticated($username, $password) { public function amHttpAuthenticated($username, $password) {
return $this->getScenario()->runStep(new \Codeception\Step\Condition('amHttpAuthenticated', func_get_args())); return $this->getScenario()->runStep(new Condition('amHttpAuthenticated', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -58,10 +61,10 @@ trait AcceptanceTesterActions
* @see \Codeception\Module\PhpBrowser::amOnUrl() * @see \Codeception\Module\PhpBrowser::amOnUrl()
*/ */
public function amOnUrl($url) { public function amOnUrl($url) {
return $this->getScenario()->runStep(new \Codeception\Step\Condition('amOnUrl', func_get_args())); return $this->getScenario()->runStep(new Condition('amOnUrl', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -86,10 +89,10 @@ trait AcceptanceTesterActions
* @see \Codeception\Module\PhpBrowser::amOnSubdomain() * @see \Codeception\Module\PhpBrowser::amOnSubdomain()
*/ */
public function amOnSubdomain($subdomain) { public function amOnSubdomain($subdomain) {
return $this->getScenario()->runStep(new \Codeception\Step\Condition('amOnSubdomain', func_get_args())); return $this->getScenario()->runStep(new Condition('amOnSubdomain', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -113,10 +116,10 @@ trait AcceptanceTesterActions
* @see \Codeception\Module\PhpBrowser::executeInGuzzle() * @see \Codeception\Module\PhpBrowser::executeInGuzzle()
*/ */
public function executeInGuzzle($function) { public function executeInGuzzle($function) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('executeInGuzzle', func_get_args())); return $this->getScenario()->runStep(new Action('executeInGuzzle', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -148,10 +151,10 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::haveHttpHeader() * @see \Codeception\Lib\InnerBrowser::haveHttpHeader()
*/ */
public function haveHttpHeader($name, $value) { public function haveHttpHeader($name, $value) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('haveHttpHeader', func_get_args())); return $this->getScenario()->runStep(new Action('haveHttpHeader', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -173,10 +176,10 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::deleteHeader() * @see \Codeception\Lib\InnerBrowser::deleteHeader()
*/ */
public function deleteHeader($name) { public function deleteHeader($name) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('deleteHeader', func_get_args())); return $this->getScenario()->runStep(new Action('deleteHeader', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -194,10 +197,10 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::amOnPage() * @see \Codeception\Lib\InnerBrowser::amOnPage()
*/ */
public function amOnPage($page) { public function amOnPage($page) {
return $this->getScenario()->runStep(new \Codeception\Step\Condition('amOnPage', func_get_args())); return $this->getScenario()->runStep(new Condition('amOnPage', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -233,10 +236,10 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::click() * @see \Codeception\Lib\InnerBrowser::click()
*/ */
public function click($link, $context = null) { public function click($link, $context = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('click', func_get_args())); return $this->getScenario()->runStep(new Action('click', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -273,7 +276,7 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::see() * @see \Codeception\Lib\InnerBrowser::see()
*/ */
public function canSee($text, $selector = null) { public function canSee($text, $selector = null) {
return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('see', func_get_args())); return $this->getScenario()->runStep(new ConditionalAssertion('see', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
@@ -310,10 +313,10 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::see() * @see \Codeception\Lib\InnerBrowser::see()
*/ */
public function see($text, $selector = null) { public function see($text, $selector = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('see', func_get_args())); return $this->getScenario()->runStep(new Assertion('see', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -348,7 +351,7 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::dontSee() * @see \Codeception\Lib\InnerBrowser::dontSee()
*/ */
public function cantSee($text, $selector = null) { public function cantSee($text, $selector = null) {
return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSee', func_get_args())); return $this->getScenario()->runStep(new ConditionalAssertion('dontSee', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
@@ -383,10 +386,10 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::dontSee() * @see \Codeception\Lib\InnerBrowser::dontSee()
*/ */
public function dontSee($text, $selector = null) { public function dontSee($text, $selector = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSee', func_get_args())); return $this->getScenario()->runStep(new Assertion('dontSee', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -403,7 +406,7 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::seeInSource() * @see \Codeception\Lib\InnerBrowser::seeInSource()
*/ */
public function canSeeInSource($raw) { public function canSeeInSource($raw) {
return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeInSource', func_get_args())); return $this->getScenario()->runStep(new ConditionalAssertion('seeInSource', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
@@ -420,10 +423,10 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::seeInSource() * @see \Codeception\Lib\InnerBrowser::seeInSource()
*/ */
public function seeInSource($raw) { public function seeInSource($raw) {
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeInSource', func_get_args())); return $this->getScenario()->runStep(new Assertion('seeInSource', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -440,7 +443,7 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::dontSeeInSource() * @see \Codeception\Lib\InnerBrowser::dontSeeInSource()
*/ */
public function cantSeeInSource($raw) { public function cantSeeInSource($raw) {
return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeInSource', func_get_args())); return $this->getScenario()->runStep(new ConditionalAssertion('dontSeeInSource', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
@@ -457,10 +460,10 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::dontSeeInSource() * @see \Codeception\Lib\InnerBrowser::dontSeeInSource()
*/ */
public function dontSeeInSource($raw) { public function dontSeeInSource($raw) {
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeInSource', func_get_args())); return $this->getScenario()->runStep(new Assertion('dontSeeInSource', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -480,7 +483,7 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::seeLink() * @see \Codeception\Lib\InnerBrowser::seeLink()
*/ */
public function canSeeLink($text, $url = null) { public function canSeeLink($text, $url = null) {
return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeLink', func_get_args())); return $this->getScenario()->runStep(new ConditionalAssertion('seeLink', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
@@ -500,10 +503,10 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::seeLink() * @see \Codeception\Lib\InnerBrowser::seeLink()
*/ */
public function seeLink($text, $url = null) { public function seeLink($text, $url = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeLink', func_get_args())); return $this->getScenario()->runStep(new Assertion('seeLink', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -523,7 +526,7 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::dontSeeLink() * @see \Codeception\Lib\InnerBrowser::dontSeeLink()
*/ */
public function cantSeeLink($text, $url = null) { public function cantSeeLink($text, $url = null) {
return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeLink', func_get_args())); return $this->getScenario()->runStep(new ConditionalAssertion('dontSeeLink', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
@@ -543,10 +546,10 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::dontSeeLink() * @see \Codeception\Lib\InnerBrowser::dontSeeLink()
*/ */
public function dontSeeLink($text, $url = null) { public function dontSeeLink($text, $url = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeLink', func_get_args())); return $this->getScenario()->runStep(new Assertion('dontSeeLink', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -566,7 +569,7 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::seeInCurrentUrl() * @see \Codeception\Lib\InnerBrowser::seeInCurrentUrl()
*/ */
public function canSeeInCurrentUrl($uri) { public function canSeeInCurrentUrl($uri) {
return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeInCurrentUrl', func_get_args())); return $this->getScenario()->runStep(new ConditionalAssertion('seeInCurrentUrl', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
@@ -586,10 +589,10 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::seeInCurrentUrl() * @see \Codeception\Lib\InnerBrowser::seeInCurrentUrl()
*/ */
public function seeInCurrentUrl($uri) { public function seeInCurrentUrl($uri) {
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeInCurrentUrl', func_get_args())); return $this->getScenario()->runStep(new Assertion('seeInCurrentUrl', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -606,7 +609,7 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::dontSeeInCurrentUrl() * @see \Codeception\Lib\InnerBrowser::dontSeeInCurrentUrl()
*/ */
public function cantSeeInCurrentUrl($uri) { public function cantSeeInCurrentUrl($uri) {
return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeInCurrentUrl', func_get_args())); return $this->getScenario()->runStep(new ConditionalAssertion('dontSeeInCurrentUrl', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
@@ -623,10 +626,10 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::dontSeeInCurrentUrl() * @see \Codeception\Lib\InnerBrowser::dontSeeInCurrentUrl()
*/ */
public function dontSeeInCurrentUrl($uri) { public function dontSeeInCurrentUrl($uri) {
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeInCurrentUrl', func_get_args())); return $this->getScenario()->runStep(new Assertion('dontSeeInCurrentUrl', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -645,7 +648,7 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::seeCurrentUrlEquals() * @see \Codeception\Lib\InnerBrowser::seeCurrentUrlEquals()
*/ */
public function canSeeCurrentUrlEquals($uri) { public function canSeeCurrentUrlEquals($uri) {
return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeCurrentUrlEquals', func_get_args())); return $this->getScenario()->runStep(new ConditionalAssertion('seeCurrentUrlEquals', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
@@ -664,10 +667,10 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::seeCurrentUrlEquals() * @see \Codeception\Lib\InnerBrowser::seeCurrentUrlEquals()
*/ */
public function seeCurrentUrlEquals($uri) { public function seeCurrentUrlEquals($uri) {
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeCurrentUrlEquals', func_get_args())); return $this->getScenario()->runStep(new Assertion('seeCurrentUrlEquals', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -686,7 +689,7 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::dontSeeCurrentUrlEquals() * @see \Codeception\Lib\InnerBrowser::dontSeeCurrentUrlEquals()
*/ */
public function cantSeeCurrentUrlEquals($uri) { public function cantSeeCurrentUrlEquals($uri) {
return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeCurrentUrlEquals', func_get_args())); return $this->getScenario()->runStep(new ConditionalAssertion('dontSeeCurrentUrlEquals', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
@@ -705,10 +708,10 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::dontSeeCurrentUrlEquals() * @see \Codeception\Lib\InnerBrowser::dontSeeCurrentUrlEquals()
*/ */
public function dontSeeCurrentUrlEquals($uri) { public function dontSeeCurrentUrlEquals($uri) {
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeCurrentUrlEquals', func_get_args())); return $this->getScenario()->runStep(new Assertion('dontSeeCurrentUrlEquals', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -726,7 +729,7 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::seeCurrentUrlMatches() * @see \Codeception\Lib\InnerBrowser::seeCurrentUrlMatches()
*/ */
public function canSeeCurrentUrlMatches($uri) { public function canSeeCurrentUrlMatches($uri) {
return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeCurrentUrlMatches', func_get_args())); return $this->getScenario()->runStep(new ConditionalAssertion('seeCurrentUrlMatches', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
@@ -744,10 +747,10 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::seeCurrentUrlMatches() * @see \Codeception\Lib\InnerBrowser::seeCurrentUrlMatches()
*/ */
public function seeCurrentUrlMatches($uri) { public function seeCurrentUrlMatches($uri) {
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeCurrentUrlMatches', func_get_args())); return $this->getScenario()->runStep(new Assertion('seeCurrentUrlMatches', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -765,7 +768,7 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::dontSeeCurrentUrlMatches() * @see \Codeception\Lib\InnerBrowser::dontSeeCurrentUrlMatches()
*/ */
public function cantSeeCurrentUrlMatches($uri) { public function cantSeeCurrentUrlMatches($uri) {
return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeCurrentUrlMatches', func_get_args())); return $this->getScenario()->runStep(new ConditionalAssertion('dontSeeCurrentUrlMatches', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
@@ -783,10 +786,10 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::dontSeeCurrentUrlMatches() * @see \Codeception\Lib\InnerBrowser::dontSeeCurrentUrlMatches()
*/ */
public function dontSeeCurrentUrlMatches($uri) { public function dontSeeCurrentUrlMatches($uri) {
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeCurrentUrlMatches', func_get_args())); return $this->getScenario()->runStep(new Assertion('dontSeeCurrentUrlMatches', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -806,10 +809,10 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::grabFromCurrentUrl() * @see \Codeception\Lib\InnerBrowser::grabFromCurrentUrl()
*/ */
public function grabFromCurrentUrl($uri = null) { public function grabFromCurrentUrl($uri = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('grabFromCurrentUrl', func_get_args())); return $this->getScenario()->runStep(new Action('grabFromCurrentUrl', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -828,7 +831,7 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::seeCheckboxIsChecked() * @see \Codeception\Lib\InnerBrowser::seeCheckboxIsChecked()
*/ */
public function canSeeCheckboxIsChecked($checkbox) { public function canSeeCheckboxIsChecked($checkbox) {
return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeCheckboxIsChecked', func_get_args())); return $this->getScenario()->runStep(new ConditionalAssertion('seeCheckboxIsChecked', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
@@ -847,10 +850,10 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::seeCheckboxIsChecked() * @see \Codeception\Lib\InnerBrowser::seeCheckboxIsChecked()
*/ */
public function seeCheckboxIsChecked($checkbox) { public function seeCheckboxIsChecked($checkbox) {
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeCheckboxIsChecked', func_get_args())); return $this->getScenario()->runStep(new Assertion('seeCheckboxIsChecked', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -868,7 +871,7 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::dontSeeCheckboxIsChecked() * @see \Codeception\Lib\InnerBrowser::dontSeeCheckboxIsChecked()
*/ */
public function cantSeeCheckboxIsChecked($checkbox) { public function cantSeeCheckboxIsChecked($checkbox) {
return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeCheckboxIsChecked', func_get_args())); return $this->getScenario()->runStep(new ConditionalAssertion('dontSeeCheckboxIsChecked', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
@@ -886,10 +889,10 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::dontSeeCheckboxIsChecked() * @see \Codeception\Lib\InnerBrowser::dontSeeCheckboxIsChecked()
*/ */
public function dontSeeCheckboxIsChecked($checkbox) { public function dontSeeCheckboxIsChecked($checkbox) {
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeCheckboxIsChecked', func_get_args())); return $this->getScenario()->runStep(new Assertion('dontSeeCheckboxIsChecked', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -913,7 +916,7 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::seeInField() * @see \Codeception\Lib\InnerBrowser::seeInField()
*/ */
public function canSeeInField($field, $value) { public function canSeeInField($field, $value) {
return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeInField', func_get_args())); return $this->getScenario()->runStep(new ConditionalAssertion('seeInField', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
@@ -937,10 +940,10 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::seeInField() * @see \Codeception\Lib\InnerBrowser::seeInField()
*/ */
public function seeInField($field, $value) { public function seeInField($field, $value) {
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeInField', func_get_args())); return $this->getScenario()->runStep(new Assertion('seeInField', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -964,7 +967,7 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::dontSeeInField() * @see \Codeception\Lib\InnerBrowser::dontSeeInField()
*/ */
public function cantSeeInField($field, $value) { public function cantSeeInField($field, $value) {
return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeInField', func_get_args())); return $this->getScenario()->runStep(new ConditionalAssertion('dontSeeInField', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
@@ -988,10 +991,10 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::dontSeeInField() * @see \Codeception\Lib\InnerBrowser::dontSeeInField()
*/ */
public function dontSeeInField($field, $value) { public function dontSeeInField($field, $value) {
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeInField', func_get_args())); return $this->getScenario()->runStep(new Assertion('dontSeeInField', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -1058,7 +1061,7 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::seeInFormFields() * @see \Codeception\Lib\InnerBrowser::seeInFormFields()
*/ */
public function canSeeInFormFields($formSelector, $params) { public function canSeeInFormFields($formSelector, $params) {
return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeInFormFields', func_get_args())); return $this->getScenario()->runStep(new ConditionalAssertion('seeInFormFields', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
@@ -1125,10 +1128,10 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::seeInFormFields() * @see \Codeception\Lib\InnerBrowser::seeInFormFields()
*/ */
public function seeInFormFields($formSelector, $params) { public function seeInFormFields($formSelector, $params) {
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeInFormFields', func_get_args())); return $this->getScenario()->runStep(new Assertion('seeInFormFields', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -1175,7 +1178,7 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::dontSeeInFormFields() * @see \Codeception\Lib\InnerBrowser::dontSeeInFormFields()
*/ */
public function cantSeeInFormFields($formSelector, $params) { public function cantSeeInFormFields($formSelector, $params) {
return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeInFormFields', func_get_args())); return $this->getScenario()->runStep(new ConditionalAssertion('dontSeeInFormFields', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
@@ -1222,10 +1225,10 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::dontSeeInFormFields() * @see \Codeception\Lib\InnerBrowser::dontSeeInFormFields()
*/ */
public function dontSeeInFormFields($formSelector, $params) { public function dontSeeInFormFields($formSelector, $params) {
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeInFormFields', func_get_args())); return $this->getScenario()->runStep(new Assertion('dontSeeInFormFields', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -1401,10 +1404,10 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::submitForm() * @see \Codeception\Lib\InnerBrowser::submitForm()
*/ */
public function submitForm($selector, $params, $button = null) { public function submitForm($selector, $params, $button = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('submitForm', func_get_args())); return $this->getScenario()->runStep(new Action('submitForm', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -1422,10 +1425,10 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::fillField() * @see \Codeception\Lib\InnerBrowser::fillField()
*/ */
public function fillField($field, $value) { public function fillField($field, $value) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('fillField', func_get_args())); return $this->getScenario()->runStep(new Action('fillField', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -1461,10 +1464,10 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::selectOption() * @see \Codeception\Lib\InnerBrowser::selectOption()
*/ */
public function selectOption($select, $option) { public function selectOption($select, $option) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('selectOption', func_get_args())); return $this->getScenario()->runStep(new Action('selectOption', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -1480,10 +1483,10 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::checkOption() * @see \Codeception\Lib\InnerBrowser::checkOption()
*/ */
public function checkOption($option) { public function checkOption($option) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('checkOption', func_get_args())); return $this->getScenario()->runStep(new Action('checkOption', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -1499,10 +1502,10 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::uncheckOption() * @see \Codeception\Lib\InnerBrowser::uncheckOption()
*/ */
public function uncheckOption($option) { public function uncheckOption($option) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('uncheckOption', func_get_args())); return $this->getScenario()->runStep(new Action('uncheckOption', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -1520,10 +1523,10 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::attachFile() * @see \Codeception\Lib\InnerBrowser::attachFile()
*/ */
public function attachFile($field, $filename) { public function attachFile($field, $filename) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('attachFile', func_get_args())); return $this->getScenario()->runStep(new Action('attachFile', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -1537,10 +1540,10 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::sendAjaxGetRequest() * @see \Codeception\Lib\InnerBrowser::sendAjaxGetRequest()
*/ */
public function sendAjaxGetRequest($uri, $params = null) { public function sendAjaxGetRequest($uri, $params = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('sendAjaxGetRequest', func_get_args())); return $this->getScenario()->runStep(new Action('sendAjaxGetRequest', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -1565,10 +1568,10 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::sendAjaxPostRequest() * @see \Codeception\Lib\InnerBrowser::sendAjaxPostRequest()
*/ */
public function sendAjaxPostRequest($uri, $params = null) { public function sendAjaxPostRequest($uri, $params = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('sendAjaxPostRequest', func_get_args())); return $this->getScenario()->runStep(new Action('sendAjaxPostRequest', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -1591,10 +1594,10 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::sendAjaxRequest() * @see \Codeception\Lib\InnerBrowser::sendAjaxRequest()
*/ */
public function sendAjaxRequest($method, $uri, $params = null) { public function sendAjaxRequest($method, $uri, $params = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('sendAjaxRequest', func_get_args())); return $this->getScenario()->runStep(new Action('sendAjaxRequest', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -1616,10 +1619,10 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::grabTextFrom() * @see \Codeception\Lib\InnerBrowser::grabTextFrom()
*/ */
public function grabTextFrom($cssOrXPathOrRegex) { public function grabTextFrom($cssOrXPathOrRegex) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('grabTextFrom', func_get_args())); return $this->getScenario()->runStep(new Action('grabTextFrom', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -1640,10 +1643,10 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::grabAttributeFrom() * @see \Codeception\Lib\InnerBrowser::grabAttributeFrom()
*/ */
public function grabAttributeFrom($cssOrXpath, $attribute) { public function grabAttributeFrom($cssOrXpath, $attribute) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('grabAttributeFrom', func_get_args())); return $this->getScenario()->runStep(new Action('grabAttributeFrom', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -1672,10 +1675,10 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::grabMultiple() * @see \Codeception\Lib\InnerBrowser::grabMultiple()
*/ */
public function grabMultiple($cssOrXpath, $attribute = null) { public function grabMultiple($cssOrXpath, $attribute = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('grabMultiple', func_get_args())); return $this->getScenario()->runStep(new Action('grabMultiple', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -1685,10 +1688,10 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::grabValueFrom() * @see \Codeception\Lib\InnerBrowser::grabValueFrom()
*/ */
public function grabValueFrom($field) { public function grabValueFrom($field) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('grabValueFrom', func_get_args())); return $this->getScenario()->runStep(new Action('grabValueFrom', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -1709,10 +1712,10 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::setCookie() * @see \Codeception\Lib\InnerBrowser::setCookie()
*/ */
public function setCookie($name, $val, $params = null) { public function setCookie($name, $val, $params = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('setCookie', func_get_args())); return $this->getScenario()->runStep(new Action('setCookie', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -1726,10 +1729,10 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::grabCookie() * @see \Codeception\Lib\InnerBrowser::grabCookie()
*/ */
public function grabCookie($cookie, $params = null) { public function grabCookie($cookie, $params = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('grabCookie', func_get_args())); return $this->getScenario()->runStep(new Action('grabCookie', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -1741,10 +1744,10 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::grabPageSource() * @see \Codeception\Lib\InnerBrowser::grabPageSource()
*/ */
public function grabPageSource() { public function grabPageSource() {
return $this->getScenario()->runStep(new \Codeception\Step\Action('grabPageSource', func_get_args())); return $this->getScenario()->runStep(new Action('grabPageSource', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -1764,7 +1767,7 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::seeCookie() * @see \Codeception\Lib\InnerBrowser::seeCookie()
*/ */
public function canSeeCookie($cookie, $params = null) { public function canSeeCookie($cookie, $params = null) {
return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeCookie', func_get_args())); return $this->getScenario()->runStep(new ConditionalAssertion('seeCookie', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
@@ -1784,10 +1787,10 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::seeCookie() * @see \Codeception\Lib\InnerBrowser::seeCookie()
*/ */
public function seeCookie($cookie, $params = null) { public function seeCookie($cookie, $params = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeCookie', func_get_args())); return $this->getScenario()->runStep(new Assertion('seeCookie', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -1802,7 +1805,7 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::dontSeeCookie() * @see \Codeception\Lib\InnerBrowser::dontSeeCookie()
*/ */
public function cantSeeCookie($cookie, $params = null) { public function cantSeeCookie($cookie, $params = null) {
return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeCookie', func_get_args())); return $this->getScenario()->runStep(new ConditionalAssertion('dontSeeCookie', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
@@ -1817,10 +1820,10 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::dontSeeCookie() * @see \Codeception\Lib\InnerBrowser::dontSeeCookie()
*/ */
public function dontSeeCookie($cookie, $params = null) { public function dontSeeCookie($cookie, $params = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeCookie', func_get_args())); return $this->getScenario()->runStep(new Assertion('dontSeeCookie', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -1834,10 +1837,10 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::resetCookie() * @see \Codeception\Lib\InnerBrowser::resetCookie()
*/ */
public function resetCookie($name, $params = null) { public function resetCookie($name, $params = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('resetCookie', func_get_args())); return $this->getScenario()->runStep(new Action('resetCookie', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -1863,7 +1866,7 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::seeElement() * @see \Codeception\Lib\InnerBrowser::seeElement()
*/ */
public function canSeeElement($selector, $attributes = null) { public function canSeeElement($selector, $attributes = null) {
return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeElement', func_get_args())); return $this->getScenario()->runStep(new ConditionalAssertion('seeElement', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
@@ -1889,10 +1892,10 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::seeElement() * @see \Codeception\Lib\InnerBrowser::seeElement()
*/ */
public function seeElement($selector, $attributes = null) { public function seeElement($selector, $attributes = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeElement', func_get_args())); return $this->getScenario()->runStep(new Assertion('seeElement', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -1914,7 +1917,7 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::dontSeeElement() * @see \Codeception\Lib\InnerBrowser::dontSeeElement()
*/ */
public function cantSeeElement($selector, $attributes = null) { public function cantSeeElement($selector, $attributes = null) {
return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeElement', func_get_args())); return $this->getScenario()->runStep(new ConditionalAssertion('dontSeeElement', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
@@ -1936,10 +1939,10 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::dontSeeElement() * @see \Codeception\Lib\InnerBrowser::dontSeeElement()
*/ */
public function dontSeeElement($selector, $attributes = null) { public function dontSeeElement($selector, $attributes = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeElement', func_get_args())); return $this->getScenario()->runStep(new Assertion('dontSeeElement', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -1957,7 +1960,7 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::seeNumberOfElements() * @see \Codeception\Lib\InnerBrowser::seeNumberOfElements()
*/ */
public function canSeeNumberOfElements($selector, $expected) { public function canSeeNumberOfElements($selector, $expected) {
return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeNumberOfElements', func_get_args())); return $this->getScenario()->runStep(new ConditionalAssertion('seeNumberOfElements', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
@@ -1975,10 +1978,10 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::seeNumberOfElements() * @see \Codeception\Lib\InnerBrowser::seeNumberOfElements()
*/ */
public function seeNumberOfElements($selector, $expected) { public function seeNumberOfElements($selector, $expected) {
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeNumberOfElements', func_get_args())); return $this->getScenario()->runStep(new Assertion('seeNumberOfElements', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -1998,7 +2001,7 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::seeOptionIsSelected() * @see \Codeception\Lib\InnerBrowser::seeOptionIsSelected()
*/ */
public function canSeeOptionIsSelected($selector, $optionText) { public function canSeeOptionIsSelected($selector, $optionText) {
return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeOptionIsSelected', func_get_args())); return $this->getScenario()->runStep(new ConditionalAssertion('seeOptionIsSelected', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
@@ -2018,10 +2021,10 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::seeOptionIsSelected() * @see \Codeception\Lib\InnerBrowser::seeOptionIsSelected()
*/ */
public function seeOptionIsSelected($selector, $optionText) { public function seeOptionIsSelected($selector, $optionText) {
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeOptionIsSelected', func_get_args())); return $this->getScenario()->runStep(new Assertion('seeOptionIsSelected', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -2041,7 +2044,7 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::dontSeeOptionIsSelected() * @see \Codeception\Lib\InnerBrowser::dontSeeOptionIsSelected()
*/ */
public function cantSeeOptionIsSelected($selector, $optionText) { public function cantSeeOptionIsSelected($selector, $optionText) {
return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeOptionIsSelected', func_get_args())); return $this->getScenario()->runStep(new ConditionalAssertion('dontSeeOptionIsSelected', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
@@ -2061,10 +2064,10 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::dontSeeOptionIsSelected() * @see \Codeception\Lib\InnerBrowser::dontSeeOptionIsSelected()
*/ */
public function dontSeeOptionIsSelected($selector, $optionText) { public function dontSeeOptionIsSelected($selector, $optionText) {
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeOptionIsSelected', func_get_args())); return $this->getScenario()->runStep(new Assertion('dontSeeOptionIsSelected', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -2073,7 +2076,7 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::seePageNotFound() * @see \Codeception\Lib\InnerBrowser::seePageNotFound()
*/ */
public function canSeePageNotFound() { public function canSeePageNotFound() {
return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seePageNotFound', func_get_args())); return $this->getScenario()->runStep(new ConditionalAssertion('seePageNotFound', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
@@ -2082,10 +2085,10 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::seePageNotFound() * @see \Codeception\Lib\InnerBrowser::seePageNotFound()
*/ */
public function seePageNotFound() { public function seePageNotFound() {
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seePageNotFound', func_get_args())); return $this->getScenario()->runStep(new Assertion('seePageNotFound', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -2104,7 +2107,7 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::seeResponseCodeIs() * @see \Codeception\Lib\InnerBrowser::seeResponseCodeIs()
*/ */
public function canSeeResponseCodeIs($code) { public function canSeeResponseCodeIs($code) {
return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeResponseCodeIs', func_get_args())); return $this->getScenario()->runStep(new ConditionalAssertion('seeResponseCodeIs', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
@@ -2123,10 +2126,10 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::seeResponseCodeIs() * @see \Codeception\Lib\InnerBrowser::seeResponseCodeIs()
*/ */
public function seeResponseCodeIs($code) { public function seeResponseCodeIs($code) {
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeResponseCodeIs', func_get_args())); return $this->getScenario()->runStep(new Assertion('seeResponseCodeIs', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -2144,7 +2147,7 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::dontSeeResponseCodeIs() * @see \Codeception\Lib\InnerBrowser::dontSeeResponseCodeIs()
*/ */
public function cantSeeResponseCodeIs($code) { public function cantSeeResponseCodeIs($code) {
return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeResponseCodeIs', func_get_args())); return $this->getScenario()->runStep(new ConditionalAssertion('dontSeeResponseCodeIs', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
@@ -2162,10 +2165,10 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::dontSeeResponseCodeIs() * @see \Codeception\Lib\InnerBrowser::dontSeeResponseCodeIs()
*/ */
public function dontSeeResponseCodeIs($code) { public function dontSeeResponseCodeIs($code) {
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeResponseCodeIs', func_get_args())); return $this->getScenario()->runStep(new Assertion('dontSeeResponseCodeIs', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -2184,7 +2187,7 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::seeInTitle() * @see \Codeception\Lib\InnerBrowser::seeInTitle()
*/ */
public function canSeeInTitle($title) { public function canSeeInTitle($title) {
return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeInTitle', func_get_args())); return $this->getScenario()->runStep(new ConditionalAssertion('seeInTitle', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
@@ -2203,10 +2206,10 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::seeInTitle() * @see \Codeception\Lib\InnerBrowser::seeInTitle()
*/ */
public function seeInTitle($title) { public function seeInTitle($title) {
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeInTitle', func_get_args())); return $this->getScenario()->runStep(new Assertion('seeInTitle', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -2219,7 +2222,7 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::dontSeeInTitle() * @see \Codeception\Lib\InnerBrowser::dontSeeInTitle()
*/ */
public function cantSeeInTitle($title) { public function cantSeeInTitle($title) {
return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeInTitle', func_get_args())); return $this->getScenario()->runStep(new ConditionalAssertion('dontSeeInTitle', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
@@ -2232,10 +2235,10 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::dontSeeInTitle() * @see \Codeception\Lib\InnerBrowser::dontSeeInTitle()
*/ */
public function dontSeeInTitle($title) { public function dontSeeInTitle($title) {
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeInTitle', func_get_args())); return $this->getScenario()->runStep(new Assertion('dontSeeInTitle', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -2256,10 +2259,10 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::switchToIframe() * @see \Codeception\Lib\InnerBrowser::switchToIframe()
*/ */
public function switchToIframe($name) { public function switchToIframe($name) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('switchToIframe', func_get_args())); return $this->getScenario()->runStep(new Action('switchToIframe', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -2269,6 +2272,6 @@ trait AcceptanceTesterActions
* @see \Codeception\Lib\InnerBrowser::moveBack() * @see \Codeception\Lib\InnerBrowser::moveBack()
*/ */
public function moveBack($numberOfSteps = null) { public function moveBack($numberOfSteps = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('moveBack', func_get_args())); return $this->getScenario()->runStep(new Action('moveBack', func_get_args()));
} }
} }

546
tests/_support/_generated/FunctionalTesterActions.php Normal file → Executable file

File diff suppressed because it is too large Load Diff

150
tests/_support/_generated/UnitTesterActions.php Normal file → Executable file
View File

@@ -5,6 +5,8 @@ namespace _generated;
// You should not change it manually as it will be overwritten on next build // You should not change it manually as it will be overwritten on next build
// @codingStandardsIgnoreFile // @codingStandardsIgnoreFile
use Codeception\Step\Action;
trait UnitTesterActions trait UnitTesterActions
{ {
/** /**
@@ -12,7 +14,7 @@ trait UnitTesterActions
*/ */
abstract protected function getScenario(); abstract protected function getScenario();
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -39,10 +41,10 @@ trait UnitTesterActions
* @see \Codeception\Module\Asserts::assertEquals() * @see \Codeception\Module\Asserts::assertEquals()
*/ */
public function assertEquals($expected, $actual, $message = null, $delta = null) { public function assertEquals($expected, $actual, $message = null, $delta = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertEquals', func_get_args())); return $this->getScenario()->runStep(new Action('assertEquals', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -69,10 +71,10 @@ trait UnitTesterActions
* @see \Codeception\Module\Asserts::assertNotEquals() * @see \Codeception\Module\Asserts::assertNotEquals()
*/ */
public function assertNotEquals($expected, $actual, $message = null, $delta = null) { public function assertNotEquals($expected, $actual, $message = null, $delta = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotEquals', func_get_args())); return $this->getScenario()->runStep(new Action('assertNotEquals', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -84,10 +86,10 @@ trait UnitTesterActions
* @see \Codeception\Module\Asserts::assertSame() * @see \Codeception\Module\Asserts::assertSame()
*/ */
public function assertSame($expected, $actual, $message = null) { public function assertSame($expected, $actual, $message = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertSame', func_get_args())); return $this->getScenario()->runStep(new Action('assertSame', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -99,10 +101,10 @@ trait UnitTesterActions
* @see \Codeception\Module\Asserts::assertNotSame() * @see \Codeception\Module\Asserts::assertNotSame()
*/ */
public function assertNotSame($expected, $actual, $message = null) { public function assertNotSame($expected, $actual, $message = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotSame', func_get_args())); return $this->getScenario()->runStep(new Action('assertNotSame', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -114,10 +116,10 @@ trait UnitTesterActions
* @see \Codeception\Module\Asserts::assertGreaterThan() * @see \Codeception\Module\Asserts::assertGreaterThan()
*/ */
public function assertGreaterThan($expected, $actual, $message = null) { public function assertGreaterThan($expected, $actual, $message = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertGreaterThan', func_get_args())); return $this->getScenario()->runStep(new Action('assertGreaterThan', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -129,10 +131,10 @@ trait UnitTesterActions
* @see \Codeception\Module\Asserts::assertGreaterThanOrEqual() * @see \Codeception\Module\Asserts::assertGreaterThanOrEqual()
*/ */
public function assertGreaterThanOrEqual($expected, $actual, $message = null) { public function assertGreaterThanOrEqual($expected, $actual, $message = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertGreaterThanOrEqual', func_get_args())); return $this->getScenario()->runStep(new Action('assertGreaterThanOrEqual', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -144,10 +146,10 @@ trait UnitTesterActions
* @see \Codeception\Module\Asserts::assertLessThan() * @see \Codeception\Module\Asserts::assertLessThan()
*/ */
public function assertLessThan($expected, $actual, $message = null) { public function assertLessThan($expected, $actual, $message = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertLessThan', func_get_args())); return $this->getScenario()->runStep(new Action('assertLessThan', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -159,10 +161,10 @@ trait UnitTesterActions
* @see \Codeception\Module\Asserts::assertLessThanOrEqual() * @see \Codeception\Module\Asserts::assertLessThanOrEqual()
*/ */
public function assertLessThanOrEqual($expected, $actual, $message = null) { public function assertLessThanOrEqual($expected, $actual, $message = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertLessThanOrEqual', func_get_args())); return $this->getScenario()->runStep(new Action('assertLessThanOrEqual', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -174,10 +176,10 @@ trait UnitTesterActions
* @see \Codeception\Module\Asserts::assertContains() * @see \Codeception\Module\Asserts::assertContains()
*/ */
public function assertContains($needle, $haystack, $message = null) { public function assertContains($needle, $haystack, $message = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertContains', func_get_args())); return $this->getScenario()->runStep(new Action('assertContains', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -189,10 +191,10 @@ trait UnitTesterActions
* @see \Codeception\Module\Asserts::assertNotContains() * @see \Codeception\Module\Asserts::assertNotContains()
*/ */
public function assertNotContains($needle, $haystack, $message = null) { public function assertNotContains($needle, $haystack, $message = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotContains', func_get_args())); return $this->getScenario()->runStep(new Action('assertNotContains', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -204,10 +206,10 @@ trait UnitTesterActions
* @see \Codeception\Module\Asserts::assertRegExp() * @see \Codeception\Module\Asserts::assertRegExp()
*/ */
public function assertRegExp($pattern, $string, $message = null) { public function assertRegExp($pattern, $string, $message = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertRegExp', func_get_args())); return $this->getScenario()->runStep(new Action('assertRegExp', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -219,10 +221,10 @@ trait UnitTesterActions
* @see \Codeception\Module\Asserts::assertNotRegExp() * @see \Codeception\Module\Asserts::assertNotRegExp()
*/ */
public function assertNotRegExp($pattern, $string, $message = null) { public function assertNotRegExp($pattern, $string, $message = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotRegExp', func_get_args())); return $this->getScenario()->runStep(new Action('assertNotRegExp', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -234,10 +236,10 @@ trait UnitTesterActions
* @see \Codeception\Module\Asserts::assertStringStartsWith() * @see \Codeception\Module\Asserts::assertStringStartsWith()
*/ */
public function assertStringStartsWith($prefix, $string, $message = null) { public function assertStringStartsWith($prefix, $string, $message = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringStartsWith', func_get_args())); return $this->getScenario()->runStep(new Action('assertStringStartsWith', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -249,10 +251,10 @@ trait UnitTesterActions
* @see \Codeception\Module\Asserts::assertStringStartsNotWith() * @see \Codeception\Module\Asserts::assertStringStartsNotWith()
*/ */
public function assertStringStartsNotWith($prefix, $string, $message = null) { public function assertStringStartsNotWith($prefix, $string, $message = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringStartsNotWith', func_get_args())); return $this->getScenario()->runStep(new Action('assertStringStartsNotWith', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -263,10 +265,10 @@ trait UnitTesterActions
* @see \Codeception\Module\Asserts::assertEmpty() * @see \Codeception\Module\Asserts::assertEmpty()
*/ */
public function assertEmpty($actual, $message = null) { public function assertEmpty($actual, $message = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertEmpty', func_get_args())); return $this->getScenario()->runStep(new Action('assertEmpty', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -277,10 +279,10 @@ trait UnitTesterActions
* @see \Codeception\Module\Asserts::assertNotEmpty() * @see \Codeception\Module\Asserts::assertNotEmpty()
*/ */
public function assertNotEmpty($actual, $message = null) { public function assertNotEmpty($actual, $message = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotEmpty', func_get_args())); return $this->getScenario()->runStep(new Action('assertNotEmpty', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -291,10 +293,10 @@ trait UnitTesterActions
* @see \Codeception\Module\Asserts::assertNull() * @see \Codeception\Module\Asserts::assertNull()
*/ */
public function assertNull($actual, $message = null) { public function assertNull($actual, $message = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNull', func_get_args())); return $this->getScenario()->runStep(new Action('assertNull', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -305,10 +307,10 @@ trait UnitTesterActions
* @see \Codeception\Module\Asserts::assertNotNull() * @see \Codeception\Module\Asserts::assertNotNull()
*/ */
public function assertNotNull($actual, $message = null) { public function assertNotNull($actual, $message = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotNull', func_get_args())); return $this->getScenario()->runStep(new Action('assertNotNull', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -319,10 +321,10 @@ trait UnitTesterActions
* @see \Codeception\Module\Asserts::assertTrue() * @see \Codeception\Module\Asserts::assertTrue()
*/ */
public function assertTrue($condition, $message = null) { public function assertTrue($condition, $message = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertTrue', func_get_args())); return $this->getScenario()->runStep(new Action('assertTrue', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -333,10 +335,10 @@ trait UnitTesterActions
* @see \Codeception\Module\Asserts::assertFalse() * @see \Codeception\Module\Asserts::assertFalse()
*/ */
public function assertFalse($condition, $message = null) { public function assertFalse($condition, $message = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFalse', func_get_args())); return $this->getScenario()->runStep(new Action('assertFalse', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -347,10 +349,10 @@ trait UnitTesterActions
* @see \Codeception\Module\Asserts::assertFileExists() * @see \Codeception\Module\Asserts::assertFileExists()
*/ */
public function assertFileExists($filename, $message = null) { public function assertFileExists($filename, $message = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileExists', func_get_args())); return $this->getScenario()->runStep(new Action('assertFileExists', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -361,10 +363,10 @@ trait UnitTesterActions
* @see \Codeception\Module\Asserts::assertFileNotExists() * @see \Codeception\Module\Asserts::assertFileNotExists()
*/ */
public function assertFileNotExists($filename, $message = null) { public function assertFileNotExists($filename, $message = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileNotExists', func_get_args())); return $this->getScenario()->runStep(new Action('assertFileNotExists', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -374,10 +376,10 @@ trait UnitTesterActions
* @see \Codeception\Module\Asserts::assertGreaterOrEquals() * @see \Codeception\Module\Asserts::assertGreaterOrEquals()
*/ */
public function assertGreaterOrEquals($expected, $actual, $description = null) { public function assertGreaterOrEquals($expected, $actual, $description = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertGreaterOrEquals', func_get_args())); return $this->getScenario()->runStep(new Action('assertGreaterOrEquals', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -387,10 +389,10 @@ trait UnitTesterActions
* @see \Codeception\Module\Asserts::assertLessOrEquals() * @see \Codeception\Module\Asserts::assertLessOrEquals()
*/ */
public function assertLessOrEquals($expected, $actual, $description = null) { public function assertLessOrEquals($expected, $actual, $description = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertLessOrEquals', func_get_args())); return $this->getScenario()->runStep(new Action('assertLessOrEquals', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -399,10 +401,10 @@ trait UnitTesterActions
* @see \Codeception\Module\Asserts::assertIsEmpty() * @see \Codeception\Module\Asserts::assertIsEmpty()
*/ */
public function assertIsEmpty($actual, $description = null) { public function assertIsEmpty($actual, $description = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsEmpty', func_get_args())); return $this->getScenario()->runStep(new Action('assertIsEmpty', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -412,10 +414,10 @@ trait UnitTesterActions
* @see \Codeception\Module\Asserts::assertArrayHasKey() * @see \Codeception\Module\Asserts::assertArrayHasKey()
*/ */
public function assertArrayHasKey($key, $actual, $description = null) { public function assertArrayHasKey($key, $actual, $description = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertArrayHasKey', func_get_args())); return $this->getScenario()->runStep(new Action('assertArrayHasKey', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -425,10 +427,10 @@ trait UnitTesterActions
* @see \Codeception\Module\Asserts::assertArrayNotHasKey() * @see \Codeception\Module\Asserts::assertArrayNotHasKey()
*/ */
public function assertArrayNotHasKey($key, $actual, $description = null) { public function assertArrayNotHasKey($key, $actual, $description = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertArrayNotHasKey', func_get_args())); return $this->getScenario()->runStep(new Action('assertArrayNotHasKey', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -441,10 +443,10 @@ trait UnitTesterActions
* @see \Codeception\Module\Asserts::assertArraySubset() * @see \Codeception\Module\Asserts::assertArraySubset()
*/ */
public function assertArraySubset($subset, $array, $strict = null, $message = null) { public function assertArraySubset($subset, $array, $strict = null, $message = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertArraySubset', func_get_args())); return $this->getScenario()->runStep(new Action('assertArraySubset', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -454,10 +456,10 @@ trait UnitTesterActions
* @see \Codeception\Module\Asserts::assertCount() * @see \Codeception\Module\Asserts::assertCount()
*/ */
public function assertCount($expectedCount, $actual, $description = null) { public function assertCount($expectedCount, $actual, $description = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertCount', func_get_args())); return $this->getScenario()->runStep(new Action('assertCount', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -467,10 +469,10 @@ trait UnitTesterActions
* @see \Helper\ExtraAsserts::assertInstanceOf() * @see \Helper\ExtraAsserts::assertInstanceOf()
*/ */
public function assertInstanceOf($expected, $actual, $message = null) { public function assertInstanceOf($expected, $actual, $message = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertInstanceOf', func_get_args())); return $this->getScenario()->runStep(new Action('assertInstanceOf', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -480,10 +482,10 @@ trait UnitTesterActions
* @see \Codeception\Module\Asserts::assertNotInstanceOf() * @see \Codeception\Module\Asserts::assertNotInstanceOf()
*/ */
public function assertNotInstanceOf($class, $actual, $description = null) { public function assertNotInstanceOf($class, $actual, $description = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotInstanceOf', func_get_args())); return $this->getScenario()->runStep(new Action('assertNotInstanceOf', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -493,10 +495,10 @@ trait UnitTesterActions
* @see \Codeception\Module\Asserts::assertInternalType() * @see \Codeception\Module\Asserts::assertInternalType()
*/ */
public function assertInternalType($type, $actual, $description = null) { public function assertInternalType($type, $actual, $description = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertInternalType', func_get_args())); return $this->getScenario()->runStep(new Action('assertInternalType', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -506,10 +508,10 @@ trait UnitTesterActions
* @see \Codeception\Module\Asserts::fail() * @see \Codeception\Module\Asserts::fail()
*/ */
public function fail($message) { public function fail($message) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('fail', func_get_args())); return $this->getScenario()->runStep(new Action('fail', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -540,10 +542,10 @@ trait UnitTesterActions
* @see \Codeception\Module\Asserts::expectException() * @see \Codeception\Module\Asserts::expectException()
*/ */
public function expectException($exception, $callback) { public function expectException($exception, $callback) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('expectException', func_get_args())); return $this->getScenario()->runStep(new Action('expectException', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -551,10 +553,10 @@ trait UnitTesterActions
* @see \Helper\ExtraAsserts::assertCanSave() * @see \Helper\ExtraAsserts::assertCanSave()
*/ */
public function assertCanSave($model) { public function assertCanSave($model) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertCanSave', func_get_args())); return $this->getScenario()->runStep(new Action('assertCanSave', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -562,10 +564,10 @@ trait UnitTesterActions
* @see \Helper\ExtraAsserts::assertCanNotSave() * @see \Helper\ExtraAsserts::assertCanNotSave()
*/ */
public function assertCanNotSave($model, $message = null) { public function assertCanNotSave($model, $message = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertCanNotSave', func_get_args())); return $this->getScenario()->runStep(new Action('assertCanNotSave', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -573,6 +575,6 @@ trait UnitTesterActions
* @see \Helper\ExtraAsserts::haveNotFinishedTest() * @see \Helper\ExtraAsserts::haveNotFinishedTest()
*/ */
public function haveNotFinishedTest() { public function haveNotFinishedTest() {
return $this->getScenario()->runStep(new \Codeception\Step\Action('haveNotFinishedTest', func_get_args())); return $this->getScenario()->runStep(new Action('haveNotFinishedTest', func_get_args()));
} }
} }

0
tests/unit.suite.yml Normal file → Executable file
View File

3
tests/unit/AbcParser/Application/PersonFactoryTest.php Normal file → Executable file
View File

@@ -2,11 +2,12 @@
namespace Tests\Unit\AbcParser\Application; namespace Tests\Unit\AbcParser\Application;
use Enzyme\Axiom\Atoms\StringAtom; use Enzyme\Axiom\Atoms\StringAtom;
use PHPUnit_Framework_TestCase;
use XaiCorp\AbcParser\Application\PersonFactory; use XaiCorp\AbcParser\Application\PersonFactory;
use XaiCorp\AbcParser\Domain\Atoms\EmailAtom; use XaiCorp\AbcParser\Domain\Atoms\EmailAtom;
use XaiCorp\AbcParser\Domain\Core\Person; use XaiCorp\AbcParser\Domain\Core\Person;
class PersonFactoryTest extends \PHPUnit_Framework_TestCase class PersonFactoryTest extends PHPUnit_Framework_TestCase
{ {
public function testCreate() public function testCreate()

View File

@@ -1,9 +1,10 @@
<?php <?php
use Codeception\Test\Unit;
use XaiCorp\AbcParser\Application\UseCases\ExtractTuneFromCollection; use XaiCorp\AbcParser\Application\UseCases\ExtractTuneFromCollection;
use XaiCorp\AbcParser\Application\UseCases\ImportAbcFile; use XaiCorp\AbcParser\Application\UseCases\ImportAbcFile;
class ExtractTuneFromCollectionTest extends \Codeception\Test\Unit class ExtractTuneFromCollectionTest extends Unit
{ {
/** /**
* @param string $filename * @param string $filename

View File

@@ -2,11 +2,12 @@
namespace Tests\Unit\AbcParser\Application\UseCases; namespace Tests\Unit\AbcParser\Application\UseCases;
use Codeception\Test\Unit;
use XaiCorp\AbcParser\Application\UseCases\ImportAbcFile; use XaiCorp\AbcParser\Application\UseCases\ImportAbcFile;
use XaiCorp\AbcParser\Domain\Core\TuneCollection; use XaiCorp\AbcParser\Domain\Core\TuneCollection;
use XaiCorp\AbcParser\Domain\Modules\Interpreter\Builder; use XaiCorp\AbcParser\Domain\Modules\Interpreter\Builder;
class ImportAbcFileTest extends \Codeception\Test\Unit class ImportAbcFileTest extends Unit
{ {
/** /**

View File

@@ -9,10 +9,10 @@
namespace Tests\Unit\AbcParser\Domain\Atoms; namespace Tests\Unit\AbcParser\Domain\Atoms;
use Enzyme\Axiom\Atoms\AtomInterface; use Enzyme\Axiom\Atoms\AtomInterface;
use Enzyme\Axiom\Exceptions\AtomException; use PHPUnit_Framework_TestCase;
use XaiCorp\AbcParser\Domain\Atoms\UnsignedIntegerAtom; use XaiCorp\AbcParser\Domain\Atoms\UnsignedIntegerAtom;
class UnsignedIntegerAtomTest extends \PHPUnit_Framework_TestCase class UnsignedIntegerAtomTest extends PHPUnit_Framework_TestCase
{ {
public function testCreateAtom() public function testCreateAtom()
{ {

3
tests/unit/AbcParser/Domain/Core/PersonTest.php Normal file → Executable file
View File

@@ -9,10 +9,11 @@
namespace Tests\Unit\AbcParser\Domain\Core; namespace Tests\Unit\AbcParser\Domain\Core;
use Enzyme\Axiom\Atoms\StringAtom; use Enzyme\Axiom\Atoms\StringAtom;
use PHPUnit_Framework_TestCase;
use XaiCorp\AbcParser\Domain\Atoms\EmailAtom; use XaiCorp\AbcParser\Domain\Atoms\EmailAtom;
use XaiCorp\AbcParser\Domain\Core\Person; use XaiCorp\AbcParser\Domain\Core\Person;
class PersonTest extends \PHPUnit_Framework_TestCase class PersonTest extends PHPUnit_Framework_TestCase
{ {
public function testCreate() public function testCreate()

3
tests/unit/AbcParser/Domain/Core/SettingTest.php Normal file → Executable file
View File

@@ -9,11 +9,12 @@
namespace Tests\Unit\AbcParser\Domain\Core; namespace Tests\Unit\AbcParser\Domain\Core;
use Enzyme\Axiom\Atoms\StringAtom; use Enzyme\Axiom\Atoms\StringAtom;
use PHPUnit_Framework_TestCase;
use XaiCorp\AbcParser\Domain\Atoms\EmailAtom; use XaiCorp\AbcParser\Domain\Atoms\EmailAtom;
use XaiCorp\AbcParser\Domain\Core\Setting; use XaiCorp\AbcParser\Domain\Core\Setting;
use XaiCorp\AbcParser\Domain\Core\Transcriber; use XaiCorp\AbcParser\Domain\Core\Transcriber;
class SettingTest extends \PHPUnit_Framework_TestCase class SettingTest extends PHPUnit_Framework_TestCase
{ {
public function testCreate() public function testCreate()
{ {

View File

@@ -6,11 +6,12 @@
* Time: 8:28 AM * Time: 8:28 AM
*/ */
use XaiCorp\AbcParser\Domain\Core\TuneAttributeArrayBuilder; use Codeception\Test\Unit;
use XaiCorp\AbcParser\Domain\Atoms\UnsignedIntegerAtom; use XaiCorp\AbcParser\Domain\Atoms\UnsignedIntegerAtom;
use XaiCorp\AbcParser\Domain\Core\Tune; use XaiCorp\AbcParser\Domain\Core\Tune;
use XaiCorp\AbcParser\Domain\Core\TuneAttributeArrayBuilder;
class TuneAttributeArrayBuilderTest extends \Codeception\Test\Unit class TuneAttributeArrayBuilderTest extends Unit
{ {
public function testSetIndex() public function testSetIndex()

5
tests/unit/AbcParser/Domain/Core/TuneTest.php Normal file → Executable file
View File

@@ -9,16 +9,17 @@
namespace Tests\Unit\AbcParser\Domain\Core; namespace Tests\Unit\AbcParser\Domain\Core;
use Enzyme\Axiom\Atoms\StringAtom; use Enzyme\Axiom\Atoms\StringAtom;
use PHPUnit_Framework_TestCase;
use Webpatser\Uuid\Uuid; use Webpatser\Uuid\Uuid;
use XaiCorp\AbcParser\Domain\Atoms\EmailAtom; use XaiCorp\AbcParser\Domain\Atoms\EmailAtom;
use XaiCorp\AbcParser\Domain\Atoms\UnsignedIntegerAtom; use XaiCorp\AbcParser\Domain\Atoms\UnsignedIntegerAtom;
use XaiCorp\AbcParser\Domain\Core\Author; use XaiCorp\AbcParser\Domain\Core\Author;
use XaiCorp\AbcParser\Domain\Core\Composer; use XaiCorp\AbcParser\Domain\Core\Composer;
use XaiCorp\AbcParser\Domain\Core\Tune;
use XaiCorp\AbcParser\Domain\Core\Setting; use XaiCorp\AbcParser\Domain\Core\Setting;
use XaiCorp\AbcParser\Domain\Core\Tune;
use XaiCorp\AbcParser\Domain\Core\TuneAttributeArrayBuilder; use XaiCorp\AbcParser\Domain\Core\TuneAttributeArrayBuilder;
class TuneTest extends \PHPUnit_Framework_TestCase class TuneTest extends PHPUnit_Framework_TestCase
{ {
public function testCreate() public function testCreate()
{ {

View File

@@ -9,9 +9,10 @@
namespace Tests\Unit\AbcParser\Domain\Modules\Interpreter; namespace Tests\Unit\AbcParser\Domain\Modules\Interpreter;
use Enzyme\Axiom\Atoms\StringAtom; use Enzyme\Axiom\Atoms\StringAtom;
use PHPUnit_Framework_TestCase;
use XaiCorp\AbcParser\Domain\Modules\Interpreter\Context; use XaiCorp\AbcParser\Domain\Modules\Interpreter\Context;
class ContextTest extends \PHPUnit_Framework_TestCase class ContextTest extends PHPUnit_Framework_TestCase
{ {
private function getAbc($filename = '/abc/valid_abc_1.abc') private function getAbc($filename = '/abc/valid_abc_1.abc')
{ {

View File

@@ -9,17 +9,17 @@
namespace Tests\Unit\AbcParser\Domain\Modules\Interpreter; namespace Tests\Unit\AbcParser\Domain\Modules\Interpreter;
use Enzyme\Axiom\Atoms\StringAtom; use Enzyme\Axiom\Atoms\StringAtom;
use Enzyme\Collection\CollectionException; use Exception;
use PHPUnit_Framework_TestCase;
use XaiCorp\AbcParser\Domain\Atoms\EmailAtom; use XaiCorp\AbcParser\Domain\Atoms\EmailAtom;
use XaiCorp\AbcParser\Domain\Core\Author; use XaiCorp\AbcParser\Domain\Core\Author;
use XaiCorp\AbcParser\Domain\Core\Composer; use XaiCorp\AbcParser\Domain\Core\Composer;
use XaiCorp\AbcParser\Domain\Core\Tune;
use XaiCorp\AbcParser\Domain\Modules\Interpreter\Builder; use XaiCorp\AbcParser\Domain\Modules\Interpreter\Builder;
use XaiCorp\AbcParser\Domain\Modules\Interpreter\Context; use XaiCorp\AbcParser\Domain\Modules\Interpreter\Context;
use XaiCorp\AbcParser\Domain\Modules\Interpreter\DefaultInterpreter; use XaiCorp\AbcParser\Domain\Modules\Interpreter\DefaultInterpreter;
use XaiCorp\AbcParser\Domain\Modules\Interpreter\Interpreter; use XaiCorp\AbcParser\Domain\Modules\Interpreter\Interpreter;
class DefaultInterpreterTest extends \PHPUnit_Framework_TestCase class DefaultInterpreterTest extends PHPUnit_Framework_TestCase
{ {
/** /**
* @var Interpreter * @var Interpreter
@@ -49,7 +49,7 @@ class DefaultInterpreterTest extends \PHPUnit_Framework_TestCase
{ {
try { try {
return new StringAtom($string); return new StringAtom($string);
} catch (\Exception $e) { } catch (Exception $e) {
// //
} }
} }

0
tests/unit/_bootstrap.php Normal file → Executable file
View File