diff options
| author | Kevin J Hoerr <kjhoerr@submelon.tech> | 2018-08-26 01:38:28 -0400 |
|---|---|---|
| committer | Kevin Hoerr <kjhoerr@submelon.tech> | 2018-08-31 23:24:45 -0400 |
| commit | 0965d62be00a7820f97284704dc71f37e661b412 (patch) | |
| tree | 5a5c9d69062e24aa926eb30447c5ff27e0a65492 /test/Model | |
| parent | 1e3946f04b5b602d3869a285d897acb0ba2b3c35 (diff) | |
| download | august-offensive-0965d62be00a7820f97284704dc71f37e661b412.tar.gz august-offensive-0965d62be00a7820f97284704dc71f37e661b412.tar.bz2 august-offensive-0965d62be00a7820f97284704dc71f37e661b412.zip | |
Begin migration to Rust; Add actix-web, diesel as main dependencies
Diffstat (limited to 'test/Model')
| -rw-r--r-- | test/Model/QueryTest.php | 42 | ||||
| -rw-r--r-- | test/Model/ResultTest.php | 37 |
2 files changed, 0 insertions, 79 deletions
diff --git a/test/Model/QueryTest.php b/test/Model/QueryTest.php deleted file mode 100644 index ef6cda7..0000000 --- a/test/Model/QueryTest.php +++ /dev/null @@ -1,42 +0,0 @@ -<?php - -declare(strict_types=1); - -namespace AugustOffensive\Model; - -use PHPUnit\Framework\TestCase; - -/** - * @covers Query - */ -final class QueryTest extends \PHPUnit\Framework\TestCase -{ - public function testCanBeCreated() - { - $this->assertInstanceOf( - Query::class, - new Query(array("api", "path"), "GET", array()) - ); - } - - public function testHasAccessibleValues() - { - $path = array("api", "query", "path"); - $request = "PUT"; - $content = array("a" => "apple", "b" => "bearing"); - $query = new Query($path, $request, $content); - - $this->assertEquals( - $path, - $query->getPath() - ); - $this->assertEquals( - $request, - $query->getRequest() - ); - $this->assertEquals( - $content, - $query->getContent() - ); - } -} diff --git a/test/Model/ResultTest.php b/test/Model/ResultTest.php deleted file mode 100644 index 0380182..0000000 --- a/test/Model/ResultTest.php +++ /dev/null @@ -1,37 +0,0 @@ -<?php - -declare(strict_types=1); - -namespace AugustOffensive\Model; - -use PHPUnit\Framework\TestCase; - -/** - * @covers Result - */ -final class ResultTest extends \PHPUnit\Framework\TestCase -{ - public function testCanBeCreated() - { - $this->assertInstanceOf( - Result::class, - new Result("TEST_SUCCESS", array("it worked")) - ); - } - - public function testHasAccessibleValues() - { - $resultType = "VISIBLE"; - $result = array("array", "of", "values"); - $resultObject = new Result($resultType, $result); - - $this->assertEquals( - $resultType, - $resultObject->getResultType() - ); - $this->assertEquals( - $result, - $resultObject->getResult() - ); - } -} |
