Page MenuHomeDevCentral

SiteTest.php
No OneTemporary

SiteTest.php

<?php
declare(strict_types=1);
namespace Nasqueron\SAAS\PhpBB\Tests\SitesRepository;
use Nasqueron\SAAS\PhpBB\SitesRepository\Site;
use PHPUnit\Framework\TestCase;
use InvalidArgumentException;
class SiteTest extends TestCase {
public function testSetId () {
$site = new Site;
$site->setId('acme');
$this->assertEquals('acme', $site->getId());
}
public function testSetIdWithInvalidIdentifiant () {
$this->expectException(InvalidArgumentException::class);
$site = new Site;
$site->setId('invalid acme');
}
}

File Metadata

Mime Type
text/x-php
Expires
Thu, Dec 26, 16:27 (7 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2315205
Default Alt Text
SiteTest.php (581 B)

Event Timeline