Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
luanfreitasdev committed Nov 27, 2024
1 parent 172397c commit b29196c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Feature/PayloadTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
expect($context[0])
->toHaveKeys(['file', 'line', 'snippet'])
->and($context[0])
->file->toContain('tests/Feature/ClassWithException.php')
->file->toContain(adjustPathToDirectorySeparator('tests/Feature/ClassWithException.php'))
->line->toBe(16)
->and($context[0])
->snippet->toBe([
Expand All @@ -104,7 +104,7 @@
expect($context[0])
->toHaveKeys(['file', 'line', 'snippet'])
->and($context[0])
->file->toContain('tests/Feature/ClassWithException.php')
->file->toContain(adjustPathToDirectorySeparator('tests/Feature/ClassWithException.php'))
->line->toBe(16)
->and($context[0])
->snippet->toBe([
Expand Down
5 changes: 5 additions & 0 deletions tests/Pest.php
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
<?php

function adjustPathToDirectorySeparator(string $path): string
{
return str_replace(['/', '\\'], DIRECTORY_SEPARATOR, $path);
}

0 comments on commit b29196c

Please sign in to comment.