Issues (153)

Tests/Unit/UpdateTest.php (2 issues)

Labels
Severity
1
<?php
2
3
4
namespace Aimeos\Aimeos\Tests\Unit;
5
6
7
require_once dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR . 'class.ext_update.php';
8
9
10
class UpdateTest
11
    extends \TYPO3\CMS\Core\Tests\UnitTestCase
0 ignored issues
show
The type TYPO3\CMS\Core\Tests\UnitTestCase was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
12
{
13
    private $object;
14
15
16
    public function setUp()
17
    {
18
        $this->object = new \ext_update();
0 ignored issues
show
The type ext_update was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
19
    }
20
21
22
    public function tearDown()
23
    {
24
        unset($this->object);
25
    }
26
27
28
    /**
29
     * @test
30
     */
31
    public function access()
32
    {
33
        $this->assertTrue($this->object->access());
34
    }
35
36
37
    /**
38
     * @test
39
     */
40
    public function main()
41
    {
42
        $result = $this->object->main();
43
44
        $this->assertContains('Setup process lasted', $result);
45
    }
46
}