mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
Reverts changes on snapshot
This commit is contained in:
@ -1,4 +1,7 @@
|
||||
|
||||
PASS Tests\CustomTestCase\ExecutedTest
|
||||
✓ that gets executed
|
||||
|
||||
PASS Tests\Features\AfterAll
|
||||
✓ deletes file after all
|
||||
|
||||
@ -20,15 +23,6 @@
|
||||
✓ it adds coverage if --min exist
|
||||
✓ it generates coverage based on file input
|
||||
|
||||
PASS Tests\Features\Covers
|
||||
✓ it uses the correct PHPUnit attribute for class
|
||||
✓ it uses the correct PHPUnit attribute for function
|
||||
✓ it removes duplicated attributes
|
||||
✓ it guesses if the given argument is a class or function
|
||||
✓ it appends CoversNothing to method attributes
|
||||
✓ it does not append CoversNothing to other methods
|
||||
✓ it throws exception if no class nor method has been found
|
||||
|
||||
PASS Tests\Features\Datasets
|
||||
✓ it throws exception if dataset does not exist
|
||||
✓ it throws exception if dataset already exist
|
||||
@ -102,50 +96,22 @@
|
||||
✓ more than two datasets with (2) / (4) / (5)
|
||||
✓ more than two datasets with (2) / (4) / (6)
|
||||
✓ more than two datasets did the job right
|
||||
✓ it can resolve a dataset after the test case is available with (Closure Object (...)) #1
|
||||
✓ it can resolve a dataset after the test case is available with (Closure Object (...)) #2
|
||||
✓ it can resolve a dataset after the test case is available with (Closure Object (...))
|
||||
✓ it can resolve a dataset after the test case is available with shared yield sets with (Closure Object (...)) #1
|
||||
✓ it can resolve a dataset after the test case is available with shared yield sets with (Closure Object (...)) #2
|
||||
✓ it can resolve a dataset after the test case is available with shared array sets with (Closure Object (...)) #1
|
||||
✓ it can resolve a dataset after the test case is available with shared array sets with (Closure Object (...)) #2
|
||||
✓ it resolves a potential bound dataset logically with ('foo', Closure Object (...))
|
||||
✓ it resolves a potential bound dataset logically even when the closure comes first with (Closure Object (...), 'bar')
|
||||
✓ it will not resolve a closure if it is type hinted as a closure with (Closure Object (...)) #1
|
||||
✓ it will not resolve a closure if it is type hinted as a closure with (Closure Object (...)) #2
|
||||
✓ it will not resolve a closure if it is type hinted as a callable with (Closure Object (...)) #1
|
||||
✓ it will not resolve a closure if it is type hinted as a callable with (Closure Object (...)) #2
|
||||
✓ it can correctly resolve a bound dataset that returns an array with (Closure Object (...))
|
||||
✓ it can correctly resolve a bound dataset that returns an array but wants to be spread with (Closure Object (...))
|
||||
|
||||
PASS Tests\Features\Depends
|
||||
✓ first
|
||||
✓ second
|
||||
✓ depends
|
||||
✓ depends with ...params
|
||||
✓ depends with defined arguments
|
||||
✓ depends run test only once
|
||||
✓ it asserts true is true
|
||||
✓ depends works with the correct test name
|
||||
|
||||
PASS Tests\Features\DependsInheritance
|
||||
✓ it is a test
|
||||
✓ it uses correct parent class
|
||||
|
||||
PASS Tests\Features\Exceptions
|
||||
✓ it gives access the the underlying expectException
|
||||
✓ it catch exceptions
|
||||
✓ it catch exceptions and messages
|
||||
✓ it catch exceptions, messages and code
|
||||
✓ it can just define the message
|
||||
✓ it can just define the code
|
||||
✓ it not catch exceptions if given condition is false
|
||||
✓ it catch exceptions if given condition is true
|
||||
✓ it catch exceptions and messages if given condition is true
|
||||
✓ it catch exceptions, messages and code if given condition is true
|
||||
✓ it can just define the message if given condition is true
|
||||
✓ it can just define the code if given condition is true
|
||||
✓ it can just define the message if given condition is 1
|
||||
✓ it can just define the code if given condition is 1
|
||||
|
||||
PASS Tests\Features\Expect\HigherOrder\methods
|
||||
✓ it can access methods
|
||||
@ -158,8 +124,6 @@
|
||||
✓ it can compose complex expectations
|
||||
✓ it can handle nested method calls
|
||||
✓ it works with higher order tests
|
||||
✓ it can use the scoped method to lock into the given level for expectations
|
||||
✓ it works consistently with the json expectation method
|
||||
|
||||
PASS Tests\Features\Expect\HigherOrder\methodsAndProperties
|
||||
✓ it can access methods and properties
|
||||
@ -167,7 +131,6 @@
|
||||
✓ it works with higher order tests
|
||||
✓ it can start a new higher order expectation using the and syntax
|
||||
✓ it can start a new higher order expectation using the and syntax in higher order tests
|
||||
✓ it can start a new higher order expectation using the and syntax without nesting expectations
|
||||
|
||||
PASS Tests\Features\Expect\HigherOrder\properties
|
||||
✓ it allows properties to be accessed from the value
|
||||
@ -189,7 +152,6 @@
|
||||
✓ chained opposite and non-opposite expectations
|
||||
✓ it can add expectations via "and"
|
||||
✓ it accepts callables
|
||||
✓ it passes the key of the current item to callables
|
||||
|
||||
PASS Tests\Features\Expect\extend
|
||||
✓ it macros true is true
|
||||
@ -215,18 +177,6 @@
|
||||
PASS Tests\Features\Expect\not
|
||||
✓ not property calls
|
||||
|
||||
PASS Tests\Features\Expect\pipes
|
||||
✓ pipe is applied and can stop pipeline
|
||||
✓ pipe is run and can let the pipeline keep going
|
||||
✓ pipe works with negated expectation
|
||||
✓ interceptor is applied
|
||||
✓ interceptor stops the pipeline
|
||||
✓ interceptor is called only when filter is met
|
||||
✓ interceptor can be filtered with a closure
|
||||
✓ interceptor can be filter the expected parameter as well
|
||||
✓ interceptor works with negated expectation
|
||||
✓ intercept can add new parameters to the expectation
|
||||
|
||||
PASS Tests\Features\Expect\ray
|
||||
✓ ray calls do not fail when ray is not installed
|
||||
|
||||
@ -435,11 +385,6 @@
|
||||
✓ not failures with multiple needles (all failing)
|
||||
✓ not failures with multiple needles (some failing)
|
||||
|
||||
PASS Tests\Features\Expect\toContainOnlyInstancesOf
|
||||
✓ pass
|
||||
✓ failures
|
||||
✓ not failures
|
||||
|
||||
PASS Tests\Features\Expect\toEndWith
|
||||
✓ pass
|
||||
✓ failures
|
||||
@ -487,11 +432,8 @@
|
||||
|
||||
PASS Tests\Features\Expect\toHaveKeys
|
||||
✓ pass
|
||||
✓ pass with multi-dimensional arrays
|
||||
✓ failures
|
||||
✓ failures with multi-dimensional arrays
|
||||
✓ not failures
|
||||
✓ not failures with multi-dimensional arrays
|
||||
|
||||
PASS Tests\Features\Expect\toHaveLength
|
||||
✓ it passes with ('Fortaleza')
|
||||
@ -534,7 +476,6 @@
|
||||
|
||||
PASS Tests\Features\Expect\toMatchObject
|
||||
✓ pass
|
||||
✓ pass with class
|
||||
✓ failures
|
||||
✓ not failures
|
||||
|
||||
@ -589,9 +530,9 @@
|
||||
✓ it is capable doing multiple assertions
|
||||
✓ it resolves expect callables correctly
|
||||
✓ does not treat method names as callables
|
||||
✓ it can defer a method until after test setup
|
||||
✓ it can tap into the test
|
||||
✓ it can pass datasets into the expect callables with (1, 2, 3)
|
||||
✓ it can pass datasets into the defer callable with (1, 2, 3)
|
||||
✓ it can pass datasets into the tap callable with (1, 2, 3)
|
||||
✓ it can pass shared datasets into callables with (1)
|
||||
✓ it can pass shared datasets into callables with (2)
|
||||
|
||||
@ -614,12 +555,12 @@
|
||||
|
||||
PASS Tests\Features\PendingHigherOrderTests
|
||||
✓ get 'foo'
|
||||
✓ get 'foo' → get 'bar' → expect true → toBeTrue
|
||||
✓ get 'foo' → expect true → toBeTrue
|
||||
✓ get 'foo' → get 'bar' → expect true → toBeTrue
|
||||
✓ get 'foo' → expect true → toBeTrue
|
||||
|
||||
WARN Tests\Features\Skip
|
||||
✓ it do not skips
|
||||
- it skips with truthy → 1
|
||||
- it skips with truthy
|
||||
- it skips with truthy condition by default
|
||||
- it skips with message → skipped because bar
|
||||
- it skips with truthy closure condition
|
||||
@ -633,10 +574,6 @@
|
||||
✓ a test
|
||||
✓ higher order message test
|
||||
|
||||
PASS Tests\Features\ThrowsNoExceptions
|
||||
✓ it allows access to the underlying expectNotToPerformAssertions method
|
||||
✓ it allows performing no expectations without being risky
|
||||
|
||||
PASS Tests\Fixtures\DirectoryWithTests\ExampleTest
|
||||
✓ it example 1
|
||||
|
||||
@ -663,14 +600,14 @@
|
||||
PASS Tests\PHPUnit\CustomAffixes\ATestWithSpaces
|
||||
✓ it runs file names like `A Test With Spaces.php`
|
||||
|
||||
PASS Tests\PHPUnit\CustomAffixes\AdditionalFileExtension
|
||||
PASS Tests\PHPUnit\CustomAffixes\AdditionalFileExtensionspec
|
||||
✓ it runs file names like `AdditionalFileExtension.spec.php`
|
||||
|
||||
PASS Tests\PHPUnit\CustomAffixes\FolderWithAn\ExampleTest
|
||||
✓ custom traits can be used
|
||||
✓ trait applied in this file
|
||||
|
||||
PASS Tests\PHPUnit\CustomAffixes\ManyExtensions
|
||||
PASS Tests\PHPUnit\CustomAffixes\ManyExtensionsclasstest
|
||||
✓ it runs file names like `ManyExtensions.class.test.php`
|
||||
|
||||
PASS Tests\PHPUnit\CustomAffixes\TestCaseWithQuotes
|
||||
@ -699,14 +636,18 @@
|
||||
✓ it allows global uses
|
||||
✓ it allows multiple global uses registered in the same path
|
||||
|
||||
WARN Tests\Unit\ConfigLoader
|
||||
✓ it fallbacks to default path if no phpunit file is found
|
||||
- it fallbacks to default path if phpunit is not a valid XML
|
||||
- it fallbacks to default path if failing to read phpunit content
|
||||
- it fallbacks to default path if there is no test suites directory
|
||||
- it fallbacks to default path if test suite directory has no value
|
||||
- it fallbacks to default path if test suite directory does not exist
|
||||
- it returns the parent folder of first test suite directory
|
||||
PASS Tests\Unit\Actions\AddsDefaults
|
||||
✓ it sets defaults
|
||||
✓ it does not override options
|
||||
|
||||
PASS Tests\Unit\Actions\AddsTests
|
||||
✓ default php unit tests
|
||||
✓ it removes warnings
|
||||
|
||||
PASS Tests\Unit\Actions\ValidatesConfiguration
|
||||
✓ it throws exception when configuration not found
|
||||
✓ it throws exception when `process isolation` is true
|
||||
✓ it do not throws exception when `process isolation` is false
|
||||
|
||||
PASS Tests\Unit\Console\Help
|
||||
✓ it outputs the help information when --help is used
|
||||
@ -722,9 +663,6 @@
|
||||
✓ environment is set to CI when --ci option is used
|
||||
✓ environment is set to Local when --ci option is not used
|
||||
|
||||
PASS Tests\Unit\Plugins\Retry
|
||||
✓ it retries if --retry argument is used
|
||||
|
||||
PASS Tests\Unit\Plugins\Version
|
||||
✓ it outputs the version when --version is used
|
||||
✓ it do not outputs version when --version is not used
|
||||
@ -752,66 +690,37 @@
|
||||
✓ it can filter the test suite filenames to those with the only method
|
||||
✓ it does not filter the test suite filenames to those with the only method when working in CI pipeline
|
||||
|
||||
WARN Tests\Visual\Help
|
||||
- visual snapshot of help command output → Not supported yet.
|
||||
PASS Tests\Visual\Help
|
||||
✓ visual snapshot of help command output
|
||||
|
||||
WARN Tests\Visual\JUnit
|
||||
- it is can successfully call all public methods → Not supported yet.
|
||||
PASS Tests\Visual\JUnit
|
||||
✓ it is can successfully call all public methods
|
||||
|
||||
FAIL Tests\Visual\SingleTestOrDirectory
|
||||
PASS Tests\Visual\SingleTestOrDirectory
|
||||
✓ allows to run a single test
|
||||
✓ allows to run a directory
|
||||
⨯ it has ascii chars
|
||||
✓ it has ascii chars
|
||||
✓ it disable decorating printer when colors is set to never
|
||||
|
||||
WARN Tests\Visual\Success
|
||||
- visual snapshot of test suite on success
|
||||
|
||||
WARN Tests\Visual\TeamCity
|
||||
- it is can successfully call all public methods → Not supported yet.
|
||||
PASS Tests\Visual\TeamCity
|
||||
✓ it is can successfully call all public methods
|
||||
|
||||
PHPUnit\Framework\ExpectationFailedException
|
||||
PASS Tests\Features\Depends
|
||||
✓ first
|
||||
✓ second
|
||||
✓ it asserts true is true
|
||||
✓ depends
|
||||
✓ depends with ...params
|
||||
✓ depends with defined arguments
|
||||
✓ depends run test only once
|
||||
✓ depends works with the correct test name
|
||||
|
||||
Failed asserting that '\n
|
||||
PASS Tests\Fixtures\DirectoryWithTests\ExampleTest\n
|
||||
✓ it example 1\n
|
||||
\n
|
||||
Tests: 1 passed\n
|
||||
Time: 0.00s\n
|
||||
\n
|
||||
' contains "
|
||||
PASS Tests\Fixtures\DirectoryWithTests\ExampleTest
|
||||
✓ it example 1
|
||||
PASS Tests\Features\DependsInheritance
|
||||
✓ it is a test
|
||||
✓ it uses correct parent class
|
||||
|
||||
Tests: 4 incompleted, 9 skipped, 480 passed
|
||||
|
||||
Tests: 1 passed
|
||||
".
|
||||
|
||||
/Users/nunomaduro/Work/Code/pest/src/Mixins/Expectation.php:181
|
||||
/Users/nunomaduro/Work/Code/pest/src/Support/ExpectationPipeline.php:80
|
||||
/Users/nunomaduro/Work/Code/pest/src/Support/ExpectationPipeline.php:84
|
||||
/Users/nunomaduro/Work/Code/pest/src/Expectation.php:297
|
||||
/Users/nunomaduro/Work/Code/pest/tests/Visual/SingleTestOrDirectory.php:32
|
||||
/Users/nunomaduro/Work/Code/pest/src/Factories/TestCaseMethodFactory.php:101
|
||||
/Users/nunomaduro/Work/Code/pest/src/Concerns/Testable.php:251
|
||||
/Users/nunomaduro/Work/Code/pest/src/Support/ExceptionTrace.php:29
|
||||
/Users/nunomaduro/Work/Code/pest/src/Concerns/Testable.php:251
|
||||
/Users/nunomaduro/Work/Code/pest/src/Concerns/Testable.php:205
|
||||
/Users/nunomaduro/Work/Code/pest/src/Kernel.php:57
|
||||
|
||||
at src/Mixins/Expectation.php:181
|
||||
177▕ {
|
||||
178▕ foreach ($needles as $needle) {
|
||||
179▕ if (is_string($this->value)) {
|
||||
180▕ // @phpstan-ignore-next-line
|
||||
➜ 181▕ Assert::assertStringContainsString((string) $needle, $this->value);
|
||||
182▕ } else {
|
||||
183▕ if (!is_iterable($this->value)) {
|
||||
184▕ InvalidExpectationValue::expected('iterable');
|
||||
185▕ }
|
||||
|
||||
1 src/Mixins/Expectation.php:181
|
||||
2 src/Support/ExpectationPipeline.php:80
|
||||
|
||||
|
||||
Tests: 1 failed, 4 incompleted, 18 skipped, 514 passed, 8 pending
|
||||
|
||||
Reference in New Issue
Block a user