Testing the faytory of result objects.
More...
◆ setUp()
DataFactoryTest::setUp |
( |
| ) |
|
|
protected |
◆ tearDown()
DataFactoryTest::tearDown |
( |
| ) |
|
|
protected |
◆ testAlphanumeric()
DataFactoryTest::testAlphanumeric |
( |
| ) |
|
Definition at line 54 of file DataFactoryTest.php.
56 $dataType = $this->f->alphanumeric(
'someValue');
57 $this->assertInstanceOf(Data\Alphanumeric::class, $dataType);
◆ testDataSize1()
DataFactoryTest::testDataSize1 |
( |
| ) |
|
Definition at line 66 of file DataFactoryTest.php.
68 $dataType = $this->f->dataSize(10,
"MB");
69 $this->assertInstanceOf(Data\DataSize::class, $dataType);
◆ testDataSize2()
DataFactoryTest::testDataSize2 |
( |
| ) |
|
Definition at line 72 of file DataFactoryTest.php.
74 $dataType = $this->f->dataSize(
"10G");
75 $this->assertEquals(10, $dataType->getSize());
76 $this->assertEquals(Data\DataSize::GiB, $dataType->getUnit());
77 $this->assertEquals(10 * Data\DataSize::GiB, $dataType->inBytes());
78 $this->assertInstanceOf(Data\DataSize::class, $dataType);
◆ testError()
DataFactoryTest::testError |
( |
| ) |
|
◆ testOk()
DataFactoryTest::testOk |
( |
| ) |
|
◆ testPassword()
DataFactoryTest::testPassword |
( |
| ) |
|
Definition at line 48 of file DataFactoryTest.php.
50 $pwd = $this->f->password(
"secret");
51 $this->assertInstanceOf(Data\Password::class, $pwd);
◆ testPositiveInteger()
DataFactoryTest::testPositiveInteger |
( |
| ) |
|
Definition at line 60 of file DataFactoryTest.php.
62 $dataType = $this->f->positiveInteger(100);
63 $this->assertInstanceOf(Data\PositiveInteger::class, $dataType);
◆ $f
The documentation for this class was generated from the following file: