Your IP : 216.73.216.79


Current Path : /var/www/html/hr/vendor/codeception/base/tests/unit/Codeception/Command/
Upload File :
Current File : /var/www/html/hr/vendor/codeception/base/tests/unit/Codeception/Command/MyCustomCommandTest.php

<?php
namespace Project\Command;

class MyCustomCommandTest extends \PHPUnit_Framework_TestCase
{
    public static function setUpBeforeClass()
    {
        require_once \Codeception\Configuration::dataDir() . 'register_command/examples/MyCustomCommand.php';
    }

    public function testHasCodeceptionCustomCommandInterface()
    {
        $command = new MyCustomCommand('commandName');
        $this->assertInstanceOf('Codeception\CustomCommandInterface', $command);
    }

    public function testHasCommandName()
    {
        $commandName = MyCustomCommand::getCommandName();
        $this->assertEquals('myProject:myCommand', $commandName);
    }
}