for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the Cubiche/Web component.
*
* Copyright (c) Cubiche
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Cubiche\Domain\Web\Tests\Units;
use Cubiche\Domain\System\Tests\Units\StringLiteralTests;
use Cubiche\Domain\Web\HostName;
use Cubiche\Domain\Web\IPAddress;
* HostTestCase class.
* Generated by TestGenerator on 2017-03-15 at 11:36:08.
abstract class HostTestCase extends StringLiteralTests
{
/*
* Test fromNative method.
public function testFromNative()
$this
->given($valueObject = $this->fromNative($this->faker->ipv4))
->then()
->object($valueObject)
->isInstanceOf(IPAddress::class)
->and()
->when($valueObject = $this->fromNative($this->faker->word))
->isInstanceOf(HostName::class)
;
}