PluginProbe
Packeta / 2.1
Packeta v2.1
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 / Entity / SizeTest.php

SizeTest.php in Packeta 2.1, at tests/Core/Entity/SizeTest.php

27 lines 551 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\Entity;
6
7 use PHPUnit\Framework\TestCase;
8 use Tests\Core\DummyFactory;
9
10 class SizeTest extends TestCase {
11 public function testSettersAndGetters(): void {
12 $size = DummyFactory::createSize();
13
14 $length = 23.0;
15 $size->setLength( $length );
16 self::assertSame( $length, $size->getLength() );
17
18 $width = 32.0;
19 $size->setwidth( $width );
20 self::assertSame( $width, $size->getWidth() );
21
22 $height = 13.0;
23 $size->setHeight( $height );
24 self::assertSame( $height, $size->getHeight() );
25 }
26 }
27