PhpSchool\LearnYouPhpTest\Exercise\ConcernedAboutSeparationTest::testCheckReturnsSuccessIfIncludeFound PHP Метод

testCheckReturnsSuccessIfIncludeFound() публичный Метод

    public function testCheckReturnsSuccessIfIncludeFound()
    {
        $e = new ConcernedAboutSeparation($this->filesystem, $this->faker, $this->parser);
        $success = $e->check(new Input('learnyouphp', ['program' => __DIR__ . '/../res/concerned-about-separation/include.php']));
        $this->assertInstanceOf(Success::class, $success);
        $this->assertEquals('Concerned about Separation?', $success->getCheckName());
    }