PluginProbe
Packeta / 2.0.9
Packeta v2.0.9
2.3.2 2.3.1 trunk 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.3.0 1.3.1 1.3.2 1.4 1.4.1 1.4.2 1.4.3 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 All 56 releases
packeta / tests / Core / Validator / AddressTest.php

AddressTest.php in Packeta 2.0.9, at tests/Core/Validator/AddressTest.php

22 lines 524 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 declare( strict_types=1 );
4
5 namespace Tests\Core\Validator;
6
7 use Packetery\Core\Validator\Address;
8 use PHPUnit\Framework\TestCase;
9 use Tests\Core\DummyFactory;
10
11 class AddressTest extends TestCase {
12 public function testValidate(): void {
13 $validator = new Address();
14
15 $dummyAddress = DummyFactory::createAddress();
16 self::assertTrue( $validator->validate( $dummyAddress ) );
17
18 $dummyAddressInvalid = DummyFactory::createInvalidAddress();
19 self::assertFalse( $validator->validate( $dummyAddressInvalid ) );
20 }
21 }
22