You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
785 B

<?php
namespace Spip\Archiver\Tests;
use PHPUnit\Framework\TestCase;
use Spip\Archiver\AbstractArchiver;
/**
* @covers \Spip\Archiver\AbstractArchiver
*
* @internal
*/
class AbstractArchiverTest extends TestCase
{
public function testConstructor()
{
// Given
$stub = $this->getMockForAbstractClass(
AbstractArchiver::class,
['']
);
$stub->expects($this->any())
->method('informer')
->will($this->returnValue([]));
// When
$actual = $stub->informer();
// Then
$this->assertEquals([], $actual);
$this->assertEquals(0, $stub->erreur());
$this->assertEquals('OK', $stub->message());
$this->assertTrue($stub->getLectureSeule());
}
}