Skip to content

Commit

Permalink
Merge pull request #42 from Pen-y-Fan/ascii-command-test
Browse files Browse the repository at this point in the history
Add AsciiTest (#38)
  • Loading branch information
programarivm authored Oct 3, 2021
2 parents 395d4dd + 393a5ea commit f882d24
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions tests/unit/Command/AsciiTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?php

namespace ChessServer\Tests\Unit\Command;

use ChessServer\Command\AsciiCommand;
use ChessServer\Tests\Unit\CommandTestCase;

class AsciiTest extends CommandTestCase
{
/**
* @test
*/
public function validate_ascii()
{
$this->assertInstanceOf(
AsciiCommand::class,
self::$parser->validate('/ascii')
);
}

/**
* @test
* @expectedException ChessServer\Exception\ParserException
*/
public function validate_ascii_foo()
{
self::$parser->validate('/ascii foo');
}
}

0 comments on commit f882d24

Please sign in to comment.