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
getgrav/grav
https://github.com/getgrav/grav/blob/97af1bc35b4d1065be46d403134020398dbcc43d/system/src/Grav/Framework/Flex/Storage/FileStorage.php
system/src/Grav/Framework/Flex/Storage/FileStorage.php
<?php declare(strict_types=1); /** * @package Grav\Framework\Flex * * @copyright Copyright (c) 2015 - 2025 Trilby Media, LLC. All rights reserved. * @license MIT License; see LICENSE file for details. */ namespace Grav\Framework\Flex\Storage; use FilesystemIterator; use Grav\Common\Utils; use Grav\Frame...
php
MIT
97af1bc35b4d1065be46d403134020398dbcc43d
2026-01-04T15:02:35.884566Z
false
getgrav/grav
https://github.com/getgrav/grav/blob/97af1bc35b4d1065be46d403134020398dbcc43d/system/src/Grav/Framework/Route/Route.php
system/src/Grav/Framework/Route/Route.php
<?php /** * @package Grav\Framework\Route * * @copyright Copyright (c) 2015 - 2025 Trilby Media, LLC. All rights reserved. * @license MIT License; see LICENSE file for details. */ namespace Grav\Framework\Route; use Grav\Framework\Uri\Uri; use Grav\Framework\Uri\UriFactory; use InvalidArgumentException; ...
php
MIT
97af1bc35b4d1065be46d403134020398dbcc43d
2026-01-04T15:02:35.884566Z
false
getgrav/grav
https://github.com/getgrav/grav/blob/97af1bc35b4d1065be46d403134020398dbcc43d/system/src/Grav/Framework/Route/RouteFactory.php
system/src/Grav/Framework/Route/RouteFactory.php
<?php /** * @package Grav\Framework\Route * * @copyright Copyright (c) 2015 - 2025 Trilby Media, LLC. All rights reserved. * @license MIT License; see LICENSE file for details. */ namespace Grav\Framework\Route; use Grav\Common\Uri; use function dirname; use function strlen; /** * Class RouteFactory *...
php
MIT
97af1bc35b4d1065be46d403134020398dbcc43d
2026-01-04T15:02:35.884566Z
false
getgrav/grav
https://github.com/getgrav/grav/blob/97af1bc35b4d1065be46d403134020398dbcc43d/system/src/Grav/Framework/Media/MediaObject.php
system/src/Grav/Framework/Media/MediaObject.php
<?php declare(strict_types=1); namespace Grav\Framework\Media; use Grav\Common\Page\Medium\ImageMedium; use Grav\Framework\Contracts\Media\MediaObjectInterface; use Grav\Framework\Flex\Interfaces\FlexObjectInterface; use Grav\Framework\Media\Interfaces\MediaObjectInterface as GravMediaObjectInterface; use Grav\Framew...
php
MIT
97af1bc35b4d1065be46d403134020398dbcc43d
2026-01-04T15:02:35.884566Z
false
getgrav/grav
https://github.com/getgrav/grav/blob/97af1bc35b4d1065be46d403134020398dbcc43d/system/src/Grav/Framework/Media/MediaIdentifier.php
system/src/Grav/Framework/Media/MediaIdentifier.php
<?php declare(strict_types=1); namespace Grav\Framework\Media; use Grav\Common\Grav; use Grav\Common\User\Interfaces\UserInterface; use Grav\Framework\Contracts\Media\MediaObjectInterface; use Grav\Framework\Flex\Flex; use Grav\Framework\Flex\FlexFormFlash; use Grav\Framework\Flex\Interfaces\FlexObjectInterface; use ...
php
MIT
97af1bc35b4d1065be46d403134020398dbcc43d
2026-01-04T15:02:35.884566Z
false
getgrav/grav
https://github.com/getgrav/grav/blob/97af1bc35b4d1065be46d403134020398dbcc43d/system/src/Grav/Framework/Media/UploadedMediaObject.php
system/src/Grav/Framework/Media/UploadedMediaObject.php
<?php declare(strict_types=1); namespace Grav\Framework\Media; use Grav\Framework\Contracts\Media\MediaObjectInterface; use Grav\Framework\Flex\FlexFormFlash; use Grav\Framework\Form\Interfaces\FormFlashInterface; use Grav\Framework\Psr7\Response; use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\UploadedF...
php
MIT
97af1bc35b4d1065be46d403134020398dbcc43d
2026-01-04T15:02:35.884566Z
false
getgrav/grav
https://github.com/getgrav/grav/blob/97af1bc35b4d1065be46d403134020398dbcc43d/system/src/Grav/Framework/Media/Interfaces/MediaCollectionInterface.php
system/src/Grav/Framework/Media/Interfaces/MediaCollectionInterface.php
<?php /** * @package Grav\Framework\Media * * @copyright Copyright (c) 2015 - 2025 Trilby Media, LLC. All rights reserved. * @license MIT License; see LICENSE file for details. */ namespace Grav\Framework\Media\Interfaces; use ArrayAccess; use Countable; use Iterator; /** * Class implements media colle...
php
MIT
97af1bc35b4d1065be46d403134020398dbcc43d
2026-01-04T15:02:35.884566Z
false
getgrav/grav
https://github.com/getgrav/grav/blob/97af1bc35b4d1065be46d403134020398dbcc43d/system/src/Grav/Framework/Media/Interfaces/MediaManipulationInterface.php
system/src/Grav/Framework/Media/Interfaces/MediaManipulationInterface.php
<?php declare(strict_types=1); /** * @package Grav\Framework\Media * * @copyright Copyright (c) 2015 - 2025 Trilby Media, LLC. All rights reserved. * @license MIT License; see LICENSE file for details. */ namespace Grav\Framework\Media\Interfaces; use Grav\Common\Media\Interfaces\MediaInterface; use Psr...
php
MIT
97af1bc35b4d1065be46d403134020398dbcc43d
2026-01-04T15:02:35.884566Z
false
getgrav/grav
https://github.com/getgrav/grav/blob/97af1bc35b4d1065be46d403134020398dbcc43d/system/src/Grav/Framework/Media/Interfaces/MediaObjectInterface.php
system/src/Grav/Framework/Media/Interfaces/MediaObjectInterface.php
<?php /** * @package Grav\Framework\Media * * @copyright Copyright (c) 2015 - 2025 Trilby Media, LLC. All rights reserved. * @license MIT License; see LICENSE file for details. */ namespace Grav\Framework\Media\Interfaces; use Psr\Http\Message\UploadedFileInterface; /** * Class implements media object ...
php
MIT
97af1bc35b4d1065be46d403134020398dbcc43d
2026-01-04T15:02:35.884566Z
false
getgrav/grav
https://github.com/getgrav/grav/blob/97af1bc35b4d1065be46d403134020398dbcc43d/system/src/Grav/Framework/Media/Interfaces/MediaInterface.php
system/src/Grav/Framework/Media/Interfaces/MediaInterface.php
<?php /** * @package Grav\Framework\Media * * @copyright Copyright (c) 2015 - 2025 Trilby Media, LLC. All rights reserved. * @license MIT License; see LICENSE file for details. */ namespace Grav\Framework\Media\Interfaces; /** * Class implements media interface. */ interface MediaInterface { /** ...
php
MIT
97af1bc35b4d1065be46d403134020398dbcc43d
2026-01-04T15:02:35.884566Z
false
getgrav/grav
https://github.com/getgrav/grav/blob/97af1bc35b4d1065be46d403134020398dbcc43d/system/src/Grav/Framework/Session/SessionInterface.php
system/src/Grav/Framework/Session/SessionInterface.php
<?php /** * @package Grav\Framework\Session * * @copyright Copyright (c) 2015 - 2025 Trilby Media, LLC. All rights reserved. * @license MIT License; see LICENSE file for details. */ namespace Grav\Framework\Session; use ArrayIterator; use IteratorAggregate; use RuntimeException; /** * Class Session * ...
php
MIT
97af1bc35b4d1065be46d403134020398dbcc43d
2026-01-04T15:02:35.884566Z
false
getgrav/grav
https://github.com/getgrav/grav/blob/97af1bc35b4d1065be46d403134020398dbcc43d/system/src/Grav/Framework/Session/Messages.php
system/src/Grav/Framework/Session/Messages.php
<?php /** * @package Grav\Framework\Session * * @copyright Copyright (c) 2015 - 2025 Trilby Media, LLC. All rights reserved. * @license MIT License; see LICENSE file for details. */ namespace Grav\Framework\Session; use Grav\Framework\Compat\Serializable; use function array_key_exists; /** * Implements...
php
MIT
97af1bc35b4d1065be46d403134020398dbcc43d
2026-01-04T15:02:35.884566Z
false
getgrav/grav
https://github.com/getgrav/grav/blob/97af1bc35b4d1065be46d403134020398dbcc43d/system/src/Grav/Framework/Session/Session.php
system/src/Grav/Framework/Session/Session.php
<?php /** * @package Grav\Framework\Session * * @copyright Copyright (c) 2015 - 2025 Trilby Media, LLC. All rights reserved. * @license MIT License; see LICENSE file for details. */ namespace Grav\Framework\Session; use ArrayIterator; use Exception; use Throwable; use Grav\Common\Debugger; use Grav\Commo...
php
MIT
97af1bc35b4d1065be46d403134020398dbcc43d
2026-01-04T15:02:35.884566Z
false
getgrav/grav
https://github.com/getgrav/grav/blob/97af1bc35b4d1065be46d403134020398dbcc43d/system/src/Grav/Framework/Session/Exceptions/SessionException.php
system/src/Grav/Framework/Session/Exceptions/SessionException.php
<?php /** * @package Grav\Framework\Session * * @copyright Copyright (c) 2015 - 2025 Trilby Media, LLC. All rights reserved. * @license MIT License; see LICENSE file for details. */ namespace Grav\Framework\Session\Exceptions; use RuntimeException; /** * Class SessionException * @package Grav\Framewor...
php
MIT
97af1bc35b4d1065be46d403134020398dbcc43d
2026-01-04T15:02:35.884566Z
false
getgrav/grav
https://github.com/getgrav/grav/blob/97af1bc35b4d1065be46d403134020398dbcc43d/system/src/Grav/Installer/VersionUpdate.php
system/src/Grav/Installer/VersionUpdate.php
<?php namespace Grav\Installer; use Closure; use Grav\Common\Utils; /** * Class VersionUpdate * @package Grav\Installer */ final class VersionUpdate { /** @var string */ private $revision; /** @var string */ private $version; /** @var string */ private $date; /** @var string */ pri...
php
MIT
97af1bc35b4d1065be46d403134020398dbcc43d
2026-01-04T15:02:35.884566Z
false
getgrav/grav
https://github.com/getgrav/grav/blob/97af1bc35b4d1065be46d403134020398dbcc43d/system/src/Grav/Installer/Install.php
system/src/Grav/Installer/Install.php
<?php /** * @package Grav\Installer * * @copyright Copyright (c) 2015 - 2025 Trilby Media, LLC. All rights reserved. * @license MIT License; see LICENSE file for details. */ namespace Grav\Installer; use Composer\Autoload\ClassLoader; use Exception; use Grav\Common\Cache; use Grav\Common\GPM\Installer; u...
php
MIT
97af1bc35b4d1065be46d403134020398dbcc43d
2026-01-04T15:02:35.884566Z
false
getgrav/grav
https://github.com/getgrav/grav/blob/97af1bc35b4d1065be46d403134020398dbcc43d/system/src/Grav/Installer/Versions.php
system/src/Grav/Installer/Versions.php
<?php /** * @package Grav\Installer * * @copyright Copyright (c) 2015 - 2025 Trilby Media, LLC. All rights reserved. * @license MIT License; see LICENSE file for details. */ namespace Grav\Installer; use Symfony\Component\Yaml\Yaml; use function is_array; use function is_string; /** * Grav Versions * ...
php
MIT
97af1bc35b4d1065be46d403134020398dbcc43d
2026-01-04T15:02:35.884566Z
false
getgrav/grav
https://github.com/getgrav/grav/blob/97af1bc35b4d1065be46d403134020398dbcc43d/system/src/Grav/Installer/InstallException.php
system/src/Grav/Installer/InstallException.php
<?php /** * @package Grav\Installer * * @copyright Copyright (c) 2015 - 2025 Trilby Media, LLC. All rights reserved. * @license MIT License; see LICENSE file for details. */ namespace Grav\Installer; use Throwable; /** * Class InstallException * @package Grav\Installer */ class InstallException exten...
php
MIT
97af1bc35b4d1065be46d403134020398dbcc43d
2026-01-04T15:02:35.884566Z
false
getgrav/grav
https://github.com/getgrav/grav/blob/97af1bc35b4d1065be46d403134020398dbcc43d/system/src/Grav/Installer/YamlUpdater.php
system/src/Grav/Installer/YamlUpdater.php
<?php /** * @package Grav\Installer * * @copyright Copyright (c) 2015 - 2025 Trilby Media, LLC. All rights reserved. * @license MIT License; see LICENSE file for details. */ namespace Grav\Installer; use Grav\Common\Utils; use Symfony\Component\Yaml\Yaml; use function assert; use function count; use func...
php
MIT
97af1bc35b4d1065be46d403134020398dbcc43d
2026-01-04T15:02:35.884566Z
false
getgrav/grav
https://github.com/getgrav/grav/blob/97af1bc35b4d1065be46d403134020398dbcc43d/system/src/Grav/Installer/VersionUpdater.php
system/src/Grav/Installer/VersionUpdater.php
<?php namespace Grav\Installer; use DirectoryIterator; /** * Class VersionUpdater * @package Grav\Installer */ final class VersionUpdater { /** @var string */ private $name; /** @var string */ private $path; /** @var string */ private $version; /** @var Versions */ private $version...
php
MIT
97af1bc35b4d1065be46d403134020398dbcc43d
2026-01-04T15:02:35.884566Z
false
getgrav/grav
https://github.com/getgrav/grav/blob/97af1bc35b4d1065be46d403134020398dbcc43d/system/src/Grav/Installer/updates/1.7.0_2020-11-20_1.php
system/src/Grav/Installer/updates/1.7.0_2020-11-20_1.php
<?php use Grav\Installer\InstallException; use Grav\Installer\VersionUpdate; use Grav\Installer\YamlUpdater; return [ 'preflight' => null, 'postflight' => function () { /** @var VersionUpdate $this */ try { // Keep old defaults for backwards compatibility. ...
php
MIT
97af1bc35b4d1065be46d403134020398dbcc43d
2026-01-04T15:02:35.884566Z
false
getgrav/grav
https://github.com/getgrav/grav/blob/97af1bc35b4d1065be46d403134020398dbcc43d/system/src/Grav/Events/SessionStartEvent.php
system/src/Grav/Events/SessionStartEvent.php
<?php /** * @package Grav\Events * * @copyright Copyright (c) 2015 - 2025 Trilby Media, LLC. All rights reserved. * @license MIT License; see LICENSE file for details. */ namespace Grav\Events; use Grav\Framework\Session\SessionInterface; use Symfony\Contracts\EventDispatcher\Event; /** * Plugins Loade...
php
MIT
97af1bc35b4d1065be46d403134020398dbcc43d
2026-01-04T15:02:35.884566Z
false
getgrav/grav
https://github.com/getgrav/grav/blob/97af1bc35b4d1065be46d403134020398dbcc43d/system/src/Grav/Events/PluginsLoadedEvent.php
system/src/Grav/Events/PluginsLoadedEvent.php
<?php /** * @package Grav\Events * * @copyright Copyright (c) 2015 - 2025 Trilby Media, LLC. All rights reserved. * @license MIT License; see LICENSE file for details. */ namespace Grav\Events; use Grav\Common\Grav; use Grav\Common\Plugins; use Symfony\Contracts\EventDispatcher\Event; /** * Plugins Loa...
php
MIT
97af1bc35b4d1065be46d403134020398dbcc43d
2026-01-04T15:02:35.884566Z
false
getgrav/grav
https://github.com/getgrav/grav/blob/97af1bc35b4d1065be46d403134020398dbcc43d/system/src/Grav/Events/PermissionsRegisterEvent.php
system/src/Grav/Events/PermissionsRegisterEvent.php
<?php /** * @package Grav\Events * * @copyright Copyright (c) 2015 - 2025 Trilby Media, LLC. All rights reserved. * @license MIT License; see LICENSE file for details. */ namespace Grav\Events; use Grav\Framework\Acl\Permissions; use Symfony\Contracts\EventDispatcher\Event; /** * Permissions Register E...
php
MIT
97af1bc35b4d1065be46d403134020398dbcc43d
2026-01-04T15:02:35.884566Z
false
getgrav/grav
https://github.com/getgrav/grav/blob/97af1bc35b4d1065be46d403134020398dbcc43d/system/src/Grav/Events/TypesEvent.php
system/src/Grav/Events/TypesEvent.php
<?php /** * @package Grav\Events * * @copyright Copyright (c) 2015 - 2025 Trilby Media, LLC. All rights reserved. * @license MIT License; see LICENSE file for details. */ namespace Grav\Events; use Grav\Framework\Flex\Flex; use RocketTheme\Toolbox\Event\Event; class TypesEvent extends Event { public...
php
MIT
97af1bc35b4d1065be46d403134020398dbcc43d
2026-01-04T15:02:35.884566Z
false
getgrav/grav
https://github.com/getgrav/grav/blob/97af1bc35b4d1065be46d403134020398dbcc43d/system/src/Grav/Events/PageEvent.php
system/src/Grav/Events/PageEvent.php
<?php /** * @package Grav\Events * * @copyright Copyright (c) 2015 - 2025 Trilby Media, LLC. All rights reserved. * @license MIT License; see LICENSE file for details. */ namespace Grav\Events; use Grav\Framework\Flex\Flex; use RocketTheme\Toolbox\Event\Event; class PageEvent extends Event { public ...
php
MIT
97af1bc35b4d1065be46d403134020398dbcc43d
2026-01-04T15:02:35.884566Z
false
getgrav/grav
https://github.com/getgrav/grav/blob/97af1bc35b4d1065be46d403134020398dbcc43d/system/src/Grav/Events/FlexRegisterEvent.php
system/src/Grav/Events/FlexRegisterEvent.php
<?php /** * @package Grav\Events * * @copyright Copyright (c) 2015 - 2025 Trilby Media, LLC. All rights reserved. * @license MIT License; see LICENSE file for details. */ namespace Grav\Events; use Grav\Framework\Flex\Flex; use Symfony\Contracts\EventDispatcher\Event; /** * Flex Register Event * * Th...
php
MIT
97af1bc35b4d1065be46d403134020398dbcc43d
2026-01-04T15:02:35.884566Z
false
getgrav/grav
https://github.com/getgrav/grav/blob/97af1bc35b4d1065be46d403134020398dbcc43d/system/src/Grav/Events/BeforeSessionStartEvent.php
system/src/Grav/Events/BeforeSessionStartEvent.php
<?php /** * @package Grav\Events * * @copyright Copyright (c) 2015 - 2025 Trilby Media, LLC. All rights reserved. * @license MIT License; see LICENSE file for details. */ namespace Grav\Events; use Grav\Framework\Session\SessionInterface; use Symfony\Contracts\EventDispatcher\Event; /** * Plugins Loade...
php
MIT
97af1bc35b4d1065be46d403134020398dbcc43d
2026-01-04T15:02:35.884566Z
false
getgrav/grav
https://github.com/getgrav/grav/blob/97af1bc35b4d1065be46d403134020398dbcc43d/tests/_bootstrap.php
tests/_bootstrap.php
<?php namespace Grav; use Codeception\Util\Fixtures; use Faker\Factory; use Grav\Common\Grav; ini_set('error_log', __DIR__ . '/error.log'); $grav = function () { Grav::resetInstance(); $grav = Grav::instance(); $grav['config']->init(); // This must be set first before the other init $grav['confi...
php
MIT
97af1bc35b4d1065be46d403134020398dbcc43d
2026-01-04T15:02:35.884566Z
false
getgrav/grav
https://github.com/getgrav/grav/blob/97af1bc35b4d1065be46d403134020398dbcc43d/tests/phpstan/phpstan-bootstrap.php
tests/phpstan/phpstan-bootstrap.php
<?php declare(strict_types=1); /** *To help phpstan dealing with LogicException in Common\User\User.php */ define('GRAV_USER_INSTANCE', 'FLEX'); define('GRAV_REQUEST_TIME', microtime(true));
php
MIT
97af1bc35b4d1065be46d403134020398dbcc43d
2026-01-04T15:02:35.884566Z
false
getgrav/grav
https://github.com/getgrav/grav/blob/97af1bc35b4d1065be46d403134020398dbcc43d/tests/phpstan/plugins-bootstrap.php
tests/phpstan/plugins-bootstrap.php
<?php use Grav\Common\Grav; use Grav\Common\Plugin; use RocketTheme\Toolbox\ResourceLocator\UniformResourceLocator; \define('GRAV_CLI', true); \define('GRAV_REQUEST_TIME', microtime(true)); \define('GRAV_USER_INSTANCE', 'FLEX'); $autoload = require __DIR__ . '/../../vendor/autoload.php'; if (!ini_get('date.timezone...
php
MIT
97af1bc35b4d1065be46d403134020398dbcc43d
2026-01-04T15:02:35.884566Z
false
getgrav/grav
https://github.com/getgrav/grav/blob/97af1bc35b4d1065be46d403134020398dbcc43d/tests/phpstan/classes/Toolbox/UniformResourceLocatorExtension.php
tests/phpstan/classes/Toolbox/UniformResourceLocatorExtension.php
<?php namespace PHPStan\Toolbox; use PhpParser\Node\Expr\MethodCall; use PHPStan\Analyser\Scope; use PHPStan\Reflection\MethodReflection; use PHPStan\Reflection\ParametersAcceptorSelector; use PHPStan\Type\DynamicMethodReturnTypeExtension; use PHPStan\Type\StringType; use PHPStan\Type\Type; use RocketTheme\Toolbox\Re...
php
MIT
97af1bc35b4d1065be46d403134020398dbcc43d
2026-01-04T15:02:35.884566Z
false
getgrav/grav
https://github.com/getgrav/grav/blob/97af1bc35b4d1065be46d403134020398dbcc43d/tests/acceptance/_bootstrap.php
tests/acceptance/_bootstrap.php
<?php // Here you can initialize variables that will be available to your tests
php
MIT
97af1bc35b4d1065be46d403134020398dbcc43d
2026-01-04T15:02:35.884566Z
false
getgrav/grav
https://github.com/getgrav/grav/blob/97af1bc35b4d1065be46d403134020398dbcc43d/tests/unit/_bootstrap.php
tests/unit/_bootstrap.php
<?php // Here you can initialize variables that will be available to your tests define('GRAV_CLI', true);
php
MIT
97af1bc35b4d1065be46d403134020398dbcc43d
2026-01-04T15:02:35.884566Z
false
getgrav/grav
https://github.com/getgrav/grav/blob/97af1bc35b4d1065be46d403134020398dbcc43d/tests/unit/Grav/Common/InflectorTest.php
tests/unit/Grav/Common/InflectorTest.php
<?php use Codeception\Util\Fixtures; use Grav\Common\Grav; use Grav\Common\Inflector; use Grav\Common\Utils; /** * Class InflectorTest */ class InflectorTest extends \Codeception\TestCase\Test { /** @var Grav $grav */ protected $grav; /** @var Inflector $uri */ protected $inflector; protected ...
php
MIT
97af1bc35b4d1065be46d403134020398dbcc43d
2026-01-04T15:02:35.884566Z
false
getgrav/grav
https://github.com/getgrav/grav/blob/97af1bc35b4d1065be46d403134020398dbcc43d/tests/unit/Grav/Common/UriTest.php
tests/unit/Grav/Common/UriTest.php
<?php use Codeception\Util\Fixtures; use Grav\Common\Config\Config; use Grav\Common\Grav; use Grav\Common\Uri; use Grav\Common\Utils; /** * Class UriTest */ class UriTest extends \Codeception\TestCase\Test { /** @var Grav $grav */ protected $grav; /** @var Uri $uri */ protected $uri; /** @var ...
php
MIT
97af1bc35b4d1065be46d403134020398dbcc43d
2026-01-04T15:02:35.884566Z
true
getgrav/grav
https://github.com/getgrav/grav/blob/97af1bc35b4d1065be46d403134020398dbcc43d/tests/unit/Grav/Common/ComposerTest.php
tests/unit/Grav/Common/ComposerTest.php
<?php use Codeception\Util\Fixtures; use Grav\Common\Composer; class ComposerTest extends \Codeception\TestCase\Test { protected function _before(): void { } protected function _after(): void { } public function testGetComposerLocation(): void { $composerLocation = Composer::...
php
MIT
97af1bc35b4d1065be46d403134020398dbcc43d
2026-01-04T15:02:35.884566Z
false
getgrav/grav
https://github.com/getgrav/grav/blob/97af1bc35b4d1065be46d403134020398dbcc43d/tests/unit/Grav/Common/BrowserTest.php
tests/unit/Grav/Common/BrowserTest.php
<?php use Codeception\Util\Fixtures; use Grav\Common\Grav; /** * Class BrowserTest */ class BrowserTest extends \Codeception\TestCase\Test { /** @var Grav $grav */ protected $grav; protected function _before(): void { $grav = Fixtures::get('grav'); $this->grav = $grav(); } ...
php
MIT
97af1bc35b4d1065be46d403134020398dbcc43d
2026-01-04T15:02:35.884566Z
false
getgrav/grav
https://github.com/getgrav/grav/blob/97af1bc35b4d1065be46d403134020398dbcc43d/tests/unit/Grav/Common/UtilsTest.php
tests/unit/Grav/Common/UtilsTest.php
<?php use Codeception\Util\Fixtures; use Grav\Common\Grav; use Grav\Common\Uri; use Grav\Common\Utils; /** * Class UtilsTest */ class UtilsTest extends \Codeception\TestCase\Test { /** @var Grav $grav */ protected $grav; /** @var Uri $uri */ protected $uri; protected function _before(): void ...
php
MIT
97af1bc35b4d1065be46d403134020398dbcc43d
2026-01-04T15:02:35.884566Z
false
getgrav/grav
https://github.com/getgrav/grav/blob/97af1bc35b4d1065be46d403134020398dbcc43d/tests/unit/Grav/Common/AssetsTest.php
tests/unit/Grav/Common/AssetsTest.php
<?php use Codeception\Util\Fixtures; use Grav\Common\Grav; use Grav\Common\Assets; /** * Class AssetsTest */ class AssetsTest extends \Codeception\TestCase\Test { /** @var Grav $grav */ protected $grav; /** @var Assets $assets */ protected $assets; protected function _before(): void { ...
php
MIT
97af1bc35b4d1065be46d403134020398dbcc43d
2026-01-04T15:02:35.884566Z
false
getgrav/grav
https://github.com/getgrav/grav/blob/97af1bc35b4d1065be46d403134020398dbcc43d/tests/unit/Grav/Common/Markdown/ParsedownTest.php
tests/unit/Grav/Common/Markdown/ParsedownTest.php
<?php use Codeception\Util\Fixtures; use Grav\Common\Grav; use Grav\Common\Page\Markdown\Excerpts; use Grav\Common\Uri; use Grav\Common\Config\Config; use Grav\Common\Page\Pages; use Grav\Common\Markdown\Parsedown; use Grav\Common\Language\Language; use RocketTheme\Toolbox\ResourceLocator\UniformResourceLocator; /** ...
php
MIT
97af1bc35b4d1065be46d403134020398dbcc43d
2026-01-04T15:02:35.884566Z
true
getgrav/grav
https://github.com/getgrav/grav/blob/97af1bc35b4d1065be46d403134020398dbcc43d/tests/unit/Grav/Common/Helpers/ExcerptsTest.php
tests/unit/Grav/Common/Helpers/ExcerptsTest.php
<?php use Codeception\Util\Fixtures; use Grav\Common\Helpers\Excerpts; use Grav\Common\Grav; use Grav\Common\Page\Interfaces\PageInterface; use Grav\Common\Uri; use Grav\Common\Config\Config; use Grav\Common\Page\Pages; use Grav\Common\Language\Language; use RocketTheme\Toolbox\ResourceLocator\UniformResourceLocator; ...
php
MIT
97af1bc35b4d1065be46d403134020398dbcc43d
2026-01-04T15:02:35.884566Z
false
getgrav/grav
https://github.com/getgrav/grav/blob/97af1bc35b4d1065be46d403134020398dbcc43d/tests/unit/Grav/Common/Twig/Extensions/GravExtensionTest.php
tests/unit/Grav/Common/Twig/Extensions/GravExtensionTest.php
<?php use Codeception\Util\Fixtures; use Grav\Common\Grav; use Grav\Common\Twig\Extension\GravExtension; /** * Class GravExtensionTest */ class GravExtensionTest extends \Codeception\TestCase\Test { /** @var Grav $grav */ protected $grav; /** @var GravExtension $twig_ext */ protected $twig_ext; ...
php
MIT
97af1bc35b4d1065be46d403134020398dbcc43d
2026-01-04T15:02:35.884566Z
false
getgrav/grav
https://github.com/getgrav/grav/blob/97af1bc35b4d1065be46d403134020398dbcc43d/tests/unit/Grav/Common/Page/PagesTest.php
tests/unit/Grav/Common/Page/PagesTest.php
<?php use Codeception\Util\Fixtures; use Grav\Common\Grav; use Grav\Common\Page\Pages; use Grav\Common\Page\Page; use Grav\Common\Page\Interfaces\PageInterface; use RocketTheme\Toolbox\ResourceLocator\UniformResourceLocator; /** * Class PagesTest */ class PagesTest extends \Codeception\TestCase\Test { /** @var ...
php
MIT
97af1bc35b4d1065be46d403134020398dbcc43d
2026-01-04T15:02:35.884566Z
false
getgrav/grav
https://github.com/getgrav/grav/blob/97af1bc35b4d1065be46d403134020398dbcc43d/tests/unit/Grav/Common/Language/LanguageCodesTest.php
tests/unit/Grav/Common/Language/LanguageCodesTest.php
<?php use Grav\Common\Language\LanguageCodes; /** * Class ParsedownTest */ class LanguageCodesTest extends \Codeception\TestCase\Test { public function testRtl(): void { self::assertSame( 'ltr', LanguageCodes::getOrientation('en') ); self::assertSame( ...
php
MIT
97af1bc35b4d1065be46d403134020398dbcc43d
2026-01-04T15:02:35.884566Z
false
getgrav/grav
https://github.com/getgrav/grav/blob/97af1bc35b4d1065be46d403134020398dbcc43d/tests/unit/Grav/Common/GPM/GPMTest.php
tests/unit/Grav/Common/GPM/GPMTest.php
<?php use Codeception\Util\Fixtures; use Grav\Common\Grav; use Grav\Common\GPM\GPM; define('EXCEPTION_BAD_FORMAT', 1); define('EXCEPTION_INCOMPATIBLE_VERSIONS', 2); /** * Class GpmStub */ class GpmStub extends GPM { /** @var array */ public $data; /** * @inheritdoc */ public function fin...
php
MIT
97af1bc35b4d1065be46d403134020398dbcc43d
2026-01-04T15:02:35.884566Z
false
getgrav/grav
https://github.com/getgrav/grav/blob/97af1bc35b4d1065be46d403134020398dbcc43d/tests/unit/Grav/Common/Data/BlueprintTest.php
tests/unit/Grav/Common/Data/BlueprintTest.php
<?php use Grav\Common\Config\Config; use Grav\Common\Data\Blueprint; use Grav\Common\Grav; /** * Class InstallCommandTest */ class BlueprintTest extends \Codeception\TestCase\Test { /** */ public function testValidateStrict(): void { $blueprint = $this->loadBlueprint('strict'); $bl...
php
MIT
97af1bc35b4d1065be46d403134020398dbcc43d
2026-01-04T15:02:35.884566Z
false
getgrav/grav
https://github.com/getgrav/grav/blob/97af1bc35b4d1065be46d403134020398dbcc43d/tests/unit/Grav/Console/Gpm/InstallCommandTest.php
tests/unit/Grav/Console/Gpm/InstallCommandTest.php
<?php use Codeception\Util\Fixtures; use Grav\Common\Grav; use Grav\Console\Gpm\InstallCommand; /** * Class InstallCommandTest */ class InstallCommandTest extends \Codeception\TestCase\Test { /** @var Grav $grav */ protected $grav; /** @var InstallCommand */ protected $installCommand; protect...
php
MIT
97af1bc35b4d1065be46d403134020398dbcc43d
2026-01-04T15:02:35.884566Z
false
getgrav/grav
https://github.com/getgrav/grav/blob/97af1bc35b4d1065be46d403134020398dbcc43d/tests/unit/Grav/Framework/File/Formatter/CsvFormatterTest.php
tests/unit/Grav/Framework/File/Formatter/CsvFormatterTest.php
<?php use Grav\Framework\File\Formatter\CsvFormatter; /** * Class CsvFormatterTest */ class CsvFormatterTest extends \Codeception\TestCase\Test { public function testEncodeWithAssocColumns(): void { $data = [ ['col1' => 1, 'col2' => 2, 'col3' => 3], ['col1' => 'aaa', 'col2' =...
php
MIT
97af1bc35b4d1065be46d403134020398dbcc43d
2026-01-04T15:02:35.884566Z
false
getgrav/grav
https://github.com/getgrav/grav/blob/97af1bc35b4d1065be46d403134020398dbcc43d/tests/unit/Grav/Framework/Filesystem/FilesystemTest.php
tests/unit/Grav/Framework/Filesystem/FilesystemTest.php
<?php use Grav\Framework\Filesystem\Filesystem; /** * Class FilesystemTest */ class FilesystemTest extends \Codeception\TestCase\Test { protected $class; protected $tests = [ '' => [ 'parent' => '', 'normalize' => '', 'dirname' => '', 'pathinfo' => [ ...
php
MIT
97af1bc35b4d1065be46d403134020398dbcc43d
2026-01-04T15:02:35.884566Z
false
getgrav/grav
https://github.com/getgrav/grav/blob/97af1bc35b4d1065be46d403134020398dbcc43d/tests/_support/AcceptanceTester.php
tests/_support/AcceptanceTester.php
<?php /** * Inherited Methods * @method void wantToTest($text) * @method void wantTo($text) * @method void execute($callable) * @method void expectTo($prediction) * @method void expect($prediction) * @method void amGoingTo($argumentation) * @method void am($role) * @method void lookForwardTo($achieveValue) ...
php
MIT
97af1bc35b4d1065be46d403134020398dbcc43d
2026-01-04T15:02:35.884566Z
false
getgrav/grav
https://github.com/getgrav/grav/blob/97af1bc35b4d1065be46d403134020398dbcc43d/tests/_support/UnitTester.php
tests/_support/UnitTester.php
<?php /** * Inherited Methods * @method void wantToTest($text) * @method void wantTo($text) * @method void execute($callable) * @method void expectTo($prediction) * @method void expect($prediction) * @method void amGoingTo($argumentation) * @method void am($role) * @method void lookForwardTo($achieveValue) ...
php
MIT
97af1bc35b4d1065be46d403134020398dbcc43d
2026-01-04T15:02:35.884566Z
false
getgrav/grav
https://github.com/getgrav/grav/blob/97af1bc35b4d1065be46d403134020398dbcc43d/tests/_support/FunctionalTester.php
tests/_support/FunctionalTester.php
<?php /** * Inherited Methods * @method void wantToTest($text) * @method void wantTo($text) * @method void execute($callable) * @method void expectTo($prediction) * @method void expect($prediction) * @method void amGoingTo($argumentation) * @method void am($role) * @method void lookForwardTo($achieveValue) ...
php
MIT
97af1bc35b4d1065be46d403134020398dbcc43d
2026-01-04T15:02:35.884566Z
false
getgrav/grav
https://github.com/getgrav/grav/blob/97af1bc35b4d1065be46d403134020398dbcc43d/tests/_support/Helper/Functional.php
tests/_support/Helper/Functional.php
<?php namespace Helper; // here you can define custom actions // all public methods declared in helper class will be available in $I class Functional extends \Codeception\Module { }
php
MIT
97af1bc35b4d1065be46d403134020398dbcc43d
2026-01-04T15:02:35.884566Z
false
getgrav/grav
https://github.com/getgrav/grav/blob/97af1bc35b4d1065be46d403134020398dbcc43d/tests/_support/Helper/Unit.php
tests/_support/Helper/Unit.php
<?php namespace Helper; use Codeception; // here you can define custom actions // all public methods declared in helper class will be available in $I /** * Class Unit * @package Helper */ class Unit extends Codeception\Module { /** * HOOK: used after configuration is loaded */ public function _i...
php
MIT
97af1bc35b4d1065be46d403134020398dbcc43d
2026-01-04T15:02:35.884566Z
false
getgrav/grav
https://github.com/getgrav/grav/blob/97af1bc35b4d1065be46d403134020398dbcc43d/tests/_support/Helper/Acceptance.php
tests/_support/Helper/Acceptance.php
<?php namespace Helper; // here you can define custom actions // all public methods declared in helper class will be available in $I class Acceptance extends \Codeception\Module { }
php
MIT
97af1bc35b4d1065be46d403134020398dbcc43d
2026-01-04T15:02:35.884566Z
false
getgrav/grav
https://github.com/getgrav/grav/blob/97af1bc35b4d1065be46d403134020398dbcc43d/tests/functional/_bootstrap.php
tests/functional/_bootstrap.php
<?php // Here you can initialize variables that will be available to your tests
php
MIT
97af1bc35b4d1065be46d403134020398dbcc43d
2026-01-04T15:02:35.884566Z
false
getgrav/grav
https://github.com/getgrav/grav/blob/97af1bc35b4d1065be46d403134020398dbcc43d/tests/functional/Grav/Console/DirectInstallCommandTest.php
tests/functional/Grav/Console/DirectInstallCommandTest.php
<?php use Codeception\Util\Fixtures; use Grav\Common\Grav; use Grav\Console\Gpm\DirectInstallCommand; /** * Class DirectInstallCommandTest */ class DirectInstallCommandTest extends \Codeception\TestCase\Test { /** @var Grav $grav */ protected $grav; /** @var DirectInstallCommand */ protected $direc...
php
MIT
97af1bc35b4d1065be46d403134020398dbcc43d
2026-01-04T15:02:35.884566Z
false
getgrav/grav
https://github.com/getgrav/grav/blob/97af1bc35b4d1065be46d403134020398dbcc43d/.phan/config.php
.phan/config.php
<?php return [ "target_php_version" => null, 'pretend_newer_core_functions_exist' => true, 'allow_missing_properties' => false, 'null_casts_as_any_type' => false, 'null_casts_as_array' => false, 'array_casts_as_null' => false, 'strict_method_checking' => true, 'quick_mode' => false, ...
php
MIT
97af1bc35b4d1065be46d403134020398dbcc43d
2026-01-04T15:02:35.884566Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/test_unified_scripts.php
test_unified_scripts.php
<?php require_once 'vendor/autoload.php'; use Livewire\V4\Compiler\SingleFileComponentCompiler; use Illuminate\Support\Facades\File; // Test unified script extraction $compiler = new SingleFileComponentCompiler('/tmp/livewire_test_cache'); // Test 1: Regular JavaScript (no imports) echo "=== TEST 1: Regular JavaScr...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/scripts/laravel.php
scripts/laravel.php
<?php require __DIR__.'/../vendor/autoload.php'; $__commands = []; $__name = ''; $__version = ''; class AppServiceProvider extends \Illuminate\Support\ServiceProvider { function boot() { foreach ($GLOBALS['__commands'] as $command) { app(\Illuminate\Contracts\Console\Kernel::class)->regis...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/HttpKernel.php
legacy_tests/HttpKernel.php
<?php namespace LegacyTests; use Illuminate\Foundation\Http\Kernel; class HttpKernel extends Kernel { /** * The application's global HTTP middleware stack. * * These middleware are run during every request to your application. * * @var array */ protected $middleware = [ ...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/AppLayoutWithProperties.php
legacy_tests/AppLayoutWithProperties.php
<?php namespace LegacyTests; use Illuminate\View\Component; class AppLayoutWithProperties extends Component { public function render() { return view('layouts.app-from-class-component-with-properties', [ 'foo' => 'bar', ]); } }
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/AppLayoutWithConstructor.php
legacy_tests/AppLayoutWithConstructor.php
<?php namespace LegacyTests; use Illuminate\View\Component; class AppLayoutWithConstructor extends Component { public $foo; public function __construct($foo = 'bar') { $this->foo = $foo; } public function render() { return view('layouts.app-from-class-component'); } }
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/TestEnum.php
legacy_tests/TestEnum.php
<?php namespace LegacyTests; enum TestEnum: string { case TEST = 'Be excellent to each other'; }
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/AppLayout.php
legacy_tests/AppLayout.php
<?php namespace LegacyTests; use Illuminate\View\Component; class AppLayout extends Component { public $foo = 'bar'; public function render() { return view('layouts.app-from-class-component'); } }
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/DuskCommand.php
legacy_tests/Browser/DuskCommand.php
<?php namespace LegacyTests\Browser; use Psy\Command\Command; use Psy\Output\ShellOutput; use Psy\Formatter\CodeFormatter; use ReflectionClass; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; class DuskCommand extends Command { public $e; public $test...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/TestCase.php
legacy_tests/Browser/TestCase.php
<?php namespace LegacyTests\Browser; use Throwable; use Sushi\Sushi; use Psy\Shell; use Orchestra\Testbench\Dusk\TestCase as BaseTestCase; use Orchestra\Testbench\Dusk\Options as DuskOptions; use Livewire\LivewireServiceProvider; use Laravel\Dusk\Browser; use Illuminate\Support\Facades\Route; use Illuminate\Support\F...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/SupportsSafari.php
legacy_tests/Browser/SupportsSafari.php
<?php namespace LegacyTests\Browser; // Thanks to https://github.com/appstract/laravel-dusk-safari for most of this source. trait SupportsSafari { protected static $safariProcess; protected static function defineChromeDriver(): void { if (static::$useSafari) { static::startSafariDrive...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/_runtime_components.php
legacy_tests/Browser/_runtime_components.php
<?php return [ \LegacyTests\Browser\Events\Component::class, ];
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/SupportStringables/Test.php
legacy_tests/Browser/SupportStringables/Test.php
<?php namespace LegacyTests\Browser\SupportStringables; use Illuminate\Support\Str; use Livewire\Livewire; use Tests\TestCase; class Test extends TestCase { public function test_stringable_support() { Livewire::test(new class extends \Livewire\Component { public $string; publ...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/Dirty/Test.php
legacy_tests/Browser/Dirty/Test.php
<?php namespace LegacyTests\Browser\Dirty; use Livewire\Component; use Livewire\Livewire; use Tests\BrowserTestCase; class Test extends BrowserTestCase { public function test_wire_dirty() { Livewire::visit(new class extends Component { public $foo = ''; public $bar = ''; ...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/SupportCollections/Test.php
legacy_tests/Browser/SupportCollections/Test.php
<?php namespace LegacyTests\Browser\SupportCollections; use LegacyTests\Browser\TestCase; class Test extends TestCase { public function test() { $this->browse(function ($browser) { $this->visitLivewireComponent($browser, Component::class) ->assertSeeIn('@things', 'foo') ...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/SupportCollections/Component.php
legacy_tests/Browser/SupportCollections/Component.php
<?php namespace LegacyTests\Browser\SupportCollections; use Livewire\Component as BaseComponent; class Component extends BaseComponent { public $things; public $unorderedKeyedThings; public function mount() { $this->things = collect('foo'); $this->unorderedKeyedThings = collect([ ...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/DynamicComponentLoading/view-clickable-component.blade.php
legacy_tests/Browser/DynamicComponentLoading/view-clickable-component.blade.php
<div> <button id="click_me" wire:click="clickMe">Click me</button> @if($success) <h1>Test succeeded</h1> @endif </div>
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/DynamicComponentLoading/Test.php
legacy_tests/Browser/DynamicComponentLoading/Test.php
<?php namespace LegacyTests\Browser\DynamicComponentLoading; use Illuminate\Support\Facades\File; use Laravel\Dusk\Browser; use LegacyTests\Browser\TestCase; class Test extends TestCase { public function test_that_component_loaded_dynamically_via_post_action_causes_no_method_not_allowed() { $this->ma...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/DynamicComponentLoading/ClickableComponent.php
legacy_tests/Browser/DynamicComponentLoading/ClickableComponent.php
<?php namespace LegacyTests\Browser\DynamicComponentLoading; use Illuminate\Support\Facades\View; use Livewire\Component as BaseComponent; class ClickableComponent extends BaseComponent { public $success = false; public function clickMe() { // Calling this method should never fail, even if the c...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/DynamicComponentLoading/view-load-dynamic-component.blade.php
legacy_tests/Browser/DynamicComponentLoading/view-load-dynamic-component.blade.php
@extends('layouts.app-for-normal-views') @section('content') <div> <h1>Step 1 Active</h1> <div id="load_target"></div> </div> @endsection @push('scripts') <script type="text/javascript"> document.addEventListener("DOMContentLoaded", function(event) { fetch('{{ route("d...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/DynamicComponentLoading/view-dynamic-component.blade.php
legacy_tests/Browser/DynamicComponentLoading/view-dynamic-component.blade.php
@extends('layouts.app-for-normal-views') @section('content') <div> @livewire(\Tests\Browser\DynamicComponentLoading\ClickableComponent::class) </div> @endsection
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/DataBinding/InputTextarea/Test.php
legacy_tests/Browser/DataBinding/InputTextarea/Test.php
<?php namespace LegacyTests\Browser\DataBinding\InputTextarea; use Laravel\Dusk\Browser; use LegacyTests\Browser\TestCase; class Test extends TestCase { public function test() { $this->browse(function (Browser $browser) { $this->visitLivewireComponent($browser, Component::class) ...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/DataBinding/InputTextarea/view.blade.php
legacy_tests/Browser/DataBinding/InputTextarea/view.blade.php
<div> <textarea wire:model.live="foo" dusk="foo" class="{{ $showFooClass ? 'foo' : '' }}"></textarea><span dusk="foo.output">{{ $foo }}</span> <button wire:click="updateFooTo('changed')" dusk="foo.change">Change Foo</button> <button wire:click="$set('showFooClass', true)" dusk="foo.add-class">Add Class</but...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/DataBinding/InputTextarea/Component.php
legacy_tests/Browser/DataBinding/InputTextarea/Component.php
<?php namespace LegacyTests\Browser\DataBinding\InputTextarea; use Illuminate\Support\Facades\View; use Livewire\Component as BaseComponent; class Component extends BaseComponent { public $foo = 'initial'; public $bar = ''; public $baz = ''; public $bob = ''; public $showFooClass = false; p...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/DataBinding/DirtyDetection/Test.php
legacy_tests/Browser/DataBinding/DirtyDetection/Test.php
<?php namespace LegacyTests\Browser\DataBinding\DirtyDetection; use Laravel\Dusk\Browser; use LegacyTests\Browser\TestCase; class Test extends TestCase { public function test() { $this->browse(function (Browser $browser) { $this->visitLivewireComponent($browser, Component::class) ...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/DataBinding/DirtyDetection/view.blade.php
legacy_tests/Browser/DataBinding/DirtyDetection/view.blade.php
<div> <input wire:model.live="foo" dusk="foo.input"> <button wire:click="changeFoo" dusk="foo.button">Change Foo</button> <input wire:model.live="bar.baz" dusk="bar.input"> <button wire:click="resetBar" dusk="bar.button">Change BarBaz</button> </div>
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/DataBinding/DirtyDetection/Component.php
legacy_tests/Browser/DataBinding/DirtyDetection/Component.php
<?php namespace LegacyTests\Browser\DataBinding\DirtyDetection; use Illuminate\Support\Facades\View; use Livewire\Component as BaseComponent; class Component extends BaseComponent { public $foo = 'initial'; public $bar = []; public function changeFoo() { $this->foo = 'changed'; } pu...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/DataBinding/InputText/EmptyWireModelComponent.php
legacy_tests/Browser/DataBinding/InputText/EmptyWireModelComponent.php
<?php namespace LegacyTests\Browser\DataBinding\InputText; use Livewire\Component as BaseComponent; class EmptyWireModelComponent extends BaseComponent { public function render() { return <<<'HTML' <div> <input type="text" wire:model dusk="input" /> </div> HTML; } }
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/DataBinding/InputText/Test.php
legacy_tests/Browser/DataBinding/InputText/Test.php
<?php namespace LegacyTests\Browser\DataBinding\InputText; use Laravel\Dusk\Browser; use LegacyTests\Browser\TestCase; class Test extends TestCase { public function test() { $this->browse(function (Browser $browser) { $this->visitLivewireComponent($browser, Component::class) ...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/DataBinding/InputText/view.blade.php
legacy_tests/Browser/DataBinding/InputText/view.blade.php
<div> <input type="text" wire:model.live="foo" dusk="foo"><span dusk="foo.output">{{ $foo }}</span> <button wire:click="updateFooTo('changed')" dusk="foo.change">Change Foo</button> <input type="text" wire:model.live="bar.baz.bob" dusk="bar"><span dusk="bar.output">@json($bar)</span> <input type="text...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/DataBinding/InputText/Component.php
legacy_tests/Browser/DataBinding/InputText/Component.php
<?php namespace LegacyTests\Browser\DataBinding\InputText; use Illuminate\Support\Facades\View; use Livewire\Component as BaseComponent; class Component extends BaseComponent { public $foo = 'initial'; public $bar = []; public $baz = ''; public $bob = ''; public function updateFooTo($value) ...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/DataBinding/InputCheckboxRadio/Test.php
legacy_tests/Browser/DataBinding/InputCheckboxRadio/Test.php
<?php namespace LegacyTests\Browser\DataBinding\InputCheckboxRadio; use Laravel\Dusk\Browser; use LegacyTests\Browser\TestCase; class Test extends TestCase { public function test() { $this->browse(function (Browser $browser) { $this->visitLivewireComponent($browser, Component::class) ...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/DataBinding/InputCheckboxRadio/CheckboxesWithIntsComponent.php
legacy_tests/Browser/DataBinding/InputCheckboxRadio/CheckboxesWithIntsComponent.php
<?php namespace LegacyTests\Browser\DataBinding\InputCheckboxRadio; use Livewire\Component as BaseComponent; class CheckboxesWithIntsComponent extends BaseComponent { public $data = [2, 3]; public function render() { return <<< 'HTML' <div> <input dusk="int1" wire:model.live="data" type="che...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/DataBinding/InputCheckboxRadio/view.blade.php
legacy_tests/Browser/DataBinding/InputCheckboxRadio/view.blade.php
<div> <input type="checkbox" wire:model.live="foo" dusk="foo"><span dusk="foo.output">@json($foo)</span> <input type="checkbox" wire:model.live="bar" value="a" dusk="bar.a"> <input type="checkbox" wire:model.live="bar" value="b" dusk="bar.b"> <input type="checkbox" wire:model.live="bar" value="c" dusk=...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/DataBinding/InputCheckboxRadio/Component.php
legacy_tests/Browser/DataBinding/InputCheckboxRadio/Component.php
<?php namespace LegacyTests\Browser\DataBinding\InputCheckboxRadio; use Illuminate\Support\Facades\View; use Livewire\Component as BaseComponent; class Component extends BaseComponent { public $foo = true; public $bar = ['b']; public $baz = 2; public function updateFooTo($value) { $this-...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/DataBinding/AutoFill/Test.php
legacy_tests/Browser/DataBinding/AutoFill/Test.php
<?php namespace LegacyTests\Browser\DataBinding\AutoFill; use LegacyTests\Browser\TestCase; class Test extends TestCase { public function test() { // This is a manual test for Safari. // We can't test this automically because // Safari's automation mode disables autofill. // ...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/DataBinding/AutoFill/view.blade.php
legacy_tests/Browser/DataBinding/AutoFill/view.blade.php
<div> <div>{{ $email }}</div> <div>{{ $password }}</div> <form action="{{ url()->current() }}" method="GET"> <label for="email">Email</label> <input name="email" id="email" type="email" autocomplete="on" dusk="email" wire:model.blur="email"> <label for="password">Password</label> ...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/DataBinding/AutoFill/Component.php
legacy_tests/Browser/DataBinding/AutoFill/Component.php
<?php namespace LegacyTests\Browser\DataBinding\AutoFill; use Illuminate\Support\Facades\View; use Livewire\Component as BaseComponent; class Component extends BaseComponent { public $email = ''; public $password = ''; public function render() { return View::file(__DIR__.'/view.blade.php'); ...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/DataBinding/InputSelect/SelectWithSelectedOnOption.php
legacy_tests/Browser/DataBinding/InputSelect/SelectWithSelectedOnOption.php
<?php namespace LegacyTests\Browser\DataBinding\InputSelect; use Livewire\Component as BaseComponent; class SelectWithSelectedOnOption extends BaseComponent { public $selectedOption = '3'; public function render() { return <<<'HTML' <div> <h1 dusk="output">{{ $selectedOption }}</h1> <sel...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/DataBinding/InputSelect/Test.php
legacy_tests/Browser/DataBinding/InputSelect/Test.php
<?php namespace LegacyTests\Browser\DataBinding\InputSelect; use Laravel\Dusk\Browser; use LegacyTests\Browser\TestCase; class Test extends TestCase { public function test() { $this->browse(function (Browser $browser) { $this->visitLivewireComponent($browser, Component::class) ...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/DataBinding/InputSelect/SelectWithIncorrectSelectedOnOption.php
legacy_tests/Browser/DataBinding/InputSelect/SelectWithIncorrectSelectedOnOption.php
<?php namespace LegacyTests\Browser\DataBinding\InputSelect; use Livewire\Component as BaseComponent; class SelectWithIncorrectSelectedOnOption extends BaseComponent { public $selectedOption = '3'; public $showOtherSelected = false; public function render() { return <<<'HTML' <div> <h1 d...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/DataBinding/InputSelect/view.blade.php
legacy_tests/Browser/DataBinding/InputSelect/view.blade.php
<div> <h1 dusk="single.output">{{ $single }}</h1> <select wire:model.live="single" dusk="single.input"> <option>foo</option> <option>bar</option> <option>baz</option> </select> <h1 dusk="single-value.output">{{ $singleValue }}</h1> <select wire:model.live="singleValue" dusk=...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false