phpspec Questions

2

Solved

I want test an example method with scalar type hinting and strict types in PHP7. When I don't pass an argument, the method should throw a TypeError. PHPSpec return fatal error: Uncaught TypeErro...
Pownall asked 2/1, 2016 at 17:36

3

I'm trying to test a function in phpspec which calls Laravel's Validator::make function (http://laravel.com/docs/4.2/validation) However, I'm trying to call that same function from a namespace whe...
Whitefish asked 15/1, 2015 at 22:9

4

In modern programming workflow numerous testing frameworks are used at once. For example, in PHP world, it is de-facto standard way to use unit tests, integration tests and functional/acceptance te...
Gethsemane asked 7/10, 2015 at 0:27

1

Solved

I have a phpspec class like below and I only want to run a single spec from it. I would like to run the "it_should_do_something_easy" only. Is this possible? This is how I run this spec file: $&g...
Parvis asked 10/7, 2015 at 20:42

1

Solved

I want to get the actual return value of the object rather than a chainable object. class Foo { public $attribute = 'data'; } class FooSpec extends ObjectBehavior { public function it_is_a_test...
Unpractical asked 4/8, 2014 at 21:10

3

Solved

Does anyone know a method to generate coverage reports from PHPSpec tests? I thought about xdebug, but as far as I know it cant generate reports for jenkins.
Industrious asked 2/8, 2012 at 18:45

1

Solved

I have been wrestling with this question for far too long now. I know I need to just jump into one or the other since they are both obviously viable/useful tools, but have been stuck on the fence, ...
Autocephalous asked 29/4, 2014 at 19:8

1

I've just started learning phpspec with a view to replacing PHPUnit. Unfortunately, I've got rather hooked on using the PHPStorm editor's code completion feature, which makes even PHPUnit's verbose...
Copywriter asked 17/11, 2013 at 10:59

1

Solved

I am currently doing research into which test framework I should be using for php. The two choices I have are PHPUnit and PHPSpec. I know that PHPUnit is TDD(Test driven development) and PHPSpec is...
Anatomist asked 19/6, 2013 at 15:26
1

© 2022 - 2024 — McMap. All rights reserved.