Cerys
3 weeks ago
2 changed files with 35 additions and 5 deletions
@ -0,0 +1,26 @@ |
|||||
|
<?php |
||||
|
use Darksparrow\DeegraphInteractions\Exceptions\QueryBuilderConflictingFieldAlreadyExistsException; |
||||
|
use Darksparrow\DeegraphInteractions\QueryBuilder\QueryBuilder; |
||||
|
use Darksparrow\DeegraphInteractions\QueryBuilder\QueryBuilderTrait; |
||||
|
use Darksparrow\DeegraphInteractions\DataStructures\UUID; |
||||
|
use PHPUnit\Framework\TestCase; |
||||
|
|
||||
|
class UUIDTest extends TestCase |
||||
|
{ |
||||
|
private string $ExampleUUID = "12345678-ACDE-EFAB-CDEF-123456123456"; |
||||
|
|
||||
|
public function testValidUUID() |
||||
|
{ |
||||
|
self::assertEquals( |
||||
|
expected: "{" . $this->ExampleUUID . "}", |
||||
|
actual: strval(new UUID($this->ExampleUUID)), |
||||
|
); |
||||
|
} |
||||
|
public function testValidUUID2() |
||||
|
{ |
||||
|
self::assertEquals( |
||||
|
expected: "{" . $this->ExampleUUID . "}", |
||||
|
actual: strval(new UUID("{" . $this->ExampleUUID . "}")), |
||||
|
); |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue