Skip to content

Commit 316ba16

Browse files
committed
Add test for Boolean type too
1 parent 5d82f79 commit 316ba16

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

tests/unit/Types/BooleanTest.php

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
/**
6+
* This file is part of phpDocumentor.
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*
11+
* @link http://phpdoc.org
12+
*/
13+
14+
namespace phpDocumentor\Reflection\Types;
15+
16+
use phpDocumentor\Reflection\Types\Boolean;
17+
use PHPUnit\Framework\TestCase;
18+
19+
/**
20+
* @coversDefaultClass \phpDocumentor\Reflection\Types\Boolean
21+
*/
22+
final class BooleanTest extends TestCase
23+
{
24+
/**
25+
* @covers ::__toString
26+
*/
27+
public function testBooleanStringifyCorrectly() : void
28+
{
29+
$type = new Boolean();
30+
31+
$this->assertSame('bool', (string) $type);
32+
}
33+
}

0 commit comments

Comments
 (0)