mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2026-10-30 09:12:09 +00:00
Implemented hasClass
This commit is contained in:
1 parent
d00d70f440
commit
11d8ac9927
3 files changed
+15
No files matched your search
@@ -24,6 +24,7 @@ class ClassAttributTest extends TestCase
|
||||
|
||||
public function testConstructor(): void
|
||||
{
|
||||
$this->assertFalse($this->classAttribut->hasClass());
|
||||
$this->expectException(\TypeError::class);
|
||||
$this->classAttribut->getClass();
|
||||
}
|
||||
@@ -32,6 +33,7 @@ class ClassAttributTest extends TestCase
|
||||
{
|
||||
$class = AbstractSource::class;
|
||||
$this->assertNull($this->classAttribut->setClass($class));
|
||||
$this->assertTrue($this->classAttribut->hasClass());
|
||||
$this->assertEquals($class, $this->classAttribut->getClass());
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user