Skip to content

Commit

Permalink
Merge pull request #17 from ricklambrechts/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusjatenee committed Mar 14, 2021
2 parents 1a93768 + 60f40e6 commit a72c9ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions tests/Parser/FileTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,12 @@

class FileTest extends TestCase
{
public function setUp(): void
{
parent::setUp();

$this->markTestSkipped('Not passing on CI for some reason.');
}

/** @test */
public function it_validates_a_class_missing_a_method()
{
$this->expectException(InvalidFileException::class);

$fixture = file_get_contents(__DIR__ . './../fixtures/Errors/MissingMethod.php');
$fixture = file_get_contents(__DIR__ . '/../fixtures/Errors/MissingMethod.php');

new File($fixture, 'testBasicExample');
}
Expand All @@ -30,7 +23,7 @@ public function it_validates_a_class_missing_the_method_Call()
{
$this->expectException(InvalidFileException::class);

$fixture = file_get_contents(__DIR__ . './../fixtures/Errors/MissingMethodCall.php');
$fixture = file_get_contents(__DIR__ . '/../fixtures/Errors/MissingMethodCall.php');

new File($fixture, 'testBasicExample');
}
Expand All @@ -40,7 +33,7 @@ public function it_validates_a_class_missing_the_closure()
{
$this->expectException(InvalidFileException::class);

$fixture = file_get_contents(__DIR__ . './../fixtures/Errors/MissingClosure.php');
$fixture = file_get_contents(__DIR__ . '/../fixtures/Errors/MissingClosure.php');

new File($fixture, 'testBasicExample');
}
Expand Down
File renamed without changes.

0 comments on commit a72c9ff

Please sign in to comment.