Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php namespace Tests\Unit\Traits\Components; use WireUi\Components\Errors\Multiple as E..
Decoded Output download
<?php
namespace Tests\Unit\Traits\Components;
use WireUi\Components\Errors\Multiple as Errors;
beforeEach(function () {
$this->component = (new Errors())->withName('errors');
$this->invokeMethod($this->component, 'setConfig');
});
test('it should check that errors is empty', function () {
$errors = $this->component->errors();
expect($errors->count())->toBe(0);
});
test('it should check errors', function () {
$this->withViewErrors(['name' => 'Name is required']);
$errors = $this->component->errors();
expect($errors->count())->toBe(1);
});
?>
Did this file decode correctly?
Original Code
<?php
namespace Tests\Unit\Traits\Components;
use WireUi\Components\Errors\Multiple as Errors;
beforeEach(function () {
$this->component = (new Errors())->withName('errors');
$this->invokeMethod($this->component, 'setConfig');
});
test('it should check that errors is empty', function () {
$errors = $this->component->errors();
expect($errors->count())->toBe(0);
});
test('it should check errors', function () {
$this->withViewErrors(['name' => 'Name is required']);
$errors = $this->component->errors();
expect($errors->count())->toBe(1);
});
Function Calls
None |
Stats
MD5 | 2863d695a83432e98e3b66a3e2e3b4d9 |
Eval Count | 0 |
Decode Time | 79 ms |