Page MenuHomeDevCentral

InspireTest.php
No OneTemporary

InspireTest.php

<?php
namespace Nasqueron\Notifications\Tests\Console\Commands;
class InspireTest extends TestCase {
/**
* @var string
*/
protected $class = 'Nasqueron\Notifications\Console\Commands\Inspire';
public function testExecute () {
// A quote contain a - character and is embedded by PHP_EOL
$this->tester->execute(['command' => $this->command->getName()]);
$this->assertRegexp('/\n.*-.*\n/', $this->tester->getDisplay());
}
}

File Metadata

Mime Type
text/x-php
Expires
Mon, Feb 16, 09:29 (20 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3373953
Default Alt Text
InspireTest.php (476 B)

Event Timeline