Skip to content

Instantly share code, notes, and snippets.

@stof
Created April 30, 2013 00:24
Show Gist options
  • Save stof/5485843 to your computer and use it in GitHub Desktop.
Save stof/5485843 to your computer and use it in GitHub Desktop.
phpspec failures on windows
PhpSpec\CodeGenerator\GeneratorManager
13 ✔ uses registered generators to generate code (53ms)
25 ✔ chooses generator by priority
44 ✔ throws exception if no generator found
PhpSpec\CodeGenerator\Generator\ClassGenerator
20 ✔ is a generator
25 ✔ supports class generations
30 ✔ does not support anything else
35 ✔ its priority is 0
40 ✔ generates class from resource and puts it into appropriate folder
66 ✔ uses template provided by templating system if there is one
92 ✔ creates folder for class if needed
107 ✔ asks confirmation if class already exists
PhpSpec\CodeGenerator\Generator\MethodGenerator
20 ✔ is a generator
25 ✔ supports method generations
30 ✔ does not support anything else
35 ✔ its priority is 0
40 ✔ generates class method from resource
PhpSpec\CodeGenerator\Generator\SpecificationGenerator
20 ✔ is a generator
25 ✔ supports specification generations
30 ✔ does not support anything else
35 ✔ its priority is 0
40 ✔ generates spec class from resource and puts it into appropriate folder
66 ✔ uses template provided by templating system if there is one
92 ✔ creates folder for spec if needed
107 ✔ asks confirmation if spec already exists
PhpSpec\CodeGenerator\TemplateRenderer
17 ✔ does not have registered locations by default
22 ✔ has locations setter
28 ✔ provides a method to prepend location
36 ✔ provides a method to append location
44 ✘ normalizes locations
expected [array:3], but got [array:3].
54 ✔ reads existing file from registered location
63 ✔ reads existing file from first registered location
73 ✔ replaces placeholders in template with provided values
84 ✔ can render template from string
92 ✔ returns null if template is not found in any of registered locations
PhpSpec\Event\ExampleEvent
21 ✔ is an event
27 ✔ provides a link to example
32 ✔ provides a link to specification
37 ✔ provides a link to time
42 ✔ provides a link to result
47 ✔ provides a link to exception
PhpSpec\Event\SpecificationEvent
17 ✔ is an event
23 ✔ provides a link to specification
28 ✔ provides a link to time
33 ✔ provides a link to result
PhpSpec\Event\SuiteEvent
17 ✔ is an event
23 ✔ provides a link to time
28 ✔ provides a link to result
PhpSpec\Exception\Example\NotEqualException
14 ✔ is failure
19 ✔ provides a link to expected
24 ✔ provides a link to actual
PhpSpec\Exception\Exception
11 ✔ extends basic exception
16 ✔ could have a cause
PhpSpec\Exception\Fracture\ClassNotFoundException
14 ✔ is fracture
19 ✔ provides a link to classname
PhpSpec\Exception\Fracture\InterfaceNotImplementedException
14 ✔ is fracture
19 ✔ provides a link to subject
24 ✔ provides a link to interface
PhpSpec\Exception\Fracture\MethodNotFoundException
14 ✔ is fracture
19 ✔ provides a link to subject
24 ✔ provides a link to methodName
29 ✔ provides a link to arguments
PhpSpec\Exception\Fracture\PropertyNotFoundException
14 ✔ is fracture
19 ✔ provides a link to subject
24 ✔ provides a link to property
PhpSpec\Formatter\Presenter\Differ\ArrayEngine
10 ✔ is a diff engine
15 ✔ supports arrays
20 ✔ does not support anything else
PhpSpec\Formatter\Presenter\Differ\Differ
10 ✔ chooses proper engine based on values
29 ✔ returns null if engine not found
PhpSpec\Formatter\Presenter\Differ\StringEngine
9 ✔ is a diff engine
14 ✔ supports string values
19 ✘ calculates strings diff
expected ""..., but got ""....
PhpSpec\Formatter\Presenter\StringPresenter
15 ✔ presents short string in quotes
20 ✔ presents long string in quotes but trimmed
26 ✔ presents only first line of multiline string
31 ✔ presents simple type as typed value
37 ✔ presents object as classname
42 ✔ presents array as elements count
47 ✔ presents boolean as string
53 ✔ presents closure as type
58 ✔ presents exception as class with constructor
64 ✔ presents string as string
PhpSpec\Formatter\Presenter\TaggedPresenter
15 ✔ wraps value into tags
20 ✔ wraps string into tags
PhpSpec\Locator\PSR0\PSR0Locator
21 ✔ is a locator
26 ✔ its priority is zero
31 ✔ generates fullSrcPath from srcPath plus namespace
40 ✔ generates proper fullSrcPath even from empty namespace
47 ✔ generates fullSpecPath from specPath plus namespace
56 ✔ generates proper fullSpecPath even from empty src namespace
65 ✔ stores srcNamespace it was constructed with
72 ✔ trims srcNamespace during construction
79 ✔ supports empty namespace argument
86 ✔ generates specNamespace using srcNamespace and specPrefix
93 ✔ trims specNamespace during construction
100 ✔ generates proper specNamespace for empty srcNamespace
107 ✘ finds all resources from tracked specPath
expected "spec\Some\ClassSpec", but got "spec\Some/ClassSpec".
121 ✔ returns empty array if tracked specPath does not exist
132 ✔ supports folder queries in srcPath
139 ✔ supports srcPath queries
146 ✔ supports file queries in srcPath
155 ✔ supports folder queries in specPath
162 ✔ supports specPath queries
169 ✔ supports file queries in specPath
178 ✔ does not support any other queries
185 ! finds spec resources via srcPath
method call:
Double\PhpSpec\Util\Filesystem\P517f0eea9277e->pathExists("C:\wamp\www\Symfony2\phpspec\spec\PhpSpec\")
was not expected.
Expected calls are:
- pathExists(exact("C:\wamp\www\Symfony2\phpspec/spec/PhpSpec/"))
198 ! finds spec resources via fullSrcPath
method call:
Double\PhpSpec\Util\Filesystem\P517f0eea9530b->pathExists("C:\wamp\www\Symfony2\phpspec\spec\PhpSpec\Console"...)
was not expected.
Expected calls are:
- pathExists(exact("C:\wamp\www\Symfony2\phpspec/spec/PhpSpec/Console"...))
211 ! finds spec resources via specPath
method call:
Double\PhpSpec\Util\Filesystem\P517f0eea972c3->pathExists("C:\wamp\www\Symfony2\phpspec\spec\PhpSpec\Runner\"...)
was not expected.
Expected calls are:
- pathExists(exact("C:\wamp\www\Symfony2\phpspec/spec/PhpSpec/Runner/"...))
224 ! finds single spec via srcPath
method call:
Double\PhpSpec\Util\Filesystem\P517f0eea99573->pathExists("C:\wamp\www\Symfony2\phpspec\spec\PhpSpec\Service"...)
was not expected.
Expected calls are:
- pathExists(exact("C:\wamp\www\Symfony2\phpspec/spec/PhpSpec/Service"...))
236 ! finds single spec via specPath
method call:
Double\PhpSpec\Util\Filesystem\P517f0eea9b468->pathExists("C:\wamp\www\Symfony2\phpspec\spec\PhpSpec\Service"...)
was not expected.
Expected calls are:
- pathExists(exact("C:\wamp\www\Symfony2\phpspec/spec/PhpSpec/Service"...))
248 ✔ returns empty array if nothing found
258 ✔ supports classes from srcNamespace
265 ✔ supports backslashed classes from srcNamespace
272 ✔ supports classes from specNamespace
279 ✔ supports backslashed classes from specNamespace
286 ✔ supports any class if srcNamespace is empty
293 ✔ does not support anything else
300 ✔ creates resource from src class
310 ✔ creates resource from backslashed src class
320 ✔ creates resource from spec class
330 ✔ creates resource from backslashed spec class
340 ✔ creates resource from src class even if srcNamespace is empty
PhpSpec\Locator\PSR0\PSR0Resource
16 ✔ uses last segment as name
21 ✔ uses last segment plus Spec suffix as specName
26 ✔ is a resource
31 ✘ generates src filename from provided parts using locator
expected "/local/usr/lib/config.php"..., but got "/local/usr\lib\config.php"....
38 ✔ generates src namespace from provided parts using locator
45 ✔ generates proper src namespace even if there is only one part
53 ✔ generates src classname from provided parts using locator
60 ✔ generates proper src classname for empty locator namespace
67 ✘ generates spec filename from provided parts using locator
expected "/local/spec/usr/lib/confi"..., but got "/local/spec/usr\lib\confi"....
74 ✔ generates spec namespace from provided parts using locator
81 ✔ generates proper spec namespace even if there is only one part
89 ✔ generates spec classname from provided parts using locator
PhpSpec\Locator\ResourceManager
18 ✔ locates resources using all registered locators
33 ✔ locates all locators resources if query string is empty
46 ✔ returns empty array if registered locators do not support query
56 ✔ creates resource from classname using locator with highest priority
71 ✔ throws an exception if locators do not support classname
PhpSpec\Matcher\ArrayContainMatcher
21 ✔ is a matcher
26 ✔ responds to contain
31 ✔ matches array with specified value
36 ✔ does not match array without specified value
41 ✔ matches array without specified value
PhpSpec\Matcher\ArrayCountMatcher
23 ✔ is a matcher
28 ✔ responds to haveCount
33 ✔ matches proper array count
38 ✔ matches proper countable count
45 ✔ does not match wrong array count
51 ✔ does not match proper countable count
59 ✔ mismatches wrong array count
64 ✔ mismatches wrong countable count
PhpSpec\Matcher\ArrayKeyMatcher
23 ✔ is a matcher
28 ✔ responds to haveKey
33 ✔ matches array with specified key
38 ✔ matches ArrayObject with provided offset
45 ✔ does not match array without specified key
50 ✔ does not match ArrayObject without provided offset
57 ✔ matches array without specified key
62 ✔ matches ArrayObject without specified offset
PhpSpec\Matcher\CallbackMatcher
21 ✔ is a matcher
26 ✔ supports same alias it was constructed with
31 ✔ does not support anything else
36 ✔ matches if callback returns true
43 ✔ does not match if callback returns false
PhpSpec\Matcher\ComparisonMatcher
20 ✔ is a matcher
25 ✔ responds to beLike
30 ✔ matches empty string using comparison operator
35 ✔ matches not empty string using comparison operator
40 ✔ matches empty string with emptish values using comparison operator
45 ✔ matches zero with emptish values using comparison operator
50 ✔ matches null with emptish values using comparison operator
55 ✔ matches false with emptish values using comparison operator
60 ✔ does not match non empty different value
66 ✔ mismatches empty string using comparison operator
72 ✔ mismatches not empty string using comparison operator
78 ✔ mismatches empty string with emptish values using comparison operator
84 ✔ mismatches zero with emptish values using comparison operator
90 ✔ mismatches null with emptish values using comparison operator
96 ✔ mismatches false with emptish values using comparison operator
102 ✔ mismatches on non empty different value
PhpSpec\Matcher\IdentityMatcher
20 ✔ is a matcher
25 ✔ responds to return
30 ✔ responds to be
35 ✔ responds to equal
40 ✔ responds to beEqualTo
45 ✔ matches empty strings
50 ✔ matches not empty strings
55 ✔ does not matches empty string with emptish values
61 ✔ does not matches zero with emptish values
67 ✔ does not matches null with emptish values
73 ✔ does not matches false with emptish values
79 ✔ does not matches non empty different value
85 ✔ mismatches empty string
91 ✔ mismatches not empty string
97 ✔ mismatches empty string with emptish values
102 ✔ mismatches zero with emptish values using identity operator
107 ✔ mismatches null with emptish values using identity operator
112 ✔ mismatches false with emptish values using identity operator
117 ✔ mismatches on non empty different value
PhpSpec\Matcher\ObjectStateMatcher
20 ✔ is a matcher
25 ✔ infers matcher alias name from methods prefixed with is
32 ✔ throws exception if checker method not found
40 ✔ matches if state checker returns true
47 ✔ does not match if state checker returns false
55 ✔ infers matcher alias name from methods prefixed with has
62 ✔ throws exception if has checker method not found
70 ✔ matches if has checker returns true
79 ✔ does not match if has state checker returns false
PhpSpec\Matcher\StringEndMatcher
19 ✔ is a matcher
24 ✔ supports endWith keyword and string subject
29 ✔ does not support anything else
34 ✔ matches strings that start with specified prefix
39 ✔ does not match strings that do not start with specified prefix
44 ✔ matches strings that do not start with specified prefix
49 ✔ does not match strings that do start with specified prefix
PhpSpec\Matcher\StringRegexMatcher
19 ✔ is a matcher
24 ✔ supports match keyword and string subject
29 ✔ does not support anything else
34 ✔ matches strings that match specified regex
39 ✔ does not match strings that do not match specified regex
44 ✔ matches strings that do not match specified regex
49 ✔ does not match strings that do match specified regex
PhpSpec\Matcher\StringStartMatcher
19 ✔ is a matcher
24 ✔ supports startWith keyword and string subject
29 ✔ does not support anything else
34 ✔ matches strings that start with specified prefix
39 ✔ does not match strings that do not start with specified prefix
44 ✔ matches strings that do not start with specified prefix
49 ✔ does not match strings that do start with specified prefix
PhpSpec\Matcher\ThrowMatcher
30 ✔ supports the throw alias for object and exception name
35 ✔ accepts a method during which an exception should be thrown
42 ✔ accepts a method during which an exception should not be thrown
PhpSpec\Matcher\TypeMatcher
23 ✔ is a matcher
28 ✔ responds to beAnInstanceOf
33 ✔ responds to returnAnInstanceOf
38 ✔ responds to haveType
43 ✔ matches subclass instance
49 ✔ matches interface instance
55 ✔ does not match wrong class
62 ✔ does not match wrong interface
69 ✔ mismatches matches wrong class
74 ✔ mismatches matches wrong interface
PhpSpec\Runner\CollaboratorManager
20 ✔ stores collaborators by name
26 ✔ provides a method to check if collaborator exists
34 ✔ throws CollaboratorException on attempt to get unexisting collaborator
40 ✔ creates function arguments for ReflectionFunction
55 ✔ creates null function arguments for ReflectionFunction if no collaborator found
PhpSpec\Runner\ExampleRunner
27 ✔ executes example in newly created context
44 ✔ dispatches ExampleEvent with pending status if example is pending
63 ✔ dispatches ExampleEvent with failed status if matcher throws exception
87 ✔ dispatches ExampleEvent with failed status if example throws exception
110 ✔ runs all supported maintainers before and after each example
PhpSpec\Runner\MatcherManager
18 ✔ searches in registered matchers
27 ✔ searches matchers by their priority
42 ✔ throws MatcherNotFoundException if matcher not found
PhpSpec\Runner\SpecificationRunner
21 ✔ passes each specification example to ExampleRunner
34 ✔ returns examples max resultCode
47 ✔ returns 0 resultCode if no examples found
54 ✔ dispatches SpecificationEvent before and after examples run
PhpSpec\ServiceContainer
9 ✔ stores parameters
15 ✔ returns null value for unexisting parameter
20 ✔ returns custom default for unexisting parameter if provided
25 ✔ stores services
31 ✔ throws exception when trying to get unexisting service
36 ✔ evaluates factory function set as service
48 ✔ evaluates factory function only once for shared services
57 ✔ provides a way to retrieve services by prefix
66 ✔ provides a way to remove service by key
75 ✔ supports custom service configurators
---- failed examples
PhpSpec\CodeGenerator\TemplateRenderer
44 ✘ normalizes locations
expected [array:3], but got [array:3].
PhpSpec\Formatter\Presenter\Differ\StringEngine
19 ✘ calculates strings diff
expected ""..., but got ""....
PhpSpec\Locator\PSR0\PSR0Locator
107 ✘ finds all resources from tracked specPath
expected "spec\Some\ClassSpec", but got "spec\Some/ClassSpec".
PhpSpec\Locator\PSR0\PSR0Resource
31 ✘ generates src filename from provided parts using locator
expected "/local/usr/lib/config.php"..., but got "/local/usr\lib\config.php"....
PhpSpec\Locator\PSR0\PSR0Resource
67 ✘ generates spec filename from provided parts using locator
expected "/local/spec/usr/lib/confi"..., but got "/local/spec/usr\lib\confi"....
---- broken examples
PhpSpec\Locator\PSR0\PSR0Locator
185 ! finds spec resources via srcPath
method call:
Double\PhpSpec\Util\Filesystem\P517f0eea9277e->pathExists("C:\wamp\www\Symfony2\phpspec\spec\PhpSpec\")
was not expected.
Expected calls are:
- pathExists(exact("C:\wamp\www\Symfony2\phpspec/spec/PhpSpec/"))
PhpSpec\Locator\PSR0\PSR0Locator
198 ! finds spec resources via fullSrcPath
method call:
Double\PhpSpec\Util\Filesystem\P517f0eea9530b->pathExists("C:\wamp\www\Symfony2\phpspec\spec\PhpSpec\Console"...)
was not expected.
Expected calls are:
- pathExists(exact("C:\wamp\www\Symfony2\phpspec/spec/PhpSpec/Console"...))
PhpSpec\Locator\PSR0\PSR0Locator
211 ! finds spec resources via specPath
method call:
Double\PhpSpec\Util\Filesystem\P517f0eea972c3->pathExists("C:\wamp\www\Symfony2\phpspec\spec\PhpSpec\Runner\"...)
was not expected.
Expected calls are:
- pathExists(exact("C:\wamp\www\Symfony2\phpspec/spec/PhpSpec/Runner/"...))
PhpSpec\Locator\PSR0\PSR0Locator
224 ! finds single spec via srcPath
method call:
Double\PhpSpec\Util\Filesystem\P517f0eea99573->pathExists("C:\wamp\www\Symfony2\phpspec\spec\PhpSpec\Service"...)
was not expected.
Expected calls are:
- pathExists(exact("C:\wamp\www\Symfony2\phpspec/spec/PhpSpec/Service"...))
PhpSpec\Locator\PSR0\PSR0Locator
236 ! finds single spec via specPath
method call:
Double\PhpSpec\Util\Filesystem\P517f0eea9b468->pathExists("C:\wamp\www\Symfony2\phpspec\spec\PhpSpec\Service"...)
was not expected.
Expected calls are:
- pathExists(exact("C:\wamp\www\Symfony2\phpspec/spec/PhpSpec/Service"...))
270 examples (260 passed, 5 failed, 5 broken)
1235ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment