📁 File Manager Pro
v10.0.3 | PHP: 8.2.31
Server: LiteSpeed
2026-07-03 09:19:05
📂
/ (Root)
/
home
/
orkouolp
/
web
/
testing.orkobd
/
laravel
/
vendor
/
nette
/
schema
/
tests
/
Schema
📍 /home/orkouolp/web/testing.orkobd/laravel/vendor/nette/schema/tests/Schema
🔄 Refresh
✏️
Editing: Expect.pattern.phpt
Writable
<?php declare(strict_types=1); use Nette\Schema\Expect; use Nette\Schema\Processor; use Tester\Assert; require __DIR__ . '/../bootstrap.php'; test('', function () { $schema = Expect::string()->pattern('\d{9}'); Assert::same('123456789', (new Processor)->process($schema, '123456789')); }); test('', function () { $schema = Expect::string()->pattern('\d{9}'); checkValidationErrors(function () use ($schema) { (new Processor)->process($schema, '123'); }, ["The item expects to match pattern '\\d{9}', '123' given."]); }); test('', function () { $schema = Expect::string()->nullable()->pattern('\d{9}'); Assert::same(null, (new Processor)->process($schema, null)); });
💾 Save Changes
❌ Cancel