repo stringlengths 7 63 | file_url stringlengths 81 284 | file_path stringlengths 5 200 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:02:33 2026-01-05 05:24:06 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
deployphp/deployer | https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/tests/legacy/NamedArgumentsTest.php | tests/legacy/NamedArgumentsTest.php | <?php
/* (c) Anton Medvedev <anton@medv.io>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Deployer;
use Symfony\Component\Console\Output\Output;
// TODO: Wait until Deployer 7.1 with only php8 supports.
//class NamedArg... | php | MIT | 815419f1c95c4316609d73e6f1b1efd682d73430 | 2026-01-04T15:05:41.290405Z | false |
deployphp/deployer | https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/tests/legacy/EnvTest.php | tests/legacy/EnvTest.php | <?php
/* (c) Anton Medvedev <anton@medv.io>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Deployer;
class EnvTest extends AbstractTest
{
public const RECIPE = __DIR__ . '/recipe/env.php';
public function testOnc... | php | MIT | 815419f1c95c4316609d73e6f1b1efd682d73430 | 2026-01-04T15:05:41.290405Z | false |
deployphp/deployer | https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/tests/legacy/ParallelTest.php | tests/legacy/ParallelTest.php | <?php
/* (c) Anton Medvedev <anton@medv.io>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Deployer;
use Symfony\Component\Console\Output\Output;
class ParallelTest extends AbstractTest
{
public const RECIPE = __DIR_... | php | MIT | 815419f1c95c4316609d73e6f1b1efd682d73430 | 2026-01-04T15:05:41.290405Z | false |
deployphp/deployer | https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/tests/legacy/SelectTest.php | tests/legacy/SelectTest.php | <?php
/* (c) Anton Medvedev <anton@medv.io>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Deployer;
use Symfony\Component\Console\Output\Output;
class SelectTest extends AbstractTest
{
public const RECIPE = __DIR__ ... | php | MIT | 815419f1c95c4316609d73e6f1b1efd682d73430 | 2026-01-04T15:05:41.290405Z | false |
deployphp/deployer | https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/tests/legacy/DeployTest.php | tests/legacy/DeployTest.php | <?php
/* (c) Anton Medvedev <anton@medv.io>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Deployer;
use Symfony\Component\Console\Output\Output;
class DeployTest extends AbstractTest
{
public const RECIPE = __DIR__ ... | php | MIT | 815419f1c95c4316609d73e6f1b1efd682d73430 | 2026-01-04T15:05:41.290405Z | false |
deployphp/deployer | https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/tests/legacy/AbstractTest.php | tests/legacy/AbstractTest.php | <?php
/* (c) Anton Medvedev <anton@medv.io>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Deployer;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Console\Application;
use Symfony\Component\Console\Output\Output;
... | php | MIT | 815419f1c95c4316609d73e6f1b1efd682d73430 | 2026-01-04T15:05:41.290405Z | false |
deployphp/deployer | https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/tests/legacy/recipe/once.php | tests/legacy/recipe/once.php | <?php
namespace Deployer;
localhost('prod');
localhost('beta');
task('test_once', function () {
writeln('SHOULD BE ONCE');
})->once();
| php | MIT | 815419f1c95c4316609d73e6f1b1efd682d73430 | 2026-01-04T15:05:41.290405Z | false |
deployphp/deployer | https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/tests/legacy/recipe/env.php | tests/legacy/recipe/env.php | <?php
namespace Deployer;
localhost('prod');
set('env', [
'VAR' => 'global',
]);
task('test', function () {
info('global=' . run('echo $VAR'));
info('local=' . run('echo $VAR', env: ['VAR' => 'local']));
info('dotenv=' . run('echo $KEY'));
info('dotenv=' . run('echo $KEY', env: ['KEY' => 'local'... | php | MIT | 815419f1c95c4316609d73e6f1b1efd682d73430 | 2026-01-04T15:05:41.290405Z | false |
deployphp/deployer | https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/tests/legacy/recipe/update_code.php | tests/legacy/recipe/update_code.php | <?php
namespace Deployer;
require __DIR__ . '/deploy.php';
task('deploy:update_code', function () {
upload(__FIXTURES__ . '/project/', '{{release_path}}');
});
| php | MIT | 815419f1c95c4316609d73e6f1b1efd682d73430 | 2026-01-04T15:05:41.290405Z | false |
deployphp/deployer | https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/tests/legacy/recipe/select.php | tests/legacy/recipe/select.php | <?php
namespace Deployer;
localhost('prod')->setLabels(['env' => 'prod']);
localhost('beta')->setLabels(['env' => 'dev']);
localhost('dev')->setLabels(['env' => 'dev']);
task('test', function () {
on(select('env=dev'), function () {
info('executing on {{alias}}');
});
});
| php | MIT | 815419f1c95c4316609d73e6f1b1efd682d73430 | 2026-01-04T15:05:41.290405Z | false |
deployphp/deployer | https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/tests/legacy/recipe/deploy.php | tests/legacy/recipe/deploy.php | <?php
namespace Deployer;
require 'recipe/common.php';
set('application', 'deployer');
set('repository', __REPOSITORY__);
set('shared_dirs', [
'uploads',
'storage/logs/',
'storage/db',
]);
set('shared_files', [
'.env',
'config/test.yaml',
]);
set('keep_releases', 3);
set('http_user', false);
loc... | php | MIT | 815419f1c95c4316609d73e6f1b1efd682d73430 | 2026-01-04T15:05:41.290405Z | false |
deployphp/deployer | https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/tests/legacy/recipe/once_per_node.php | tests/legacy/recipe/once_per_node.php | <?php
namespace Deployer;
localhost('group_a_1')
->setHostname('localhost');
localhost('group_a_2')
->setHostname('localhost');
localhost('group_b_1')
->setLabels(['node' => 'anna']);
localhost('group_b_2')
->setLabels(['node' => 'anna']);
task('test_once_per_node', function () {
writeln('alias: ... | php | MIT | 815419f1c95c4316609d73e6f1b1efd682d73430 | 2026-01-04T15:05:41.290405Z | false |
deployphp/deployer | https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/tests/legacy/recipe/parallel.php | tests/legacy/recipe/parallel.php | <?php
namespace Deployer;
localhost('prod');
localhost('beta')
->set('host_level_callback_config', function () {
return 'from callback';
});
// testServer:
task('ask', function () {
$answer = ask('Question: What kind of bear is best?');
writeln($answer);
});
// testWorker, testOption:
set(... | php | MIT | 815419f1c95c4316609d73e6f1b1efd682d73430 | 2026-01-04T15:05:41.290405Z | false |
deployphp/deployer | https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/tests/joy/HostDefaultConfigTest.php | tests/joy/HostDefaultConfigTest.php | <?php
declare(strict_types=1);
/* (c) Anton Medvedev <anton@medv.io>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace joy;
class HostDefaultConfigTest extends JoyTest
{
protected function recipe(): string
{
... | php | MIT | 815419f1c95c4316609d73e6f1b1efd682d73430 | 2026-01-04T15:05:41.290405Z | false |
deployphp/deployer | https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/tests/joy/OnFuncTest.php | tests/joy/OnFuncTest.php | <?php
/* (c) Anton Medvedev <anton@medv.io>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace joy;
class OnFuncTest extends JoyTest
{
protected function recipe(): string
{
return <<<'PHP'
<?php
... | php | MIT | 815419f1c95c4316609d73e6f1b1efd682d73430 | 2026-01-04T15:05:41.290405Z | false |
deployphp/deployer | https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/tests/joy/JoyTest.php | tests/joy/JoyTest.php | <?php
/* (c) Anton Medvedev <anton@medv.io>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace joy;
use Deployer\Deployer;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Console\Application;
use Symfony\Component\Conso... | php | MIT | 815419f1c95c4316609d73e6f1b1efd682d73430 | 2026-01-04T15:05:41.290405Z | false |
php-fig/log | https://github.com/php-fig/log/blob/f16e1d5863e37f8d8c2a01719f5b34baa2b714d3/src/LoggerAwareInterface.php | src/LoggerAwareInterface.php | <?php
namespace Psr\Log;
/**
* Describes a logger-aware instance.
*/
interface LoggerAwareInterface
{
/**
* Sets a logger instance on the object.
*/
public function setLogger(LoggerInterface $logger): void;
}
| php | MIT | f16e1d5863e37f8d8c2a01719f5b34baa2b714d3 | 2026-01-04T15:06:44.255861Z | false |
php-fig/log | https://github.com/php-fig/log/blob/f16e1d5863e37f8d8c2a01719f5b34baa2b714d3/src/AbstractLogger.php | src/AbstractLogger.php | <?php
namespace Psr\Log;
/**
* This is a simple Logger implementation that other Loggers can inherit from.
*
* It simply delegates all log-level-specific methods to the `log` method to
* reduce boilerplate code that a simple Logger that does the same thing with
* messages regardless of the error level has to imp... | php | MIT | f16e1d5863e37f8d8c2a01719f5b34baa2b714d3 | 2026-01-04T15:06:44.255861Z | false |
php-fig/log | https://github.com/php-fig/log/blob/f16e1d5863e37f8d8c2a01719f5b34baa2b714d3/src/LogLevel.php | src/LogLevel.php | <?php
namespace Psr\Log;
/**
* Describes log levels.
*/
class LogLevel
{
const EMERGENCY = 'emergency';
const ALERT = 'alert';
const CRITICAL = 'critical';
const ERROR = 'error';
const WARNING = 'warning';
const NOTICE = 'notice';
const INFO = 'info';
const DEBUG ... | php | MIT | f16e1d5863e37f8d8c2a01719f5b34baa2b714d3 | 2026-01-04T15:06:44.255861Z | false |
php-fig/log | https://github.com/php-fig/log/blob/f16e1d5863e37f8d8c2a01719f5b34baa2b714d3/src/LoggerAwareTrait.php | src/LoggerAwareTrait.php | <?php
namespace Psr\Log;
/**
* Basic Implementation of LoggerAwareInterface.
*/
trait LoggerAwareTrait
{
/**
* The logger instance.
*/
protected ?LoggerInterface $logger = null;
/**
* Sets a logger.
*/
public function setLogger(LoggerInterface $logger): void
{
$this-... | php | MIT | f16e1d5863e37f8d8c2a01719f5b34baa2b714d3 | 2026-01-04T15:06:44.255861Z | false |
php-fig/log | https://github.com/php-fig/log/blob/f16e1d5863e37f8d8c2a01719f5b34baa2b714d3/src/LoggerTrait.php | src/LoggerTrait.php | <?php
namespace Psr\Log;
/**
* This is a simple Logger trait that classes unable to extend AbstractLogger
* (because they extend another class, etc) can include.
*
* It simply delegates all log-level-specific methods to the `log` method to
* reduce boilerplate code that a simple Logger that does the same thing w... | php | MIT | f16e1d5863e37f8d8c2a01719f5b34baa2b714d3 | 2026-01-04T15:06:44.255861Z | false |
php-fig/log | https://github.com/php-fig/log/blob/f16e1d5863e37f8d8c2a01719f5b34baa2b714d3/src/NullLogger.php | src/NullLogger.php | <?php
namespace Psr\Log;
/**
* This Logger can be used to avoid conditional log calls.
*
* Logging should always be optional, and if no logger is provided to your
* library creating a NullLogger instance to have something to throw logs at
* is a good way to avoid littering your code with `if ($this->logger) { }`... | php | MIT | f16e1d5863e37f8d8c2a01719f5b34baa2b714d3 | 2026-01-04T15:06:44.255861Z | false |
php-fig/log | https://github.com/php-fig/log/blob/f16e1d5863e37f8d8c2a01719f5b34baa2b714d3/src/LoggerInterface.php | src/LoggerInterface.php | <?php
namespace Psr\Log;
/**
* Describes a logger instance.
*
* The message MUST be a string or object implementing __toString().
*
* The message MAY contain placeholders in the form: {foo} where foo
* will be replaced by the context data in key "foo".
*
* The context array can contain arbitrary data. The onl... | php | MIT | f16e1d5863e37f8d8c2a01719f5b34baa2b714d3 | 2026-01-04T15:06:44.255861Z | false |
php-fig/log | https://github.com/php-fig/log/blob/f16e1d5863e37f8d8c2a01719f5b34baa2b714d3/src/InvalidArgumentException.php | src/InvalidArgumentException.php | <?php
namespace Psr\Log;
class InvalidArgumentException extends \InvalidArgumentException
{
}
| php | MIT | f16e1d5863e37f8d8c2a01719f5b34baa2b714d3 | 2026-01-04T15:06:44.255861Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/ResultPrinter.php | tests/ResultPrinter.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
declare(strict_types=1);
namespace yiiunit;
use PHPUnit\TextUI\DefaultResultPrinter;
/**
* Class ResultPrinter overrides \PHPUnit\TextUI\ResultPrinter constructo... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/IsOneOfAssert.php | tests/IsOneOfAssert.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
declare(strict_types=1);
namespace yiiunit;
use PHPUnit\Framework\Constraint\Constraint;
use yii\helpers\VarDumper;
/**
* IsOneOfAssert asserts that the value is... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/TestCase.php | tests/TestCase.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
declare(strict_types=1);
namespace yiiunit;
use ReflectionObject;
use ReflectionClass;
use Yii;
use yii\helpers\ArrayHelper;
/**
* This is the base class for all... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/bootstrap.php | tests/bootstrap.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
// ensure we get report on all possible php errors
error_reporting(-1);
define('YII_ENABLE_ERROR_HANDLER', false);
define('YII_DEBUG', true);
define('YII_ENV', 'test... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/BaseYiiTest.php | tests/framework/BaseYiiTest.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
declare(strict_types=1);
namespace yiiunit\framework;
use Yii;
use yii\BaseYii;
use yii\di\Container;
use yii\log\Logger;
use yiiunit\data\base\Singer;
use yiiunit... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/ChangeLogTest.php | tests/framework/ChangeLogTest.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
declare(strict_types=1);
namespace yiiunit\framework;
use yiiunit\TestCase;
/**
* ChangeLogTest.
* @group base
*/
class ChangeLogTest extends TestCase
{
pu... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/mail/BaseMailerTest.php | tests/framework/mail/BaseMailerTest.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
namespace yiiunit\framework\mail;
use Yii;
use yii\base\View;
use yii\helpers\FileHelper;
use yii\mail\BaseMailer;
use yii\mail\BaseMessage;
use yiiunit\TestCase;
... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/mail/BaseMessageTest.php | tests/framework/mail/BaseMessageTest.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
namespace yiiunit\framework\mail;
use Exception;
use Yii;
use yii\mail\BaseMailer;
use yii\mail\BaseMessage;
use yiiunit\TestCase;
/**
* @group mail
*/
class Bas... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/base/ApplicationTest.php | tests/framework/base/ApplicationTest.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
declare(strict_types=1);
namespace yiiunit\framework\base;
use Yii;
use yii\base\BootstrapInterface;
use yii\base\Component;
use yii\base\Module;
use yii\log\Dispa... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/base/SecurityTest.php | tests/framework/base/SecurityTest.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
declare(strict_types=1);
namespace yiiunit\framework\base;
use yii\base\InvalidArgumentException;
use yii\base\Security;
use yiiunit\TestCase;
/**
* @group base
... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | true |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/base/ErrorExceptionTest.php | tests/framework/base/ErrorExceptionTest.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
declare(strict_types=1);
namespace yiiunit\framework\base;
use yii\base\ErrorException;
use yiiunit\TestCase;
/**
* @group base
*/
class ErrorExceptionTest exte... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/base/ModuleTest.php | tests/framework/base/ModuleTest.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
declare(strict_types=1);
namespace yiiunit\framework\base;
use Yii;
use yii\base\BaseObject;
use yii\base\Controller;
use yii\base\Module;
use yiiunit\TestCase;
/... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/base/EventTest.php | tests/framework/base/EventTest.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
declare(strict_types=1);
namespace yiiunit\framework\base;
use stdClass;
use yii\base\Component;
use yii\base\Event;
use yiiunit\TestCase;
/**
* @group base
*/
... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/base/StaticInstanceTraitTest.php | tests/framework/base/StaticInstanceTraitTest.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
declare(strict_types=1);
namespace yiiunit\framework\base;
use yiiunit\data\base\Singer;
use yiiunit\data\base\Speaker;
use yiiunit\TestCase;
class StaticInstance... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/base/ControllerTest.php | tests/framework/base/ControllerTest.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
declare(strict_types=1);
namespace yiiunit\framework\base;
use Yii;
use yii\base\Controller;
use yii\base\InlineAction;
use yiiunit\TestCase;
/**
* @group base
... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/base/DynamicModelTest.php | tests/framework/base/DynamicModelTest.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
declare(strict_types=1);
namespace yiiunit\framework\base;
use yii\base\DynamicModel;
use yiiunit\TestCase;
/**
* @group base
*/
class DynamicModelTest extends ... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/base/BaseObjectTest.php | tests/framework/base/BaseObjectTest.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
declare(strict_types=1);
namespace yiiunit\framework\base;
use yii\base\BaseObject;
use yiiunit\TestCase;
/**
* @group base
*/
class BaseObjectTest extends Test... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/base/ActionFilterTest.php | tests/framework/base/ActionFilterTest.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
declare(strict_types=1);
namespace yiiunit\framework\base;
use ReflectionClass;
use Yii;
use yii\base\Action;
use yii\base\ActionFilter;
use yii\base\Controller;
u... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/base/ModelTest.php | tests/framework/base/ModelTest.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
declare(strict_types=1);
namespace yiiunit\framework\base;
use yii\base\DynamicModel;
use yii\base\Model;
use yiiunit\data\base\InvalidRulesModel;
use yiiunit\data... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/base/ExposedSecurity.php | tests/framework/base/ExposedSecurity.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
namespace yiiunit\framework\base;
use yii\base\Security;
/**
* ExposedSecurity exposes protected methods for direct testing.
*/
class ExposedSecurity extends Sec... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/base/ComponentTest.php | tests/framework/base/ComponentTest.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
declare(strict_types=1);
namespace yiiunit\framework\base;
use yii\base\Behavior;
use yii\base\Component;
use yii\base\Event;
use yii\base\InvalidConfigException;
... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/base/ThemeTest.php | tests/framework/base/ThemeTest.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
declare(strict_types=1);
namespace yiiunit\framework\base;
use Yii;
use yii\base\Theme;
use yiiunit\TestCase;
/**
* @group base
*/
class ThemeTest extends TestC... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/base/WidgetTest.php | tests/framework/base/WidgetTest.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
namespace yiiunit\framework\base;
use Yii;
use yii\base\Widget;
use yii\base\WidgetEvent;
use yii\di\Container;
use yiiunit\TestCase;
/**
* @group base
*/
class ... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/base/BehaviorTest.php | tests/framework/base/BehaviorTest.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
declare(strict_types=1);
namespace yiiunit\framework\base;
use yii\base\Behavior;
use yii\base\Component;
use yiiunit\TestCase;
class BarClass extends Component
{... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/base/ViewTest.php | tests/framework/base/ViewTest.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
declare(strict_types=1);
namespace yiiunit\framework\base;
use Exception;
use Yii;
use yii\base\Theme;
use yii\base\View;
use yii\base\ViewEvent;
use yii\helpers\F... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/base/fixtures/themes/christmas/views/site/main.php | tests/framework/base/fixtures/themes/christmas/views/site/main.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
| php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/base/fixtures/themes/christmas/views/site/index.php | tests/framework/base/fixtures/themes/christmas/views/site/index.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
| php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/base/fixtures/themes/basic/views/site/index.php | tests/framework/base/fixtures/themes/basic/views/site/index.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
| php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/base/stub/AnonymousModelClass.php | tests/framework/base/stub/AnonymousModelClass.php | <?php
declare(strict_types=1);
use yii\base\Model;
return new class () extends Model {
};
| php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/base/stub/AnonymousComponentClass.php | tests/framework/base/stub/AnonymousComponentClass.php | <?php
declare(strict_types=1);
use yii\base\Component;
use yii\base\Behavior;
$obj = new class () extends Component {
public $foo = 0;
};
$obj->attachBehavior('bar', (new class () extends Behavior {
public function events()
{
return [
'barEventOnce' => function ($event) {
... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/helpers/ConsoleStub.php | tests/framework/helpers/ConsoleStub.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
namespace yiiunit\framework\helpers;
use yii\helpers\Console;
/**
* Console helper stub for STDIN/STDOUT/STDERR replacement
*
* @author Pavel Dovlatov <mysteryd... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/helpers/ConsoleTest.php | tests/framework/helpers/ConsoleTest.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
namespace yiiunit\framework\helpers;
use Yii;
use yii\helpers\Console;
use yiiunit\TestCase;
use yii\base\DynamicModel;
/**
* @group helpers
* @group console
*/... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/helpers/InflectorTest.php | tests/framework/helpers/InflectorTest.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
namespace yiiunit\framework\helpers;
use yii\helpers\Inflector;
use yiiunit\TestCase;
/**
* @group helpers
*/
class InflectorTest extends TestCase
{
protecte... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/helpers/BaseUrlTest.php | tests/framework/helpers/BaseUrlTest.php | <?php
namespace yiiunit\framework\helpers;
use PHPUnit\Framework\TestCase;
use yii\helpers\BaseUrl;
/**
* @group helpers
*/
class BaseUrlTest extends TestCase
{
/** @dataProvider relativeTrueUrlProvider */
public function testIsRelativeWillReturnTrue($url): void
{
$this->assertTrue(BaseUrl::isR... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/helpers/FallbackInflector.php | tests/framework/helpers/FallbackInflector.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
namespace yiiunit\framework\helpers;
use yii\helpers\BaseInflector;
/**
* Forces Inflector::slug to use PHP even if intl is available.
*/
class FallbackInflector... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/helpers/ArrayHelperTest.php | tests/framework/helpers/ArrayHelperTest.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
namespace yiiunit\framework\helpers;
use DateTime;
use DateTimeZone;
use stdClass;
use yii\helpers\UnsetArrayValue;
use yii\helpers\ReplaceArrayValue;
use ArrayObje... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | true |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/helpers/ReplaceArrayValueTest.php | tests/framework/helpers/ReplaceArrayValueTest.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
namespace yiiunit\framework\helpers;
use yii\helpers\ReplaceArrayValue;
use yiiunit\TestCase;
/**
* @group helpers
*/
class ReplaceArrayValueTest extends TestCas... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/helpers/FileHelperTest.php | tests/framework/helpers/FileHelperTest.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
namespace yiiunit\framework\helpers;
use Exception;
use stdClass;
use Yii;
use yii\helpers\FileHelper;
use yiiunit\TestCase;
/**
* Unit test for [[yii\helpers\Fil... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | true |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/helpers/HtmlTest.php | tests/framework/helpers/HtmlTest.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
namespace yiiunit\framework\helpers;
use ArrayObject;
use yii\base\InvalidArgumentException;
use Closure;
use yii\base\Model;
use Yii;
use yii\base\DynamicModel;
us... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | true |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/helpers/IpHelperTest.php | tests/framework/helpers/IpHelperTest.php | <?php
namespace yiiunit\framework\helpers;
use Exception;
use yii\helpers\IpHelper;
use yiiunit\TestCase;
/**
* Class IpHelperTest
*
* @author Dmytro Naumenko <d.naumenko.a@gmail.com>
*/
class IpHelperTest extends TestCase
{
/**
* @dataProvider getIpVersionProvider
* @param $value
* @param $ex... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/helpers/JsonTest.php | tests/framework/helpers/JsonTest.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
namespace yiiunit\framework\helpers;
use stdClass;
use SplStack;
use yii\base\InvalidArgumentException;
use DateTime;
use DateTimeZone;
use yii\helpers\Json;
use yi... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/helpers/VarDumperTest.php | tests/framework/helpers/VarDumperTest.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
namespace yiiunit\framework\helpers;
use StdClass;
use yii\helpers\VarDumper;
use yiiunit\data\helpers\CustomDebugInfo;
use yiiunit\TestCase;
/**
* @group helpers... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/helpers/FormatConverterTest.php | tests/framework/helpers/FormatConverterTest.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
namespace yiiunit\framework\helpers;
use Yii;
use yii\helpers\FormatConverter;
use yii\i18n\Formatter;
use yiiunit\framework\i18n\IntlTestHelper;
use yiiunit\TestCa... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/helpers/StringHelperTest.php | tests/framework/helpers/StringHelperTest.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
namespace yiiunit\framework\helpers;
use yii\helpers\StringHelper;
use yiiunit\TestCase;
/**
* StringHelperTest.
* @group helpers
*/
class StringHelperTest exte... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/helpers/UnsetArrayValueTest.php | tests/framework/helpers/UnsetArrayValueTest.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
namespace yiiunit\framework\helpers;
use yii\helpers\UnsetArrayValue;
use yiiunit\TestCase;
/**
* @group helpers
*/
class UnsetArrayValueTest extends TestCase
{
... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/helpers/UrlTest.php | tests/framework/helpers/UrlTest.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
namespace yiiunit\framework\helpers;
use Yii;
use yii\base\Action;
use yii\base\Module;
use yii\helpers\Url;
use yii\web\Controller;
use yii\widgets\Menu;
use yiiun... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/helpers/BaseConsoleTest.php | tests/framework/helpers/BaseConsoleTest.php | <?php
namespace yiiunit\framework\helpers;
use yiiunit\TestCase;
use yii\helpers\BaseConsole;
/**
* Unit test for [[yii\helpers\BaseConsole]]
*
* @see BaseConsole
* @group helpers
*/
class BaseConsoleTest extends TestCase
{
protected function setUp(): void
{
parent::setUp();
$this->mockA... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/helpers/MarkdownTest.php | tests/framework/helpers/MarkdownTest.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
namespace yiiunit\framework\helpers;
use yii\base\InvalidArgumentException;
use yii\helpers\Markdown;
use yiiunit\TestCase;
/**
* Description of MarkdownTest.
*
... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/validators/CompareValidatorTest.php | tests/framework/validators/CompareValidatorTest.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
namespace yiiunit\framework\validators;
use Exception;
use yii\base\InvalidConfigException;
use yii\validators\CompareValidator;
use yiiunit\data\validators\models\... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/validators/DateValidatorTest.php | tests/framework/validators/DateValidatorTest.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
namespace yiiunit\framework\validators;
use IntlDateFormatter;
use yii\validators\DateValidator;
use yiiunit\data\validators\models\FakedValidationModel;
use yiiuni... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | true |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/validators/FilterValidatorTest.php | tests/framework/validators/FilterValidatorTest.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
namespace yiiunit\framework\validators;
use yii\validators\FilterValidator;
use yiiunit\data\validators\models\FakedValidationModel;
use yiiunit\TestCase;
/**
* @... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/validators/UrlValidatorTest.php | tests/framework/validators/UrlValidatorTest.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
namespace yiiunit\framework\validators;
use yii\validators\UrlValidator;
use yiiunit\data\validators\models\FakedValidationModel;
use yiiunit\TestCase;
/**
* @gro... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/validators/ValidatorTest.php | tests/framework/validators/ValidatorTest.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
namespace yiiunit\framework\validators;
use stdClass;
use yii\base\View;
use yii\base\DynamicModel;
use yii\validators\BooleanValidator;
use yii\validators\InlineVa... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/validators/ExistValidatorTest.php | tests/framework/validators/ExistValidatorTest.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
namespace yiiunit\framework\validators;
use yii\base\Exception;
use yii\validators\ExistValidator;
use yiiunit\data\ar\ActiveRecord;
use yiiunit\data\ar\Customer;
u... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/validators/UniqueValidatorTest.php | tests/framework/validators/UniqueValidatorTest.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
namespace yiiunit\framework\validators;
use Exception;
use Yii;
use yii\validators\UniqueValidator;
use yiiunit\data\ar\ActiveRecord;
use yiiunit\data\ar\Customer;
... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/validators/EmailValidatorTest.php | tests/framework/validators/EmailValidatorTest.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
namespace yiiunit\framework\validators;
use yii\validators\EmailValidator;
use yiiunit\data\validators\models\FakedValidationModel;
use yiiunit\TestCase;
/**
* @g... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/validators/RequiredValidatorTest.php | tests/framework/validators/RequiredValidatorTest.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
namespace yiiunit\framework\validators;
use yii\base\Model;
use yii\validators\RequiredValidator;
use yiiunit\data\validators\models\FakedValidationModel;
use yiiun... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/validators/IpValidatorTest.php | tests/framework/validators/IpValidatorTest.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
namespace yiiunit\framework\validators;
use yii\validators\IpValidator;
use yiiunit\data\validators\models\FakedValidationModel;
use yiiunit\TestCase;
/**
* @grou... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/validators/RegularExpressionValidatorTest.php | tests/framework/validators/RegularExpressionValidatorTest.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
namespace yiiunit\framework\validators;
use yii\validators\RegularExpressionValidator;
use yiiunit\data\validators\models\FakedValidationModel;
use yiiunit\TestCase... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/validators/EachValidatorTest.php | tests/framework/validators/EachValidatorTest.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
namespace yiiunit\framework\validators;
use yii\validators\EachValidator;
use yiiunit\data\base\ArrayAccessObject;
use yiiunit\data\base\Speaker;
use yiiunit\data\v... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/validators/NumberValidatorTest.php | tests/framework/validators/NumberValidatorTest.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
namespace yiiunit\framework\validators;
use stdClass;
use yii\validators\NumberValidator;
use yii\web\View;
use yiiunit\data\validators\models\FakedValidationModel;... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/validators/FileValidatorTest.php | tests/framework/validators/FileValidatorTest.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
namespace yiiunit\framework\validators;
use Yii;
use yii\helpers\FileHelper;
use yii\helpers\StringHelper;
use yii\validators\FileValidator;
use yii\web\UploadedFil... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/validators/BooleanValidatorTest.php | tests/framework/validators/BooleanValidatorTest.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
namespace yiiunit\framework\validators;
use yii\validators\BooleanValidator;
use yii\web\View;
use yiiunit\data\validators\models\FakedValidationModel;
use yiiunit\... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/validators/RangeValidatorTest.php | tests/framework/validators/RangeValidatorTest.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
namespace yiiunit\framework\validators;
use ArrayObject;
use yii\validators\RangeValidator;
use yiiunit\data\validators\models\FakedValidationModel;
use yiiunit\Tes... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/validators/DefaultValueValidatorTest.php | tests/framework/validators/DefaultValueValidatorTest.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
namespace yiiunit\framework\validators;
use stdclass;
use yii\validators\DefaultValueValidator;
use yiiunit\TestCase;
/**
* @group validators
*/
class DefaultVal... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/validators/StringValidatorTest.php | tests/framework/validators/StringValidatorTest.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
namespace yiiunit\framework\validators;
use stdClass;
use yii\validators\StringValidator;
use yiiunit\data\validators\models\FakedValidationModel;
use yiiunit\TestC... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/behaviors/AttributeBehaviorTest.php | tests/framework/behaviors/AttributeBehaviorTest.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
declare(strict_types=1);
namespace yiiunit\framework\behaviors;
use Yii;
use yii\behaviors\AttributeBehavior;
use yii\db\ActiveRecord;
use yii\db\Connection;
use y... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/behaviors/TimestampBehaviorTest.php | tests/framework/behaviors/TimestampBehaviorTest.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
namespace yiiunit\framework\behaviors;
use Yii;
use yii\behaviors\TimestampBehavior;
use yii\db\ActiveRecord;
use yii\db\Connection;
use yii\db\Expression;
use yii\... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/behaviors/BlameableBehaviorTest.php | tests/framework/behaviors/BlameableBehaviorTest.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
declare(strict_types=1);
namespace yiiunit\framework\behaviors;
use Yii;
use yii\base\BaseObject;
use yii\behaviors\BlameableBehavior;
use yii\db\ActiveRecord;
use... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/behaviors/SluggableBehaviorTest.php | tests/framework/behaviors/SluggableBehaviorTest.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
namespace yiiunit\framework\behaviors;
use Yii;
use yii\behaviors\SluggableBehavior;
use yii\db\ActiveRecord;
use yii\db\Connection;
use yiiunit\TestCase;
/**
* U... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/behaviors/CacheableWidgetBehaviorTest.php | tests/framework/behaviors/CacheableWidgetBehaviorTest.php | <?php
namespace yiiunit\framework\behaviors;
use Exception;
use PHPUnit_Framework_MockObject_MockObject;
use yii\base\Widget;
use yii\behaviors\CacheableWidgetBehavior;
use yiiunit\TestCase;
/**
* Unit test for [[\yii\behaviors\CacheableWidgetBehavior]].
*
* @see CacheableWidgetBehavior
* @group behaviors
*/
cl... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/behaviors/AttributesBehaviorTest.php | tests/framework/behaviors/AttributesBehaviorTest.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
declare(strict_types=1);
namespace yiiunit\framework\behaviors;
use Yii;
use yii\behaviors\AttributesBehavior;
use yii\db\ActiveRecord;
use yii\db\Connection;
use ... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/behaviors/AttributeTypecastBehaviorTest.php | tests/framework/behaviors/AttributeTypecastBehaviorTest.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
declare(strict_types=1);
namespace yiiunit\framework\behaviors;
use ValueError;
use Yii;
use yii\base\DynamicModel;
use yii\base\Event;
use yii\behaviors\Attribute... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/behaviors/BlameableBehaviorConsoleTest.php | tests/framework/behaviors/BlameableBehaviorConsoleTest.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
declare(strict_types=1);
namespace yiiunit\framework\behaviors;
use Yii;
use yii\behaviors\BlameableBehavior;
use yii\db\ActiveRecord;
use yiiunit\TestCase;
/**
... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/behaviors/OptimisticLockBehaviorTest.php | tests/framework/behaviors/OptimisticLockBehaviorTest.php | <?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
declare(strict_types=1);
namespace yiiunit\framework\behaviors;
use yii\db\StaleObjectException;
use Yii;
use yii\behaviors\OptimisticLockBehavior;
use yii\web\Req... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
yiisoft/yii2 | https://github.com/yiisoft/yii2/blob/c50e2d17498775bb79e89b960ec5346cb3b990ca/tests/framework/db/BaseActiveRecordTest.php | tests/framework/db/BaseActiveRecordTest.php | <?php
namespace yiiunit\framework\db;
use yiiunit\data\ar\ActiveRecord;
abstract class BaseActiveRecordTest extends DatabaseTestCase
{
protected function setUp(): void
{
parent::setUp();
ActiveRecord::$db = $this->getConnection();
}
public function provideArrayValueWithChange()
{... | php | BSD-3-Clause | c50e2d17498775bb79e89b960ec5346cb3b990ca | 2026-01-04T15:02:42.625334Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.