Mock Version: 1.4.21 Mock Version: 1.4.21 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/php-phpspec.spec'], chrootPath='/var/lib/mock/f32-build-18395917-1308030/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=201600uid=1000gid=425user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/php-phpspec.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1574985600 Wrote: /builddir/build/SRPMS/php-phpspec-6.1.0-1.fc32.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/php-phpspec.spec'], chrootPath='/var/lib/mock/f32-build-18395917-1308030/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=201600uid=1000gid=425user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/php-phpspec.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1574985600 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.2eBDo2 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf phpspec-8004e609e4d365555a85617c36d30127e3233517 + /usr/bin/gzip -dc /builddir/build/SOURCES/php-phpspec-6.1.0-8004e60.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd phpspec-8004e609e4d365555a85617c36d30127e3233517 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . Patch #0 (phpspec-4-rpm.patch): + echo 'Patch #0 (phpspec-4-rpm.patch):' + /usr/bin/patch --no-backup-if-mismatch -p0 -b --suffix .rpm --fuzz=0 patching file ./bin/phpspec + sed -e s/@SYMFONY@/Symfony4/ /builddir/build/SOURCES/phpspec-autoload.php + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.GvBus6 + umask 022 + cd /builddir/build/BUILD + cd phpspec-8004e609e4d365555a85617c36d30127e3233517 + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.kbjvy6 + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/php-phpspec-6.1.0-1.fc32.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/php-phpspec-6.1.0-1.fc32.noarch ++ dirname /builddir/build/BUILDROOT/php-phpspec-6.1.0-1.fc32.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/php-phpspec-6.1.0-1.fc32.noarch + cd phpspec-8004e609e4d365555a85617c36d30127e3233517 + mkdir -p /builddir/build/BUILDROOT/php-phpspec-6.1.0-1.fc32.noarch/usr/share/php + cp -pr src/PhpSpec /builddir/build/BUILDROOT/php-phpspec-6.1.0-1.fc32.noarch/usr/share/php/PhpSpec + install -Dpm755 bin/phpspec /builddir/build/BUILDROOT/php-phpspec-6.1.0-1.fc32.noarch/usr/bin/phpspec + /usr/lib/rpm/find-debuginfo.sh -j6 --strict-build-id -m -i --build-id-seed 6.1.0-1.fc32 --unique-debug-suffix -6.1.0-1.fc32.noarch --unique-debug-src-base php-phpspec-6.1.0-1.fc32.noarch --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/phpspec-8004e609e4d365555a85617c36d30127e3233517 + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/redhat/brp-python-bytecompile /usr/bin/python 1 0 + /usr/lib/rpm/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.mDjsJ4 + umask 022 + cd /builddir/build/BUILD + cd phpspec-8004e609e4d365555a85617c36d30127e3233517 + export LANG=C.UTF-8 + LANG=C.UTF-8 + rm spec/PhpSpec/Message/CurrentExampleTrackerSpec.php + rm spec/PhpSpec/NamespaceProvider/ComposerPsrNamespaceProviderSpec.php + sed -e s/it_compare_array_of_objects_to_and_displays_its_properties/skipit1/ -i spec/PhpSpec/Formatter/Presenter/Differ/ArrayEngineSpec.php + for cmd in php php71 php72 php73 php74 + which php /usr/bin/php + php -d memory_limit=1G -d include_path=.:/builddir/build/BUILDROOT/php-phpspec-6.1.0-1.fc32.noarch/usr/share/php bin/phpspec run --format pretty --verbose --no-ansi PhpSpec\CodeAnalysis\MagicAwareAccessInspector 15 ✔ should be an access inspector 20 ✔ should detect a magic getter if no value is given 25 ✔ should detect a magic setter if a value is given 30 ✔ should detect a magic call method 35 ✔ should not detect a getter if there is no magic getter and wrapped inspector finds none 42 ✔ should detect a getter if there is no magic getter but wrapped inspector finds one 49 ✔ should not detect a setter if there is no magic setter and wrapped inspector finds none 56 ✔ should detect a setter if there is no magic setter but wrapped inspector finds one 63 ✔ should detect a method if there is no magic caller and wrapped inspector finds none 70 ✔ should detect a method if there is no magic caller but wrapped inspector finds one PhpSpec\CodeAnalysis\StaticRejectingNamespaceResolver 16 ✔ is initializable 21 ✔ delegates analysis to wrapped resolver 28 ✔ delegates resolution to wrapped resolver 35 ✔ does not allow resolution of non object types PhpSpec\CodeAnalysis\TokenizedNamespaceResolver 9 ✔ is initializable 14 ✔ resolves types outside of namespaces 28 ✔ resolves types from current namespace 45 ✔ resolves types with use statements 64 ✔ resolves types with use aliases 83 ✔ resolves types with partial use statements 106 ✔ resolves types from grouped use statements PhpSpec\CodeAnalysis\TokenizedTypeHintRewriter 20 ✔ is a typehint rewriter 29 ✔ leaves alone specs with no typehints 54 ✔ removes typehints from single argument methods 79 ✔ does not remove typehints in methods 112 ✔ removes typehints for multiple arguments in methods 137 ✔ indexes typehints that are removed 161 ✔ indexes invalid typehints 187 ✔ preserves line numbers 220 ✔ do not remove typehints of non spec classes PhpSpec\CodeAnalysis\VisibilityAccessInspector 9 ✔ should be an access inspector 14 ✔ should reject an object if the property does not exist 20 ✔ should reject a private property 26 ✔ should detect a public property 32 ✔ should reject an object if a method does not exist 37 ✔ should reject a private method 42 ✔ should detect a public method PhpSpec\CodeGenerator\Generator\ClassGenerator 21 ✔ is a generator 26 ✔ supports class generation 31 ✔ does not support anything else 36 ✔ its priority is 0 41 ✔ generates class from resource and puts it into appropriate folder 66 ✔ uses template provided by templating system if there is one 91 ✔ creates folder for class if needed 107 ✔ asks confirmation if class already exists 123 ✔ records that class was created in executioncontext PhpSpec\CodeGenerator\Generator\ConfirmingGenerator 17 ✔ is a Generator 22 ✔ supports the same generator as its parent 29 ✔ has the same priority as its parent 36 ✔ does not call the parent generate method if the user answers no 47 ✔ calls the parent generate method if the user answers yes PhpSpec\CodeGenerator\Generator\MethodGenerator 21 ✔ is a generator 26 ✔ supports method generation 31 ✔ does not support anything else 36 ✔ its priority is 0 41 ✔ generates class method from resource PhpSpec\CodeGenerator\Generator\NamedConstructorGenerator 20 ✔ is a generator 25 ✔ supports static constructor generation 30 ✔ does not support anything else 35 ✔ its priority is 0 40 ✔ generates static constructor method from resource PhpSpec\CodeGenerator\Generator\NewFileNotifyingGenerator 27 ✔ is a code generator 32 ✔ should proxy the support call to the decorated object 38 ✔ should proxy the priority call to the decorated object 44 ✔ should proxy the generate call to the decorated object 55 ✔ should dispatch an event when a file is created 69 ✔ should dispatch an event with the spec path when a spec is created 83 ✔ should check that the file was created 98 ✔ should not dispatch an event if the file was not created 111 ✔ should not dispatch an event if the file already existed PhpSpec\CodeGenerator\Generator\OneTimeGenerator 16 ✔ is a Generator 21 ✔ supports the same generator as its parent 28 ✔ has the same priority as its parent 35 ✔ calls the parent generate method just once for the same classname 45 ✔ calls the parent generate method once per each classname PhpSpec\CodeGenerator\Generator\ReturnConstantGenerator 18 ✔ is a generator 23 ✔ supports returnConstant generation 28 ✔ does not support anything else 33 ✔ its priority is 0 PhpSpec\CodeGenerator\Generator\SpecificationGenerator 21 ✔ is a generator 26 ✔ supports specification generations 31 ✔ does not support anything else 36 ✔ its priority is 0 41 ✔ generates spec class from resource and puts it into appropriate folder 69 ✔ uses template provided by templating system if there is one 97 ✔ creates folder for spec if needed 114 ✔ asks confirmation if spec already exists PhpSpec\CodeGenerator\Generator\ValidateClassNameSpecificationGenerator 21 ✔ is initializable 26 ✔ supports generation when original generator supports it 35 ✔ does not support generation when original generator doesnt 44 ✔ delegates generation to original generator for valid class name 58 ✔ prints error and skips generation for invalid class name PhpSpec\CodeGenerator\GeneratorManager 12 ✔ uses registered generators to generate code 23 ✔ chooses generator by priority 41 ✔ throws exception if no generator found PhpSpec\CodeGenerator\TemplateRenderer 16 ✔ does not have registered locations by default 21 ✔ has locations setter 27 ✔ provides a method to prepend location 35 ✔ provides a method to append location 43 ✔ normalizes locations 53 ✔ reads existing file from registered location 62 ✔ reads existing file from first registered location 74 ✔ replaces placeholders in template with provided values 85 ✔ can render template from string 93 ✔ returns empty string if template is not found in any registered locations PhpSpec\CodeGenerator\Writer\TokenizedCodeWriter 16 ✔ should write the content after the last method 25 ✔ should write the content before the first method 34 ✔ should write a method after another method 43 ✔ should handle no methods when writing method at end 52 ✔ should handle no methods when writing method at start 61 ✔ should throw an exception if a specific method is not found 70 ✔ should generate a method in a class with a string containing braces PhpSpec\Config\OptionsConfig 10 ✔ says rerun is enabled when setting is true 17 ✔ says rerun is not enabled when setting is false 24 ✔ says faking is enabled when setting is true 31 ✔ says faking is not enabled when setting is false 38 ✔ says bootstrap path is false when setting is false 45 ✔ returns bootstrap path when one is specified 52 ✔ returns verbose when setting is true 59 ✔ returns verbose when setting is false PhpSpec\Console\Application 14 ✔ is initializable PhpSpec\Console\ConsoleIO 27 ✔ has io interface 32 ✔ is code generation ready if no input config says otherwise 37 ✔ is not code generation ready if input is not interactive 44 ✔ is not code generation ready if command line option is set 51 ✔ is not code generation ready if config option is set 58 ✔ will not stop on failure if no input config says otherwise 63 ✔ will stop on failure if command line option is set 70 ✔ will stop on failure if config option is set 77 ✔ will enable rerunning if command line option is not set and config doesnt disallow 85 ✔ will disable rerunning if command line option is set 93 ✔ will disable rerunning if config option is set 101 ✔ will disable faking if command line option and config flag are not set 109 ✔ will enable faking if command line option is set 117 ✔ will enable faking if config flag is set 125 ✔ will report no bootstrap when there is none 133 ✔ will report bootstrap path when one is in the config file 141 ✔ will report bootstrap path when one is specified at the command line 149 ✔ will report bootstrap path from cli when different paths are specified in config and cli 157 ✔ defaults the block width 162 ✔ sets the block width to the minimum when terminal is narrow 169 ✔ sets the block width to the maximum when terminal is very wide 176 ✔ sets the block width to narrower than the terminal width when terminal is in range 183 ✔ writes a message about broken code 193 ✔ wraps long broken message 204 ✔ indents and wraps long broken message 215 ✔ will report verbose if config flag is set and console setted to quiet 223 ✔ will report verbose if config flag is set and console setted to normal 233 ✔ will not report verbose if config flag is not set and console setted to quiet 243 ✔ will not report verbose if config flag is not set and console setted to normal 253 ✔ will report verbose if config flag is not set but console setted to verbose 263 ✔ will report verbose if config flag is not set but console setted to very verbose 273 ✔ will report verbose if config flag is not set but console setted to debug PhpSpec\Console\Provider\NamespacesAutocompleteProvider 18 ✔ returns empty array if nothing found 27 ✔ returns namespaces from php files PhpSpec\Console\ResultConverter 10 ✔ converts passed result code into 0 15 ✔ converts skipped result code into 0 20 ✔ converts pending result code into 1 25 ✔ converts failed result code into 1 30 ✔ converts broken result code into 1 PhpSpec\Event\ExampleEvent 23 ✔ is an event 29 ✔ provides a link to example 34 ✔ provides a link to specification 39 ✔ provides a link to suite 44 ✔ provides a link to time 49 ✔ provides a link to result 54 ✔ provides a link to exception 59 ✔ initializes a default result 66 ✔ initializes a default time PhpSpec\Event\ExpectationEvent 26 ✔ is an event 32 ✔ provides a link to matcher 37 ✔ provides a link to example 42 ✔ provides a link to specification 47 ✔ provides a link to suite 52 ✔ provides a link to subject 57 ✔ provides a link to method 62 ✔ provides a link to arguments 67 ✔ provides a link to result 72 ✔ provides a link to exception 77 ✔ initializes a default result PhpSpec\Event\FileCreationEvent 16 ✔ should be a symfony event 21 ✔ should be a phpspec event 26 ✔ should return the created file path PhpSpec\Event\MethodCallEvent 24 ✔ is an event 30 ✔ provides a link to example 35 ✔ provides a link to specification 40 ✔ provides a link to suite 45 ✔ provides a link to subject 50 ✔ provides a link to method 55 ✔ provides a link to arguments 60 ✔ provides a link to return value PhpSpec\Event\SpecificationEvent 20 ✔ is an event 26 ✔ provides a link to suite 31 ✔ provides a link to specification 36 ✔ provides a link to time 41 ✔ provides a link to result 46 ✔ initializes a default result 53 ✔ initializes a default time PhpSpec\Event\SuiteEvent 17 ✔ is an event 23 ✔ provides a link to suite 28 ✔ provides a link to time 33 ✔ provides a link to result 38 ✔ defaults to saying suite is not worth rerunning 43 ✔ can be told that the suite is worth rerunning 49 ✔ can be told that the suite is no longer worth rerunning 57 ✔ initializes a default result 64 ✔ initializes a default time PhpSpec\Exception\ErrorException 16 ✔ is an exception 21 ✔ its message is the same as the errors 26 ✔ its code is the same as the errors 31 ✔ its previous is the error 36 ✔ its line is the same as the errors PhpSpec\Exception\Example\NotEqualException 14 ✔ is failure 19 ✔ provides a link to expected 24 ✔ provides a link to actual PhpSpec\Exception\Example\StopOnFailureException 14 ✔ is an example exception 19 ✔ has a the result of the last spec PhpSpec\Exception\ExceptionFactory 25 ✔ creates a named constructor not found exception 40 ✔ creates a method not found exception 55 ✔ creates a method not visible exception 71 ✔ creates a class not found exception 84 ✔ creates a property not found exception 98 ✔ creates a calling method on non object exception 109 ✔ creates a setting property on non object exception 120 ✔ creates an accessing property on non object exception 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\MethodNotVisibleException 14 ✔ is fracture 19 ✔ provides a link to subject 24 ✔ provides a link to methodName 29 ✔ provides a link to arguments PhpSpec\Exception\Fracture\NamedConstructorNotFoundException 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\Exception\Wrapper\InvalidCollaboratorTypeException 15 ✔ is initializable 21 ✔ generates correct message based on function and parameter 34 ✔ sets cause PhpSpec\Factory\ObjectFactory 23 ✔ throws exception when factory static method returns non object 38 ✔ throws exception when factory method returns non object 53 ✔ throws exception when closure returns null 64 ✔ throws exception when factory function returns non object 78 ✔ does not throw exception when factory static method returns non object 87 ✔ does not throw exception when factory method returns non object 96 ✔ does not throw exception when closure returns null 105 ✔ does not throw exception when factory function returns non object PhpSpec\Formatter\BasicFormatter 20 ✔ is an event subscriber 25 ✔ returns a list of subscribed events PhpSpec\Formatter\DotFormatter 43 ✔ is a console formatter 48 ✔ outputs a dot for a passed example 61 ✔ outputs a p for a pending example 74 ✔ outputs an s for a skipped example 87 ✔ outputs an f for a failed example 100 ✔ outputs a b for a broken example 113 ✔ outputs the progress every 50 examples 133 ✔ outputs exceptions for failed examples 176 ✔ outputs a suite summary PhpSpec\Formatter\Html\HtmlIO PhpSpec\Formatter\Html\ReportFailedItem 28 ✔ writes a fail message for a failing example PhpSpec\Formatter\Html\ReportItemFactory 18 ✔ creates a ReportPassedItem 24 ✔ creates a ReportPendingItem 30 ✔ creates a ReportFailedItem 36 ✔ creates a ReportBrokenItem PhpSpec\Formatter\Html\ReportPassedItem 20 ✔ writes a pass message for a passing example PhpSpec\Formatter\Html\ReportPendingItem 20 ✔ writes a pass message for a passing example PhpSpec\Formatter\Html\Template 16 ✔ renders the string as is 23 ✔ renders a variable 29 ✔ works for many instances of vars 38 ✔ renders a file PhpSpec\Formatter\HtmlFormatter 24 ✔ is an event subscriber 29 ✔ delegates the reporting to the event type line reporter PhpSpec\Formatter\JUnitFormatter 25 ✔ is an event subscriber 30 ✔ stores a testcase node after passed example run 49 ✔ stores a testcase node after broken example run 78 ✔ stores a testcase node after failed example run 107 ✔ stores a testcase node after skipped example run 132 ✔ aggregates testcase nodes and store them after specification run 168 ✔ aggregates testsuite nodes and display them after suite run PhpSpec\Formatter\Presenter\Differ\ArrayEngine 18 ✔ is a diff engine 23 ✔ supports arrays 28 ✔ does not support anything else 33 ✔ compare equal arrays PhpSpec\Formatter\Presenter\Differ\Differ 10 ✔ chooses proper engine based on values 28 ✔ returns null if engine not found 33 ✔ its constructor allows a list of engines PhpSpec\Formatter\Presenter\Differ\ObjectEngine 17 ✔ is a differ engine 22 ✔ does not support scalars 27 ✔ only supports objects 32 ✔ converts objects to string and diffs the result PhpSpec\Formatter\Presenter\Differ\StringEngine 10 ✔ is a diff engine 15 ✔ supports string values 20 ✔ calculates strings diff PhpSpec\Formatter\Presenter\Exception\CallArgumentsPresenter 21 ✔ should return empty string if there are no method prophecies 33 ✔ should return empty string if method prophecies all contain calls 49 ✔ should return empty string if argument counts do not match PhpSpec\Formatter\Presenter\Exception\GenericPhpSpecExceptionPresenter 15 ✔ is a phpspec exception presenter PhpSpec\Formatter\Presenter\Exception\HtmlPhpSpecExceptionPresenter 9 ✔ is a phpspec exception presenter PhpSpec\Formatter\Presenter\Exception\SimpleExceptionElementPresenter 16 ✔ is an exception element presenter 21 ✔ should return a simple exception thrown message 28 ✔ should present a code line 33 ✔ should present a highlighted line unchanged 38 ✔ should present the header of an exception trace unchanged 43 ✔ should present every argument in an exception trace method as a value 52 ✔ should present an exception trace method 61 ✔ should present every argument in an exception trace function as a value 70 ✔ should present an exception trace function PhpSpec\Formatter\Presenter\Exception\SimpleExceptionPresenter 25 ✔ is an exception presenter PhpSpec\Formatter\Presenter\Exception\TaggingExceptionElementPresenter 16 ✔ is an exception element presenter 21 ✔ should tag an exception thrown message 29 ✔ should present a tagged code line 34 ✔ should present a tagged highlighted line 39 ✔ should present a tagged header of an exception trace 44 ✔ should present a tagged exception trace method 55 ✔ should present a tagged exception trace function PhpSpec\Formatter\Presenter\SimplePresenter 27 ✔ is a presenter 32 ✔ returns a string unchanged 38 ✔ should be a proxy for an exception presenter 46 ✔ should be a proxy for a value presenter PhpSpec\Formatter\Presenter\TaggingPresenter 15 ✔ is a presenter 20 ✔ should tag strings 25 ✔ should tag values from the decorated presenter 31 ✔ should return presented exceptions from the decorated presenter unchanged PhpSpec\Formatter\Presenter\Value\ArrayTypePresenter 9 ✔ is a type presenter 14 ✔ should support array values 19 ✔ should present an empty array as a string 24 ✔ should present a populated array as a string PhpSpec\Formatter\Presenter\Value\BaseExceptionTypePresenter 10 ✔ is a type presenter 15 ✔ should support exceptions 20 ✔ should present an exception as a string 26 ✔ should present an error as a string 32 ✔ should present a parse error with file and line number PhpSpec\Formatter\Presenter\Value\BooleanTypePresenter 9 ✔ is a type presenter 14 ✔ should support boolean values 20 ✔ should present a true boolean as a string 25 ✔ should present a false boolean as a string PhpSpec\Formatter\Presenter\Value\CallableTypePresenter 15 ✔ is a type presenter 20 ✔ should support callable values 25 ✔ should present a closure 30 ✔ should present function callable as string 35 ✔ should present a method as string 46 ✔ should present a magic method as string 57 ✔ should present a static method as string 64 ✔ should present a static magic method as string 71 ✔ should present an invokable object as string PhpSpec\Formatter\Presenter\Value\ComposedValuePresenter 11 ✔ is a value presenter 16 ✔ should accept a type presenter 21 ✔ should call supports on value presenters until one returns true 42 ✔ should order presenters by their priority in descending order 60 ✔ should call present on a supporting type presenter 71 ✔ should return the type presenter presented value 83 ✔ returns a default when no type presenters support the value 88 ✔ should present a simple type as typed value PhpSpec\Formatter\Presenter\Value\NullTypePresenter 9 ✔ is a type presenter 14 ✔ should support null values 19 ✔ should present null as a string PhpSpec\Formatter\Presenter\Value\ObjectTypePresenter 9 ✔ is a type presenter 14 ✔ should support object values 19 ✔ should present an object as a string PhpSpec\Formatter\Presenter\Value\QuotingStringTypePresenter 9 ✔ is a string type presenter 14 ✔ should support string values 20 ✔ should present a string as a quoted string PhpSpec\Formatter\Presenter\Value\TruncatingStringTypePresenter 15 ✔ is a string type presenter 20 ✔ should support string values 26 ✔ should pass short values directly to the decorated string type presenter 33 ✔ should return long values truncated 41 ✔ presents only first line of multiline string PhpSpec\Formatter\ProgressFormatter 22 ✔ is an event subscriber 27 ✔ outputs progress as 0 when 0 examples have run 49 ✔ outputs progress as 0 when 0 examples have passed 71 ✔ outputs progress as 100 when 1 of 3 examples have passed 93 ✔ outputs progress as 33 when 3 of 3 examples have run and one passed PhpSpec\Formatter\TapFormatter 22 ✔ is an event subscriber 27 ✔ outputs version on beforesuite event 34 ✔ outputs plan on aftersuite event 47 ✔ outputs progress on afterexample event 69 ✔ outputs failure progress on afterexample event 85 ✔ outputs skip progress on afterexample event 101 ✔ outputs todo progress on afterexample event 117 ✔ outputs broken progress on afterexample event 133 ✔ outputs undefined progress on afterexample event PhpSpec\Listener\ClassNotFoundListener 39 ✔ does not prompt for class generation if no exception was thrown 49 ✔ does not prompt for class generation if non class exception was thrown 60 ✔ prompts for class generation if prophecy classnotfoundexception was thrown and input is interactive 71 ✔ prompts for method generation if phpspec classnotfoundexception was thrown and input is interactive 82 ✔ does not prompt for class generation if input is not interactive PhpSpec\Listener\CollaboratorMethodNotFoundListener 37 ✔ is an event subscriber 42 ✔ listens to afterexample events 50 ✔ does not prompt when no exception is thrown 60 ✔ prompts the user when a prophecy method exception is thrown 73 ✔ does not prompt when wrong exception is thrown 83 ✔ does not prompt when collaborator is not an interface 96 ✔ does not prompt when code generation is disabled 111 ✔ does not prompt if it cannot generate the resource 126 ✔ generates the method signature when user says yes at prompt 142 ✔ marks the suite as being worth rerunning when generation happens 157 ✔ warns if a method name is wrong 175 ✔ prompts and warns when one method name is correct but other reserved PhpSpec\Listener\CollaboratorNotFoundListener 35 ✔ listens to afterexample and aftersuite events 43 ✔ prompts to generate missing collaborator 55 ✔ does not prompt to generate when there was no exception 67 ✔ does not prompt to generate when there was an exception of the wrong type 79 ✔ does not prompt when code generation is disabled 91 ✔ does not prompt when collaborator is in spec namespace 103 ✔ generates interface when prompt is answered with yes 119 ✔ does not generate interface when prompt is answered with no PhpSpec\Listener\CurrentExampleListener 18 ✔ is initializable 23 ✔ should implement event subscriber interface 28 ✔ should call beforeCurrentExample 38 ✔ should call afterCurrentExample 47 ✔ should call afterSuiteEvent PhpSpec\Listener\MethodNotFoundListener 39 ✔ does not prompt for method generation if no exception was thrown 47 ✔ does not prompt for method generation if non methodnotfoundexception was thrown 57 ✔ prompts for method generation if methodnotfoundexception was thrown and input is interactive 74 ✔ does not prompt for method generation if input is not interactive 89 ✔ warns when method name is reserved 102 ✔ prompts and warns when one method name is correct but other reserved PhpSpec\Listener\MethodReturnedNullListener 50 ✔ is an event listener 55 ✔ listens to examples to spot failures 60 ✔ listens to suites to know when to prompt 65 ✔ listens to method calls to see what has failed 70 ✔ does not prompt when wrong type of exception is thrown 82 ✔ does not prompt when actual value is not null 96 ✔ does not prompt when expected value is an object 110 ✔ does not prompt if no method was called beforehand 118 ✔ does not prompt when there is a problem creating the resource 132 ✔ does not prompt when input is not interactive 146 ✔ does not prompt when method is not empty 161 ✔ does not prompt when multiple contradictory examples are found 188 ✔ does not prompt when io has faking disabled 202 ✔ prompts when correct type of exception is thrown 215 ✔ invokes method body generation when prompt is answered yes PhpSpec\Listener\NamedConstructorNotFoundListener 38 ✔ does not prompt for method generation if no exception was thrown 48 ✔ does not prompt for method generation if non namedconstructornotfoundexception was thrown 59 ✔ prompts for method generation if namedconstructornotfoundexception was thrown and input is interactive 75 ✔ does not prompt for method generation if input is not interactive PhpSpec\Listener\RerunListener 17 ✔ subscribes to aftersuite 23 ✔ does not tell the rerunner to rerun if it is not worth doing so 32 ✔ tells the rerunner to rerun if it is worth doing so PhpSpec\Listener\StatisticsCollector 20 ✔ is an event listener 25 ✔ listens to stats generating events 34 ✔ knows no specs have run initially 39 ✔ counts how many specs have run 47 ✔ knows no examples have run initially 52 ✔ counts how many examples have run 60 ✔ logs all example events 71 ✔ logs all example events by type 79 ✔ counts example results by type 95 ✔ returns the worst result as the global result 103 ✔ records how many specs are in the suite PhpSpec\Listener\StopOnFailureListener 18 ✔ is an event subscriber 23 ✔ does not throw any exception when example succeeds 30 ✔ does not throw any exception for unimplemented examples 37 ✔ throws an exception when an example fails and option is set 45 ✔ does not throw an exception when an example fails and option is not set 52 ✔ throws an exception when an example breaks and option is set 60 ✔ does not throw an exception when an example breaks and option is not set PhpSpec\Loader\Node\ExampleNode 19 ✔ provides a link to title 24 ✔ can set a title 32 ✔ provides a link to function 37 ✔ provides a link to specification 43 ✔ is not pending by default 48 ✔ is pending after marked as pending with no args 54 ✔ is pending after marked as pending with true 60 ✔ is not pending after marked as pending with false 66 ✔ returns its line number 73 ✔ returns its line number as zero if constructed with closure PhpSpec\Loader\Node\SpecificationNode 20 ✔ is countable 25 ✔ provides a link to title 30 ✔ provides a link to class 35 ✔ provides a link to resource 40 ✔ provides a link to suite 46 ✔ provides a link to examples 55 ✔ provides a count of examples PhpSpec\Loader\Suite 12 ✔ is countable 17 ✔ provides a link to specifications 26 ✔ provides a count of examples PhpSpec\Loader\Transformer\InMemoryTypeHintIndex 10 ✔ is a typehint index 15 ✔ is case insensitive 22 ✔ remembers the typehints that are added 29 ✔ returns false for typehints that have not been added 34 ✔ throws invalid argument exceptions PhpSpec\Loader\Transformer\TypeHintRewriter 15 ✔ is a transformer 20 ✔ delegates transforming to rewriter PhpSpec\Locator\PSR0\PSR0Locator 23 ✔ is a locator 28 ✔ its priority is zero 33 ✔ generates fullSrcPath from srcPath plus namespace 42 ✔ generates fullSrcPath from srcPath plus namespace cutting psr4 prefix 51 ✔ generates proper fullSrcPath even from empty namespace 58 ✔ should not have backslash on missing prefix 67 ✔ generates fullSpecPath from specPath plus namespace 76 ✔ generates fullSpecPath from specPath plus namespace cutting psr4 prefix 85 ✔ generates proper fullSpecPath even from empty src namespace 94 ✔ stores srcNamespace it was constructed with 101 ✔ trims srcNamespace during construction 108 ✔ supports empty namespace argument 115 ✔ generates specNamespace using srcNamespace and specPrefix 122 ✔ trims specNamespace during construction 129 ✔ generates proper specNamespace for empty srcNamespace 136 ✔ finds all resources from tracked specPath 152 ✔ returns empty array if tracked specPath does not exist 163 ✔ supports folder queries in srcPath 170 ✔ supports srcPath queries 177 ✔ supports file queries in srcPath 186 ✔ supports folder queries in specPath 193 ✔ supports specPath queries 200 ✔ supports file queries in specPath 209 ✔ does not support any other queries 216 ✔ finds spec resources via srcPath 232 ✔ finds spec resources with classname underscores via srcPath 248 ✔ finds spec resources via fullSrcPath 264 ✔ finds spec resources via specPath 280 ✔ finds single spec via srcPath 295 ✔ finds single spec via specPath 310 ✔ returns empty array if nothing found 320 ✔ throws an exception on no class definition 336 ✔ does not throw an exception on no class definition if file not suffixed with spec 352 ✔ throws an exception when spec class not in the base specs namespace 368 ✔ supports classes from srcNamespace 375 ✔ supports backslashed classes from srcNamespace 382 ✔ supports classes from specNamespace 389 ✔ supports backslashed classes from specNamespace 396 ✔ supports any class if srcNamespace is empty 403 ✔ does not support anything else 410 ✔ creates resource from src class 420 ✔ creates resource from backslashed src class 430 ✔ creates resource from spec class 440 ✔ creates resource from backslashed spec class 450 ✔ creates resource from src class even if srcNamespace is empty 460 ✔ creates resource from spec class with leading backslash 470 ✔ throws an exception on non PSR0 resource 482 ✔ throws an exception on PSR0 resource with double backslash 494 ✔ throws an exception on PSR0 resource with slash on the end 506 ✔ throws an exception on PSR0 resource with line breaks at end 518 ✔ throws an exception on PSR4 prefix not matching namespace 527 ✔ supports psr0 namespace queries 534 ✔ supports psr0 namespace queries with a namespace prefix 541 ✔ supports psr4 namespace queries PhpSpec\Locator\PSR0\PSR0Resource 18 ✔ uses last segment as name 23 ✔ uses last segment plus Spec suffix as specName 28 ✔ is a resource 33 ✔ generates src filename from provided parts using locator 40 ✔ generates src namespace from provided parts using locator 47 ✔ generates proper src namespace even if there is only one part 55 ✔ generates src classname from provided parts using locator 62 ✔ generates proper src classname for empty locator namespace 69 ✔ generates spec filename from provided parts using locator 76 ✔ generates spec namespace from provided parts using locator 83 ✔ generates proper spec namespace even if there is only one part 91 ✔ generates spec classname from provided parts using locator 98 ✔ does not split underscores when locator has psr4 prefix PhpSpec\Locator\PrioritizedResourceManager 18 ✔ locates resources using all registered locators 36 ✔ locates all locators resources if query string is empty 52 ✔ returns empty array if registered locators do not support query 62 ✔ creates resource from classname using locator with highest priority 76 ✔ throws an exception if locators do not support classname 85 ✔ does not allow two resources for the same spec 100 ✔ uses the resource from the highest priority locator when duplicates occur PhpSpec\Matcher\ApproximatelyMatcher 17 ✔ is a matcher 22 ✔ supports various aliases 30 ✔ matches same float 35 ✔ does not match different floats 40 ✔ match floats with near float PhpSpec\Matcher\ArrayContainMatcher 20 ✔ is a matcher 25 ✔ responds to contain 30 ✔ matches array with specified value 35 ✔ does not match array without specified value 42 ✔ 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 22 ✔ is a matcher 27 ✔ responds to haveKey 32 ✔ matches array with specified key 37 ✔ matches array with specified key even if there is no value 42 ✔ matches ArrayObject with provided offset 49 ✔ does not match array without specified key 54 ✔ does not match ArrayObject without provided offset 61 ✔ matches array without specified key 66 ✔ matches ArrayObject without specified offset PhpSpec\Matcher\ArrayKeyValueMatcher 32 ✔ is a matcher 37 ✔ responds to haveKeyWithValue with array subject 42 ✔ responds to haveKeyWithValue with array access subject 47 ✔ does not respond to haveKeyWithValue with non array subject 52 ✔ matches array with correct value for specified key 57 ✔ does not match array with wrong value for specified key 62 ✔ does not match array with missing key 67 ✔ matches ArrayObject with correct value for specified offset 75 ✔ does not match ArrayObject with missing key 80 ✔ does not match ArrayObject with wrong value for specified offset 88 ✔ matches array without specified key 93 ✔ matches array with invalid key value 98 ✔ matches ArrayObject without specified offset 105 ✔ matches ArrayObject with invalid key value PhpSpec\Matcher\CallbackMatcher 20 ✔ is a matcher 25 ✔ supports same alias it was constructed with 30 ✔ does not support anything else 35 ✔ matches if callback returns true 42 ✔ 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 match empty string with emptish values 61 ✔ does not match zero with emptish values 67 ✔ does not match null with emptish values 73 ✔ does not match false with emptish values 79 ✔ does not match 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\Iterate\IterablesMatcher 26 ✔ should throw an invalid argument exception if subject is not iterable 44 ✔ should throw an invalid argument exception if expected value is not iterable 62 ✔ should throw an exception if subject has less elements than expected 70 ✔ should throw an exception if subject has more elements than expected 78 ✔ should throw an exception if subject element does not match the expected one 96 ✔ should not throw any exception if subject iterates as expected PhpSpec\Matcher\Iterate\SubjectElementDoesNotMatchException 15 ✔ is a failure exception 20 ✔ has a predefined message PhpSpec\Matcher\Iterate\SubjectHasFewerElementsException 9 ✔ is a length exception 14 ✔ has a predefined message PhpSpec\Matcher\Iterate\SubjectHasMoreElementsException 9 ✔ is a length exception 14 ✔ has a predefined message PhpSpec\Matcher\IterateAsMatcher 23 ✔ is a matcher 28 ✔ responds to iterate 44 ✔ positive matches generator while iterating the same 65 ✔ does not positive match generator while not iterating the same 104 ✔ negative matches generator while not iterating the same 125 ✔ does not negative matches generator while iterating the same PhpSpec\Matcher\IterateLikeMatcher 22 ✔ is a matcher 27 ✔ responds to iterate like 40 ✔ positive matches generator while iterating likes 61 ✔ does not positive match generator while not iterating the same 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 87 ✔ does not match if subject is callable 94 ✔ does not throw when positive match true 107 ✔ does not throw when negative match false PhpSpec\Matcher\ScalarMatcher 22 ✔ is a matcher 27 ✔ responds to be array 32 ✔ matches array 37 ✔ does not match not array with be array matcher 42 ✔ mismatches not array 47 ✔ does not mismatch array 52 ✔ responds to be bool 57 ✔ matches bool 62 ✔ does not match not bool with be bool matcher 67 ✔ mismatches not bool 72 ✔ does not mismatch bool 77 ✔ responds to be boolean 82 ✔ matches boolean 87 ✔ does not match not boolean 92 ✔ mismatches not boolean 97 ✔ does not mismatch boolean 102 ✔ responds to be callable 107 ✔ matches callable 112 ✔ does not match not callable 117 ✔ mismatches not callable 122 ✔ does not mismatch callable 133 ✔ responds to be double 138 ✔ matches double 143 ✔ does not match not double 148 ✔ mismatches not double 153 ✔ does not mismatches double 158 ✔ responds to be float 163 ✔ matches float 168 ✔ does not match not float 173 ✔ mismatches not float 178 ✔ does not mismatches float 183 ✔ responds to be int 188 ✔ matches int 193 ✔ does not match not int 198 ✔ mismatches not int 203 ✔ does not mismatches int 208 ✔ responds to be integer 213 ✔ matches int with integer matcher 218 ✔ does not match not integer match 223 ✔ mismatches not integer 228 ✔ does not mismatches integer 233 ✔ responds to be iterable 238 ✔ matches iterable 243 ✔ does not match not iterable 248 ✔ mismatches not iterable 253 ✔ does not mismatches iterable 258 ✔ responds to be long 263 ✔ matches long 268 ✔ does not match not long 273 ✔ mismatches not long 278 ✔ does not mismatches long 283 ✔ responds to be null 288 ✔ matches null 293 ✔ does not match not null 298 ✔ mismatches not null 303 ✔ does not mismatches null 308 ✔ responds to be numeric 313 ✔ matches numeric string 318 ✔ matches numeric number 323 ✔ does not match not numeric string 328 ✔ does not match not numeric 333 ✔ mismatches not number 338 ✔ does not mismatches number 343 ✔ responds to be object 348 ✔ matches object 353 ✔ does not match not object 358 ✔ mismatches not object 363 ✔ does not mismatches object 368 ✔ responds to be resource 373 ✔ matches a resource 380 ✔ does not match not resource 385 ✔ mismatches not resource 390 ✔ does not mismatches resource 397 ✔ responds to be scalar 402 ✔ matches scalar 407 ✔ does not match not scalar 412 ✔ mismatches not scalar 417 ✔ does not mismatches scalar 422 ✔ responds to be string 427 ✔ matches string 432 ✔ does not match not string 437 ✔ mismatches not stringt 442 ✔ does not mismatches string PhpSpec\Matcher\StartIteratingAsMatcher 23 ✔ is a matcher 28 ✔ responds to startIterating 43 ✔ positive matches generator while starting iterating the same 64 ✔ positive matches infinite generator while starting iterating the same 76 ✔ does not positive match generator while not starting iterating the same 88 ✔ negative matches generator while not starting iterating the same 109 ✔ negative matches infinite generator while not starting iterating the same 121 ✔ does not negative matches generator while starting iterating the same PhpSpec\Matcher\StringContainMatcher 29 ✔ is a matcher 34 ✔ supports contain keyword string subject and argument 39 ✔ does not support non string keyword 44 ✔ does not support missing argument 49 ✔ does not support non string argument 54 ✔ matches strings that contain specified substring 59 ✔ does not match strings that do not contain specified substring 64 ✔ matches strings that do not contain specified substring 69 ✔ does not match strings that do contain specified substring PhpSpec\Matcher\StringEndMatcher 19 ✔ is a matcher 24 ✔ supports endWith keyword and string subject 29 ✔ does not support anything else 34 ✔ matches strings that end with specified suffix 39 ✔ does not match strings that do not end with specified suffix 44 ✔ matches strings that do not end with specified suffix 49 ✔ does not match strings that do end with specified suffix 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 22 ✔ supports the throw alias for object and exception name 27 ✔ accepts a method during which an exception should be thrown 34 ✔ accepts a method during which an error specified by class name should be thrown 41 ✔ accepts a method during which an error specified by instance should be thrown 50 ✔ accepts a method during which an exception should not be thrown 55 ✔ accepts a method during which an error should not be thrown 60 ✔ throws a failure exception with the thrown exceptions message if a positive match failed PhpSpec\Matcher\TraversableContainMatcher 20 ✔ is a matcher 25 ✔ responds to contain 30 ✔ positive matches generator with specified value 38 ✔ does not positive match generator without specified value 46 ✔ negative matches generator without specified value 54 ✔ does not negative matches generator with specified value PhpSpec\Matcher\TraversableCountMatcher 21 ✔ is a matcher 26 ✔ responds to haveCount 31 ✔ positive matches proper generator count 39 ✔ does not positive match infinite generator 47 ✔ does not positive match wrong generator count 60 ✔ negative matches wrong generator count 68 ✔ negative matches infinite generator 76 ✔ does not negative match proper generator count PhpSpec\Matcher\TraversableKeyMatcher 20 ✔ is a matcher 25 ✔ responds to haveKey 30 ✔ positive matches generator with specified key 38 ✔ does not positive match generator without specified key 46 ✔ negative matches generator without specified key 54 ✔ does not negative matches generator with specified key PhpSpec\Matcher\TraversableKeyValueMatcher 20 ✔ is a matcher 25 ✔ responds to haveKeyWithValue 30 ✔ positive matches generator with specified key and value 38 ✔ does not positive match generator without specified key and value 56 ✔ negative matches generator without specified key and value 64 ✔ does not negative matches generator with specified key and value PhpSpec\Matcher\TriggerMatcher 19 ✔ supports the trigger alias for object and exception name 24 ✔ accepts a method during which an error should be triggered 31 ✔ accepts a method during which any error should be triggered 38 ✔ accepts a method during which an error should not be triggered 43 ✔ accepts a method during which any error should not be triggered 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 ✔ matches other class 74 ✔ matches other interface PhpSpec\Process\Context\JsonExecutionContext 14 ✔ is an execution context 19 ✔ contains no generated classes when created 24 ✔ remembers what classes were generated 31 ✔ can be serialized as env array PhpSpec\Process\Prerequisites\SuitePrerequisites 15 ✔ does nothing when types exist 22 ✔ throws execption when types do not exist PhpSpec\Process\ReRunner\CompositeReRunner 23 ✔ is a rerunner 28 ✔ invokes the first supported child to rerun the suite even if later children are supported 42 ✔ skips early child if it is not supported and invokes runsuite on later supported child PhpSpec\Process\ReRunner\OptionalReRunner 16 ✔ reruns the suite if it is enabled in the config 25 ✔ does not rerun the suite if it is disabled in the config PhpSpec\Process\ReRunner\PcntlReRunner 16 ✔ is a rerunner 21 ✔ is not supported when php process is not found PhpSpec\Process\ReRunner\ProcOpenReRunner 27 ✔ is a rerunner 32 ✔ is not supported when php process is not found PhpSpec\Process\ReRunner\WindowsPassthruRerunner 27 ✔ is a rerunner 32 ✔ is not supported when php process is not found PhpSpec\Process\Shutdown\Shutdown 10 ✔ has type shutdown 15 ✔ runs through all registered actions PhpSpec\Process\Shutdown\UpdateConsoleAction 17 ✔ should update the console PhpSpec\Runner\CollaboratorManager 21 ✔ stores collaborators by name 27 ✔ provides a method to check if collaborator exists 35 ✔ throws CollaboratorException on attempt to get unexisting collaborator 41 ✔ creates function arguments for ReflectionFunction 55 ✔ creates null function arguments for ReflectionFunction if no collaborator found PhpSpec\Runner\ExampleRunner 36 ✔ executes example in newly created context 47 ✔ dispatches ExampleEvent with pending status if example is pending 60 ✔ dispatches ExampleEvent with failed status if matcher throws exception 80 ✔ dispatches ExampleEvent with failed status if example throws exception 97 ✔ dispatches ExampleEvent with failed status if example throws an error 114 ✔ runs all supported maintainers before and after each example 132 ✔ runs let and letgo maintainer before and after each example if the example throws an exception PhpSpec\Runner\Maintainer\ErrorMaintainer 16 ✔ is initializable 21 ✔ return false when error suppresed or no error reporting 28 ✔ return true when recoverable level and message match 34 ✔ throws error exception when message not match PhpSpec\Runner\Maintainer\MatchersMaintainer 15 ✔ should add default matchers to the matcher manager PhpSpec\Runner\MatcherManager 20 ✔ searches in registered matchers 29 ✔ searches matchers by their priority 43 ✔ throws MatcherNotFoundException if matcher not found PhpSpec\Runner\SpecificationRunner 25 ✔ passes each specification example to ExampleRunner 37 ✔ returns examples max resultCode 49 ✔ returns 0 resultCode if no examples found 56 ✔ dispatches SpecificationEvent before and after examples run PhpSpec\Runner\SuiteRunner 29 ✔ runs all specs in the suite through the specrunner 39 ✔ stops running subsequent specs when a spec throws a StopOnFailureException 48 ✔ returns a successful result when all specs in suite pass 56 ✔ returns a broken result when one spec is broken 64 ✔ returns a failed result when one spec failed 72 ✔ dispatches events before and after the suite 88 ✔ dispatches afterSuite event with result and time PhpSpec\ServiceContainer\IndexedServiceContainer 9 ✔ stores parameters 15 ✔ returns null value for unexisting parameter 20 ✔ returns custom default for unexisting parameter if provided 25 ✔ stores services 31 ✔ knows when services are not defined 36 ✔ knows when services are defined 42 ✔ returns nothing when no services are tagged 47 ✔ returns services which are set using tags 54 ✔ returns services which are defined using tags 61 ✔ throws exception when trying to get unexisting service 66 ✔ evaluates factory function only once for shared services 75 ✔ uses new definition when a service is redefined 87 ✔ does not evaluate callables that are set 93 ✔ provides a way to remove service by key 101 ✔ supports custom service configurators PhpSpec\Specification\ErrorSpecification 10 ✔ is a specification PhpSpec\Util\ClassFileAnalyser 9 ✔ should return the line number of the start of the first method 15 ✔ should detect if class has a method 21 ✔ should detect if class has no methods 27 ✔ should return the line number of the end of the named method 33 ✔ should return the line number of the end of the last method PhpSpec\Util\ClassNameChecker 10 ✔ should be name checker 15 ✔ treats normal class name as valid 20 ✔ treats class name with reserved keyword chunk in the middle as invalid 25 ✔ treats class name with reserved keyword chunk on the left side as invalid 30 ✔ treats class name without namespace using reserved keywords as invalid 35 ✔ detects invalid class name in any letter case PhpSpec\Util\Instantiator 9 ✔ creates an instance 15 ✔ creates an instance ignoring constructor 21 ✔ creates an instance with properties 27 ✔ complains if class does not exist PhpSpec\Util\MethodAnalyser 9 ✔ identifies empty methods as empty 15 ✔ identifies commented methods as empty 20 ✔ identifies methods with code as not empty 25 ✔ identifies methods without standard braces as non empty 33 ✔ identifies internal classes as non empty 38 ✔ identifies methods from traits 44 ✔ finds the real declaring class of a method PhpSpec\Util\ReservedWordsMethodNameChecker 9 ✔ is restriction provider 14 ✔ returns true for not php restricted name 19 ✔ returns false for halt compiler function PhpSpec\Wrapper\Subject\Caller 42 ✔ dispatches method call events 65 ✔ sets a property on the wrapped object 92 ✔ proxies method calls to wrapped object 105 ✔ delegates throwing class not found exception 121 ✔ delegates throwing method not found exception 147 ✔ delegates throwing method not found exception for constructor 170 ✔ delegates throwing named constructor not found exception 194 ✔ delegates throwing method not visible exception 220 ✔ delegates throwing property not found exception 244 ✔ delegates throwing calling method on non object exception 256 ✔ delegates throwing setting property on non object exception 267 ✔ delegates throwing getting property on non object exception 279 ✔ delegates throwing factory does not return object exception PhpSpec\Wrapper\Subject\Expectation\ConstructorDecorator 23 ✔ rethrows php errors as phpspec error exceptions 29 ✔ rethrows fracture errors 35 ✔ throws phpspec error exception when wrapped object not provided 42 ✔ returns match from expectation when subject throws error PhpSpec\Wrapper\Subject\Expectation\Decorator 18 ✔ returns the decorated expectation 23 ✔ keeps looking for nested expectations PhpSpec\Wrapper\Subject\Expectation\DispatcherDecorator 26 ✔ implements the interface of the decorated 31 ✔ dispatches before and after events 42 ✔ decorates expectation with failed event 56 ✔ decorates expectation with broken event PhpSpec\Wrapper\Subject\Expectation\Negative 16 ✔ calls a negative match on matcher PhpSpec\Wrapper\Subject\Expectation\Positive 15 ✔ calls a positive match on matcher PhpSpec\Wrapper\Subject\ExpectationFactory 22 ✔ creates positive expectations 33 ✔ creates negative expectations 44 ✔ creates positive throw expectations 54 ✔ creates negative throw expectations 64 ✔ creates positive trigger expectations 74 ✔ creates negative trigger expectations PhpSpec\Wrapper\Subject\WrappedObject 17 ✔ instantiates object using classname 23 ✔ keeps instantiated object 29 ✔ can be instantiated with a factory method 41 ✔ can be instantiated with a factory method with method name only 54 ✔ throws an exception when factory method returns a non object 63 ✔ throws an exception when trying to change constructor params after instantiation 72 ✔ throws an exception when trying to change factory method after instantiation 82 ✔ throws an exception when trying to change from constructor to factory method after instantiation 92 ✔ throws an exception when trying to change from factory method to constructor after instantiation PhpSpec\Wrapper\Subject 32 ✔ passes the created subject to expectation 43 ✔ passes the existing subject to expectation 152 specs 986 examples (986 passed) 1695ms + php /usr/bin/phpunit7 --verbose --bootstrap /builddir/build/BUILDROOT/php-phpspec-6.1.0-1.fc32.noarch/usr/share/php/PhpSpec/autoload.php PHPUnit 7.5.17 by Sebastian Bergmann and contributors. Runtime: PHP 7.4.0 Configuration: /builddir/build/BUILD/phpspec-8004e609e4d365555a85617c36d30127e3233517/phpunit.xml ... 3 / 3 (100%) Time: 30 ms, Memory: 4.00 MB OK (3 tests, 4 assertions) + for cmd in php php71 php72 php73 php74 + which php71 which: no php71 in (/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin:/builddir/.composer/vendor/bin) + for cmd in php php71 php72 php73 php74 + which php72 which: no php72 in (/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin:/builddir/.composer/vendor/bin) + for cmd in php php71 php72 php73 php74 + which php73 which: no php73 in (/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin:/builddir/.composer/vendor/bin) + for cmd in php php71 php72 php73 php74 + which php74 which: no php74 in (/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin:/builddir/.composer/vendor/bin) + RPM_EC=0 ++ jobs -p + exit 0 Processing files: php-phpspec-6.1.0-1.fc32.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.BjLRo2 + umask 022 + cd /builddir/build/BUILD + cd phpspec-8004e609e4d365555a85617c36d30127e3233517 + DOCDIR=/builddir/build/BUILDROOT/php-phpspec-6.1.0-1.fc32.noarch/usr/share/doc/php-phpspec + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/php-phpspec-6.1.0-1.fc32.noarch/usr/share/doc/php-phpspec + cp -pr README.rst /builddir/build/BUILDROOT/php-phpspec-6.1.0-1.fc32.noarch/usr/share/doc/php-phpspec + cp -pr CHANGES.md /builddir/build/BUILDROOT/php-phpspec-6.1.0-1.fc32.noarch/usr/share/doc/php-phpspec + cp -pr composer.json /builddir/build/BUILDROOT/php-phpspec-6.1.0-1.fc32.noarch/usr/share/doc/php-phpspec + RPM_EC=0 ++ jobs -p + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.DnyOn3 + umask 022 + cd /builddir/build/BUILD + cd phpspec-8004e609e4d365555a85617c36d30127e3233517 + LICENSEDIR=/builddir/build/BUILDROOT/php-phpspec-6.1.0-1.fc32.noarch/usr/share/licenses/php-phpspec + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/php-phpspec-6.1.0-1.fc32.noarch/usr/share/licenses/php-phpspec + cp -pr LICENSE /builddir/build/BUILDROOT/php-phpspec-6.1.0-1.fc32.noarch/usr/share/licenses/php-phpspec + RPM_EC=0 ++ jobs -p + exit 0 Provides: php-composer(phpspec/phpspec) = 6.1.0 php-phpspec = 6.1.0-1.fc32 phpspec = 6.1.0 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: /usr/bin/env Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/php-phpspec-6.1.0-1.fc32.noarch Wrote: /builddir/build/RPMS/php-phpspec-6.1.0-1.fc32.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.OKheS5 + umask 022 + cd /builddir/build/BUILD + cd phpspec-8004e609e4d365555a85617c36d30127e3233517 + /usr/bin/rm -rf /builddir/build/BUILDROOT/php-phpspec-6.1.0-1.fc32.noarch + RPM_EC=0 ++ jobs -p + exit 0 Child return code was: 0