for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of CaptainHook.
*
* (c) Sebastian Feldmann <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace CaptainHook\App\Runner\Config\Setup;
use CaptainHook\App\Runner\BaseTestRunner;
class ExpressTest extends BaseTestRunner
{
* Tests Express::configureHooks
public function testConfigureExpress(): void
$io = $this->getIOMock();
$config = $this->getConfigMock();
$config->expects($this->exactly(2))->method('getHookConfig')->willReturn($this->getHookConfigMock());
$io->method('ask')->will($this->onConsecutiveCalls('y', 'y', 'y', 'phpunit', 'y', 'phpcs'));
$setup = new Express($io);
$setup->configureHooks($config);
}