mirror of
https://github.com/yiisoft/yii2.git
synced 2026-03-10 17:27:58 +01:00
Raised minimum PHP version to 8.1 (#19879)
This commit is contained in:
@@ -20,7 +20,7 @@ class ArrayFixtureTest extends TestCase
|
||||
*/
|
||||
private $_fixture;
|
||||
|
||||
protected function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
parent::setUp();
|
||||
$this->_fixture = new ArrayFixture();
|
||||
@@ -47,12 +47,12 @@ class ArrayFixtureTest extends TestCase
|
||||
$this->assertEmpty($this->_fixture->data, 'fixture data should not be loaded');
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException \yii\base\InvalidConfigException
|
||||
*/
|
||||
public function testWrongDataFileException()
|
||||
{
|
||||
$this->_fixture->dataFile = 'wrong/fixtures/data/path/alias';
|
||||
|
||||
$this->expectException(\yii\base\InvalidConfigException::class);
|
||||
|
||||
$this->_fixture->load();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user