Skip to content

Commit

Permalink
Merge f49c611 into c3fc05f
Browse files Browse the repository at this point in the history
  • Loading branch information
flashios09 committed Dec 5, 2019
2 parents c3fc05f + f49c611 commit 2593400
Show file tree
Hide file tree
Showing 8 changed files with 1,124 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/Suite/Cli/Kahlan.spec.php
Expand Up @@ -159,7 +159,7 @@
Reporter Options:
--reporter=<name>[:<output_file>] The name of the text reporter to use, the built-in text reporters
are `'dot'`, `'bar'`, `'json'`, `'tap'` & `'verbose'` (default: `'dot'`).
are `'dot'`, `'bar'`, `'json'`, `'tap'`, `'tree'` & `'verbose'` (default: `'dot'`).
You can optionally redirect the reporter output to a file by using the
colon syntax (multiple --reporter options are also supported).
Expand Down
42 changes: 42 additions & 0 deletions spec/Suite/Reporter/Console/end.txt
@@ -0,0 +1,42 @@

Pending specification: 1
./spec/UnionTypes.spec.php, line 119

Excluded specification: 1
./spec/UnionTypes.spec.php, line 126

Skipped specification: 1
./spec/UnionTypes.spec.php, line 134

Failure Tree(2):
├── UnionTypes
│ ├── ::assertTypes(string ...$types): void
│ │ ├── UnionTypes::assertTypes('NULL')
│ │ ✖ it should throw InvalidUnionTypeException `NULL`, use `null` instead
expect->toBe() failed in `./spec/UnionTypes.spec.php` line 125

It expect actual to be identical to expected (===).

actual:
(string) "string"
expected:
(NULL) null

├── UnionTypes
│ ├── ::assertTypes(string ...$types): void
│ │ ├── UnionTypes::assertTypes('integer')
│ │ ✖ it should throw InvalidUnionTypeException `integer`, use `int` instead
an uncaught exception has been thrown in `./vendor/kahlan/kahlan/src/Matcher/ToBe.php` line 13

message:`Kahlan\Spec\Suite\Reporter\Coverage\Exception` Code(0) with message "Too few arguments to function Kahlan\\Matcher\\ToBe::match(), 1 passed and exactly 2 expected"

Kahlan\Matcher\ToBe::match() - ./vendor/kahlan/kahlan/src/Matcher/ToBe.php, line 13
Kahlan\Expectation::_spin() - ./vendor/kahlan/kahlan/src/Expectation.php, line 212
Kahlan\Expectation::__call() - ./spec/UnionTypes.spec.php, line 130


Expectations : 3 Executed
Specifications : 1 Pending, 1 Excluded, 1 Skipped

Passed 1 of 3 FAIL (FAILURE: 1, EXCEPTION: 1) in 0.040 seconds (using 2MB)

6 changes: 6 additions & 0 deletions spec/Suite/Reporter/Console/specEnd.txt
@@ -0,0 +1,6 @@
✓ it should throw InvalidUnionTypeException `NULL`, use `null` instead
✓ it should throw InvalidUnionTypeException `integer`, use `int` instead
✓ it should return 'int'
✓ it should return 'float'
✖ it should return 'float'
✖ it should return 'Cake\ORM\Table'
12 changes: 12 additions & 0 deletions spec/Suite/Reporter/Console/start.txt
@@ -0,0 +1,12 @@
_ _
/\ /\__ _| |__ | | __ _ _ __
/ //_/ _` | '_ \| |/ _` | '_ \
/ __ \ (_| | | | | | (_| | | | |
\/ \/\__,_|_| |_|_|\__,_|_| |_|

The PHP Test Framework for Freedom, Truth and Justice.

src directory : /Volumes/Data/Git/github/kahlan/src
spec directory : /Volumes/Data/Git/github/kahlan/spec

Spec Tree:
5 changes: 5 additions & 0 deletions spec/Suite/Reporter/Console/suiteStart.txt
@@ -0,0 +1,5 @@
│ ├── ::assertTypes(string ...$types): void
│ │ ├── UnionTypes::assertTypes('NULL')
│ │ ├── UnionTypes::assertTypes('integer')
│ ├── ::getType(mixed $value): string
│ │ ├── UnionTypes::getType(1)

0 comments on commit 2593400

Please sign in to comment.