mirror of
https://github.com/pestphp/pest.git
synced 2026-03-12 02:37:22 +01:00
fix: Pest.php file not loaded in certain environments
This commit is contained in:
@ -1,19 +0,0 @@
|
||||
<?php
|
||||
|
||||
use Pest\ConfigLoader;
|
||||
use Pest\Support\Reflection;
|
||||
|
||||
it('fallbacks to default path if no phpunit file is found', function () {
|
||||
$instance = new ConfigLoader('fake-path');
|
||||
|
||||
expect(Reflection::getPropertyValue($instance, 'config'))->toBeNull();
|
||||
expect($instance->getConfigurationFilePath())->toBeFalse();
|
||||
expect($instance->getTestsDirectory())->toBe(ConfigLoader::DEFAULT_TESTS_PATH);
|
||||
});
|
||||
|
||||
it('fallbacks to default path if phpunit is not a valid XML')->skip();
|
||||
it('fallbacks to default path if failing to read phpunit content')->skip();
|
||||
it('fallbacks to default path if there is no test suites directory')->skip();
|
||||
it('fallbacks to default path if test suite directory has no value')->skip();
|
||||
it('fallbacks to default path if test suite directory does not exist')->skip();
|
||||
it('returns the parent folder of first test suite directory')->skip();
|
||||
@ -15,6 +15,6 @@ $run = function () {
|
||||
};
|
||||
|
||||
test('parallel', function () use ($run) {
|
||||
expect($run())->toContain('Tests: 2 deprecated, 3 warnings, 4 incomplete, 1 notice, 4 todos, 15 skipped, 641 passed (1579 assertions)')
|
||||
expect($run())->toContain('Tests: 2 deprecated, 3 warnings, 4 incomplete, 1 notice, 4 todos, 9 skipped, 640 passed (1576 assertions)')
|
||||
->toContain('Parallel: 3 processes');
|
||||
})->skip(PHP_OS_FAMILY === 'Windows');
|
||||
|
||||
Reference in New Issue
Block a user