mirror of
https://github.com/ivuorinen/bbcodeparser.git
synced 2026-01-26 11:23:58 +00:00
Initial commit with tests, and stuff.
This commit is contained in:
26
tests/ArrayTraitTest.php
Normal file
26
tests/ArrayTraitTest.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace ivuorinen\BBCode\Tests;
|
||||
|
||||
use ArrayTraitHelper;
|
||||
use TestCase;
|
||||
|
||||
class ArrayTraitTest extends TestCase
|
||||
{
|
||||
private $class;
|
||||
|
||||
public function setUp()
|
||||
{
|
||||
$this->class = new ArrayTraitHelper();
|
||||
}
|
||||
|
||||
public function test_array_only()
|
||||
{
|
||||
$this->assertTrue(\method_exists($this->class, 'arrayOnly'));
|
||||
}
|
||||
|
||||
public function test_array_except()
|
||||
{
|
||||
$this->assertTrue(\method_exists($this->class, 'arrayExcept'));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user