init
This commit is contained in:
6
vendor/codeception/base/src/Codeception/Exception/ConditionalAssertionFailed.php
vendored
Normal file
6
vendor/codeception/base/src/Codeception/Exception/ConditionalAssertionFailed.php
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<?php
|
||||
namespace Codeception\Exception;
|
||||
|
||||
class ConditionalAssertionFailed extends \PHPUnit\Framework\AssertionFailedError
|
||||
{
|
||||
}
|
||||
6
vendor/codeception/base/src/Codeception/Exception/ConfigurationException.php
vendored
Normal file
6
vendor/codeception/base/src/Codeception/Exception/ConfigurationException.php
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<?php
|
||||
namespace Codeception\Exception;
|
||||
|
||||
class ConfigurationException extends \Exception
|
||||
{
|
||||
}
|
||||
6
vendor/codeception/base/src/Codeception/Exception/ConnectionException.php
vendored
Normal file
6
vendor/codeception/base/src/Codeception/Exception/ConnectionException.php
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<?php
|
||||
namespace Codeception\Exception;
|
||||
|
||||
class ConnectionException extends \RuntimeException
|
||||
{
|
||||
}
|
||||
6
vendor/codeception/base/src/Codeception/Exception/ContentNotFound.php
vendored
Normal file
6
vendor/codeception/base/src/Codeception/Exception/ContentNotFound.php
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<?php
|
||||
namespace Codeception\Exception;
|
||||
|
||||
class ContentNotFound extends \PHPUnit\Framework\AssertionFailedError
|
||||
{
|
||||
}
|
||||
13
vendor/codeception/base/src/Codeception/Exception/ElementNotFound.php
vendored
Normal file
13
vendor/codeception/base/src/Codeception/Exception/ElementNotFound.php
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
namespace Codeception\Exception;
|
||||
|
||||
use Codeception\Util\Locator;
|
||||
|
||||
class ElementNotFound extends \PHPUnit\Framework\AssertionFailedError
|
||||
{
|
||||
public function __construct($selector, $message = null)
|
||||
{
|
||||
$selector = Locator::humanReadableString($selector);
|
||||
parent::__construct($message . " element with $selector was not found.");
|
||||
}
|
||||
}
|
||||
14
vendor/codeception/base/src/Codeception/Exception/ExtensionException.php
vendored
Normal file
14
vendor/codeception/base/src/Codeception/Exception/ExtensionException.php
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
namespace Codeception\Exception;
|
||||
|
||||
class ExtensionException extends \Exception
|
||||
{
|
||||
public function __construct($extension, $message, \Exception $previous = null)
|
||||
{
|
||||
parent::__construct($message, $previous);
|
||||
if (is_object($extension)) {
|
||||
$extension = get_class($extension);
|
||||
}
|
||||
$this->message = $extension . "\n\n" . $this->message;
|
||||
}
|
||||
}
|
||||
7
vendor/codeception/base/src/Codeception/Exception/ExternalUrlException.php
vendored
Normal file
7
vendor/codeception/base/src/Codeception/Exception/ExternalUrlException.php
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
namespace Codeception\Exception;
|
||||
|
||||
class ExternalUrlException extends \Exception
|
||||
{
|
||||
}
|
||||
7
vendor/codeception/base/src/Codeception/Exception/Fail.php
vendored
Normal file
7
vendor/codeception/base/src/Codeception/Exception/Fail.php
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
namespace Codeception\Exception;
|
||||
|
||||
class Fail extends \PHPUnit\Framework\AssertionFailedError
|
||||
{
|
||||
|
||||
}
|
||||
7
vendor/codeception/base/src/Codeception/Exception/Incomplete.php
vendored
Normal file
7
vendor/codeception/base/src/Codeception/Exception/Incomplete.php
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
namespace Codeception\Exception;
|
||||
|
||||
class Incomplete extends \PHPUnit\Framework\IncompleteTestError
|
||||
{
|
||||
|
||||
}
|
||||
6
vendor/codeception/base/src/Codeception/Exception/InjectionException.php
vendored
Normal file
6
vendor/codeception/base/src/Codeception/Exception/InjectionException.php
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<?php
|
||||
namespace Codeception\Exception;
|
||||
|
||||
class InjectionException extends \Exception
|
||||
{
|
||||
}
|
||||
10
vendor/codeception/base/src/Codeception/Exception/MalformedLocatorException.php
vendored
Normal file
10
vendor/codeception/base/src/Codeception/Exception/MalformedLocatorException.php
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
namespace Codeception\Exception;
|
||||
|
||||
class MalformedLocatorException extends TestRuntimeException
|
||||
{
|
||||
public function __construct($locator, $type = "CSS or XPath")
|
||||
{
|
||||
parent::__construct(ucfirst($type) . " locator is malformed: $locator");
|
||||
}
|
||||
}
|
||||
15
vendor/codeception/base/src/Codeception/Exception/ModuleConfigException.php
vendored
Normal file
15
vendor/codeception/base/src/Codeception/Exception/ModuleConfigException.php
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
namespace Codeception\Exception;
|
||||
|
||||
class ModuleConfigException extends \Exception
|
||||
{
|
||||
public function __construct($module, $message, \Exception $previous = null)
|
||||
{
|
||||
if (is_object($module)) {
|
||||
$module = get_class($module);
|
||||
}
|
||||
$module = str_replace('Codeception\Module\\', '', ltrim($module, '\\'));
|
||||
parent::__construct($message, 0, $previous);
|
||||
$this->message = $module . " module is not configured!\n \n" . $this->message;
|
||||
}
|
||||
}
|
||||
23
vendor/codeception/base/src/Codeception/Exception/ModuleConflictException.php
vendored
Normal file
23
vendor/codeception/base/src/Codeception/Exception/ModuleConflictException.php
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
namespace Codeception\Exception;
|
||||
|
||||
class ModuleConflictException extends \Exception
|
||||
{
|
||||
public function __construct($module, $conflicted, $additional = '')
|
||||
{
|
||||
if (is_object($module)) {
|
||||
$module = get_class($module);
|
||||
}
|
||||
if (is_object($conflicted)) {
|
||||
$conflicted = get_class($conflicted);
|
||||
}
|
||||
$module = ltrim(str_replace('Codeception\Module\\', '', $module), '\\');
|
||||
$conflicted = ltrim(str_replace('Codeception\Module\\', '', $conflicted), '\\');
|
||||
$this->message = "$module module conflicts with $conflicted\n\n--\n"
|
||||
. "This usually happens when you enable two modules with the same actions but with different backends.\n"
|
||||
. "For instance, you can't run PhpBrowser, WebDriver, Laravel5 modules in one suite,\n"
|
||||
. "as they implement similar methods but use different drivers to execute them.\n"
|
||||
. "You can load a part of module (like: ORM) to avoid conflict.\n"
|
||||
. $additional;
|
||||
}
|
||||
}
|
||||
18
vendor/codeception/base/src/Codeception/Exception/ModuleException.php
vendored
Normal file
18
vendor/codeception/base/src/Codeception/Exception/ModuleException.php
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
namespace Codeception\Exception;
|
||||
|
||||
class ModuleException extends \Exception
|
||||
{
|
||||
protected $module;
|
||||
|
||||
public function __construct($module, $message)
|
||||
{
|
||||
if (is_object($module)) {
|
||||
$module = get_class($module);
|
||||
}
|
||||
$module = ltrim(str_replace('Codeception\Module\\', '', $module), '\\');
|
||||
$this->module = $module;
|
||||
parent::__construct($message);
|
||||
$this->message = "$module: {$this->message}";
|
||||
}
|
||||
}
|
||||
15
vendor/codeception/base/src/Codeception/Exception/ModuleRequireException.php
vendored
Normal file
15
vendor/codeception/base/src/Codeception/Exception/ModuleRequireException.php
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
namespace Codeception\Exception;
|
||||
|
||||
class ModuleRequireException extends \Exception
|
||||
{
|
||||
public function __construct($module, $message)
|
||||
{
|
||||
if (is_object($module)) {
|
||||
$module = get_class($module);
|
||||
}
|
||||
$module = str_replace('Codeception\\Module\\', '', ltrim($module, '\\'));
|
||||
parent::__construct($message);
|
||||
$this->message = "[$module] module requirements not met --\n \n" . $this->message;
|
||||
}
|
||||
}
|
||||
6
vendor/codeception/base/src/Codeception/Exception/ParseException.php
vendored
Normal file
6
vendor/codeception/base/src/Codeception/Exception/ParseException.php
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<?php
|
||||
namespace Codeception\Exception;
|
||||
|
||||
class ParseException extends \Exception
|
||||
{
|
||||
}
|
||||
11
vendor/codeception/base/src/Codeception/Exception/RemoteException.php
vendored
Normal file
11
vendor/codeception/base/src/Codeception/Exception/RemoteException.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
namespace Codeception\Exception;
|
||||
|
||||
class RemoteException extends \Exception
|
||||
{
|
||||
public function __construct($message)
|
||||
{
|
||||
parent::__construct($message);
|
||||
$this->message = "Remote Application Error:\n" . $this->message;
|
||||
}
|
||||
}
|
||||
7
vendor/codeception/base/src/Codeception/Exception/Skip.php
vendored
Normal file
7
vendor/codeception/base/src/Codeception/Exception/Skip.php
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
namespace Codeception\Exception;
|
||||
|
||||
class Skip extends \PHPUnit\Framework\SkippedTestError
|
||||
{
|
||||
|
||||
}
|
||||
17
vendor/codeception/base/src/Codeception/Exception/TestParseException.php
vendored
Normal file
17
vendor/codeception/base/src/Codeception/Exception/TestParseException.php
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
namespace Codeception\Exception;
|
||||
|
||||
class TestParseException extends \Exception
|
||||
{
|
||||
public function __construct($fileName, $errors = null, $line = null)
|
||||
{
|
||||
if ($line) {
|
||||
$this->message = "Couldn't parse test '$fileName' on line $line";
|
||||
} else {
|
||||
$this->message = "Couldn't parse test '$fileName'";
|
||||
}
|
||||
if ($errors) {
|
||||
$this->message .= "\n$errors";
|
||||
}
|
||||
}
|
||||
}
|
||||
6
vendor/codeception/base/src/Codeception/Exception/TestRuntimeException.php
vendored
Normal file
6
vendor/codeception/base/src/Codeception/Exception/TestRuntimeException.php
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<?php
|
||||
namespace Codeception\Exception;
|
||||
|
||||
class TestRuntimeException extends \RuntimeException
|
||||
{
|
||||
}
|
||||
Reference in New Issue
Block a user