Skip to content

Commit

Permalink
Test Dic
Browse files Browse the repository at this point in the history
  • Loading branch information
cmb69 committed Mar 23, 2023
1 parent 71f6548 commit 29b7d40
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions tests/DicTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?php

/**
* Copyright 2023 Christoph M. Becker
*
* This file is part of Cryptographp_XH.
*
* Cryptographp_XH is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Cryptographp_XH is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Cryptographp_XH. If not, see <http://www.gnu.org/licenses/>.
*/

namespace Cryptographp;

use PHPUnit\Framework\TestCase;

class DicTest extends TestCase
{
public function setUp(): void
{
global $pth, $plugin_cf, $plugin_tx;
$pth = ["folder" => ["content" => "", "images" => "", "plugins" => ""]];
$plugin_cf = ["cryptographp" => ["char_fonts" => "", "crypt_expiration" => ""]];
$plugin_tx = ["cryptographp" => []];
}

public function testMakesCaptchaController(): void
{
$this->assertInstanceOf(CaptchaController::class, Dic::makeCaptchaController());
}

public function testMakesInfoController(): void
{
$this->assertInstanceOf(InfoController::class, Dic::makeInfoController());
}
}

0 comments on commit 29b7d40

Please sign in to comment.