mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
Uses Collision ^7.0
This commit is contained in:
@ -1,7 +1,4 @@
|
||||
|
||||
PASS Tests\CustomTestCase\ExecutedTest
|
||||
✓ that gets executed
|
||||
|
||||
PASS Tests\Features\AfterAll
|
||||
✓ deletes file after all
|
||||
|
||||
@ -23,6 +20,15 @@
|
||||
✓ 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
|
||||
@ -111,16 +117,35 @@
|
||||
✓ 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
|
||||
@ -133,6 +158,8 @@
|
||||
✓ 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
|
||||
@ -140,6 +167,7 @@
|
||||
✓ 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
|
||||
@ -161,6 +189,7 @@
|
||||
✓ 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
|
||||
@ -186,15 +215,16 @@
|
||||
PASS Tests\Features\Expect\not
|
||||
✓ not property calls
|
||||
|
||||
PASS Tests\Features\Expect\pipe
|
||||
PASS Tests\Features\Expect\pipes
|
||||
✓ pipe is applied and can stop pipeline
|
||||
✓ interceptor works with negated expectation
|
||||
✓ pipe works with negated expectation
|
||||
✓ pipe is run and can let the pipeline keep going
|
||||
✓ intercept is applied
|
||||
✓ intercept stops the pipeline
|
||||
✓ interception is called only when filter is met
|
||||
✓ intercept can be filtered with a closure
|
||||
✓ 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
|
||||
@ -405,6 +435,11 @@
|
||||
✓ 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
|
||||
@ -452,8 +487,11 @@
|
||||
|
||||
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')
|
||||
@ -496,6 +534,7 @@
|
||||
|
||||
PASS Tests\Features\Expect\toMatchObject
|
||||
✓ pass
|
||||
✓ pass with class
|
||||
✓ failures
|
||||
✓ not failures
|
||||
|
||||
@ -516,6 +555,8 @@
|
||||
✓ not failures
|
||||
✓ closure missing parameter
|
||||
✓ closure missing type-hint
|
||||
✓ it can handle a non-defined exception
|
||||
✓ it can handle a class not found Error
|
||||
|
||||
PASS Tests\Features\Expect\unless
|
||||
✓ it pass
|
||||
@ -548,9 +589,9 @@
|
||||
✓ it is capable doing multiple assertions
|
||||
✓ it resolves expect callables correctly
|
||||
✓ does not treat method names as callables
|
||||
✓ it can tap into the test
|
||||
✓ it can defer a method until after test setup
|
||||
✓ it can pass datasets into the expect callables with (1, 2, 3)
|
||||
✓ it can pass datasets into the tap callable with (1, 2, 3)
|
||||
✓ it can pass datasets into the defer callable with (1, 2, 3)
|
||||
✓ it can pass shared datasets into callables with (1)
|
||||
✓ it can pass shared datasets into callables with (2)
|
||||
|
||||
@ -578,7 +619,7 @@
|
||||
|
||||
WARN Tests\Features\Skip
|
||||
✓ it do not skips
|
||||
- it skips with truthy
|
||||
- it skips with truthy → 1
|
||||
- it skips with truthy condition by default
|
||||
- it skips with message → skipped because bar
|
||||
- it skips with truthy closure condition
|
||||
@ -592,6 +633,10 @@
|
||||
✓ 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
|
||||
|
||||
@ -618,14 +663,14 @@
|
||||
PASS Tests\PHPUnit\CustomAffixes\ATestWithSpaces
|
||||
✓ it runs file names like `A Test With Spaces.php`
|
||||
|
||||
PASS Tests\PHPUnit\CustomAffixes\AdditionalFileExtensionspec
|
||||
PASS Tests\PHPUnit\CustomAffixes\AdditionalFileExtension
|
||||
✓ 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\ManyExtensionsclasstest
|
||||
PASS Tests\PHPUnit\CustomAffixes\ManyExtensions
|
||||
✓ it runs file names like `ManyExtensions.class.test.php`
|
||||
|
||||
PASS Tests\PHPUnit\CustomAffixes\TestCaseWithQuotes
|
||||
@ -654,18 +699,14 @@
|
||||
✓ it allows global uses
|
||||
✓ it allows multiple global uses registered in the same path
|
||||
|
||||
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
|
||||
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\Console\Help
|
||||
✓ it outputs the help information when --help is used
|
||||
@ -681,6 +722,9 @@
|
||||
✓ 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
|
||||
@ -708,37 +752,66 @@
|
||||
✓ 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
|
||||
|
||||
PASS Tests\Visual\Help
|
||||
✓ visual snapshot of help command output
|
||||
WARN Tests\Visual\Help
|
||||
- visual snapshot of help command output → Not supported yet.
|
||||
|
||||
PASS Tests\Visual\JUnit
|
||||
✓ it is can successfully call all public methods
|
||||
WARN Tests\Visual\JUnit
|
||||
- it is can successfully call all public methods → Not supported yet.
|
||||
|
||||
PASS Tests\Visual\SingleTestOrDirectory
|
||||
FAIL 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
|
||||
|
||||
PASS Tests\Visual\TeamCity
|
||||
✓ it is can successfully call all public methods
|
||||
WARN Tests\Visual\TeamCity
|
||||
- it is can successfully call all public methods → Not supported yet.
|
||||
|
||||
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
|
||||
PHPUnit\Framework\ExpectationFailedException
|
||||
|
||||
PASS Tests\Features\DependsInheritance
|
||||
✓ it is a test
|
||||
✓ it uses correct parent class
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
Tests: 4 incompleted, 9 skipped, 487 passed
|
||||
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