Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Nov 12 15:20
    scottw-finao commented #3939
  • Nov 11 18:32
    kudashevs commented #3940
  • Nov 11 18:32
    kudashevs commented #3940
  • Nov 11 18:31
    kudashevs commented #3940
  • Nov 11 18:07
    kudashevs edited #3940
  • Nov 11 18:06
    kudashevs edited #3940
  • Nov 11 18:05
    kudashevs labeled #3940
  • Nov 11 18:05
    kudashevs opened #3940
  • Nov 10 13:23
    epdenouden edited #3936
  • Nov 10 13:23
    epdenouden edited #3936
  • Nov 10 13:21
    epdenouden commented #3936
  • Nov 09 07:49
    localheinz commented #3938
  • Nov 09 06:34

    sebastianbergmann on 7.4

    Fix typo (remove word: "of") \… Merge branch '7.0' into 7.1 Merge branch '7.1' into 7.2 and 2 more (compare)

  • Nov 09 06:34

    sebastianbergmann on 7.3

    Fix typo (remove word: "of") \… Merge branch '7.0' into 7.1 Merge branch '7.1' into 7.2 and 1 more (compare)

  • Nov 09 06:34

    sebastianbergmann on 7.5

    Fix typo (remove word: "of") \… Merge branch '7.0' into 7.1 Merge branch '7.1' into 7.2 and 3 more (compare)

  • Nov 09 06:34

    sebastianbergmann on 7.1

    Fix typo (remove word: "of") \… Merge branch '7.0' into 7.1 (compare)

  • Nov 09 06:34

    sebastianbergmann on 8.2

    Fix typo (remove word: "of") \… Merge branch '7.0' into 7.1 Merge branch '7.1' into 7.2 and 6 more (compare)

  • Nov 09 06:34

    sebastianbergmann on 7.2

    Fix typo (remove word: "of") \… Merge branch '7.0' into 7.1 Merge branch '7.1' into 7.2 (compare)

  • Nov 09 06:34

    sebastianbergmann on 8.4

    Fix typo (remove word: "of") \… Merge branch '7.0' into 7.1 Merge branch '7.1' into 7.2 and 8 more (compare)

  • Nov 09 06:34

    sebastianbergmann on 8.1

    Fix typo (remove word: "of") \… Merge branch '7.0' into 7.1 Merge branch '7.1' into 7.2 and 5 more (compare)

Ewout Pieter den Ouden
@epdenouden
it sorts all previously failed tests to the front of the run as much as possible
I use that a lot when cycling [make small change -> run -> oops -> repeat]
Markus Podar
@mfn

Personally I don't have local development in mind; I use PhpStorm built in unit runner which already solves my problem.

But not all test suites are suitable to be run locally, especially with integration tests, and may take >10 minutes but the earlier I know what tests failed, the sooner I can get productive again.

Ewout Pieter den Ouden
@epdenouden
yes, test collections get ever larger and those use cases can be supported better
PhpStorm/IntelliJ indeed have this "run defects first" option built-in
really handy!
Markus Podar
@mfn
Hmm, Mr. Bergmann feels otherwise unfortunately ( in regards to sebastianbergmann/phpunit#3737 )
Ewout Pieter den Ouden
@epdenouden
welllllll yeah we've been here before
he is correct though, preferably somebody would update the printer plugin
did you have a look how much work that would be?
I mean: is it only the declared return/param types that were recently introduced? I have no idea how that printer works
I am a bit preoccupied with refactoring data providers for the next while
akshaygoyal614
@akshaygoyal614
hi , i need help
anybody is there?
I am new in php unit and i just saw some tutorials. I installed phpunit by composer require phpunit/phpunit command and created phpunit.xml file and defined bootstrap = vendor/autoload.php in xml file and created a folder tests on root but i am still getting the configuration and other things
Nicolas Hohm
@nickel715
@akshaygoyal614 sounds all good so far. can you precise your question please.
Markus Podar
@mfn

I mean: is it only the declared return/param types that were recently introduced? I have no idea how that printer works

I think something with namesspaces and change exceptions type or so. I believe the fix is rather easy but the package tries to be so compatible down to PHPUnit 5/6 that it's no fun and I'm almost tempted to just create my own version from 8 and onwards.

Ewout Pieter den Ouden
@epdenouden
@mfn yes, new work I am doing is only aimed at 8; backporting new features to 7 isn't even 'allowed'
also
hi, i need help, too
refactoring the data providers is so much fun! also, please send chocolate and drugs
Ewout Pieter den Ouden
@epdenouden
maybe we need a phpunit slack
Markus Podar
@mfn
What's so bad about gitter :)
FWIF also running slack for other stuff but couldn't care less
Ewout Pieter den Ouden
@epdenouden
ah morning :)
I'll just assume then everything works and everybody is testing all-green at 100% coverage all day every day ;-)
Markus Podar
@mfn
Ewout Pieter den Ouden
@epdenouden
as long as the data providers just crash to shell, there's no red test right ;-)
Markus Podar
@mfn
image.png
Ewout Pieter den Ouden
@epdenouden
@mfn oooo graphql that's a nice toy
Markus Podar
@mfn
👍
Ewout Pieter den Ouden
@epdenouden
you're having fun :)
was just looking at the Code Sprint in sept in Mannheim
"[...] because, if PHPUnit is not well-tested, then what will be?"
Ewout Pieter den Ouden
@epdenouden
man this euro heatwave
"it's fine" :fire: :fire: :fire: :fire: :fire: :fire: :fire:
Yoanndp
@Yoanndp
Hello, someone is there?
Yoanndp
@Yoanndp
Nevermind, I fixed it :) Have a nice day
Ghost
@ghost~5d6f7af9d73408ce4fc9f5f7
Hi there, how is it possible to mock several methods on one stub? I tried with several calls to ->method(), but I get the error 'Method name matcher is already defined, cannot redefine'
Nicolas Hohm
@nickel715
@bezin Usually you do it like this https://github.com/sebastianbergmann/phpunit/blob/master/tests/unit/Framework/TestBuilderTest.php#L28-L38
If you need further help please provide some example code.
Ghost
@ghost~5d6f7af9d73408ce4fc9f5f7
@nickel715 Thanks for your hint, I found out about that a couple of hours after my question. I chained all my calls, but did not separate them per method :thumbsup:
Sebastian Bergmann
@sebastianbergmann
Andreas Möller
@localheinz
@epdenouden https://bear.app
re: eval-stdin security risk
Ewout Pieter den Ouden
@epdenouden
also, kein Code Sprint chat? :)
ich werde die '@depends on class' mal fixen 🛠
Marco Pivetta
@Ocramius

Mine: sebastianbergmann/phpunit#3120

Feel free to come over and tells me your strong opinions if I'm supposed to do something specific :P

Marco Pivetta
@Ocramius
@epdenouden can you assign the above to the sprint, please?