Lemmy: Bestiverse
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
RSS BotBM to Lobste.rsEnglish · 4 days ago

Using non-breakable spaces in test method names

mnapoli.fr

external-link
message-square
0
link
fedilink
2
external-link

Using non-breakable spaces in test method names

mnapoli.fr

RSS BotBM to Lobste.rsEnglish · 4 days ago
message-square
0
link
fedilink
Yes. This article is about using non-breakable spaces to name tests. And the fact that it's awesome. And why you should use them too. public function test a user can add a product to a wishlist() { // ... } The code above is valid PHP code and works. Non-breaking spaces (aka   in HTML) look like spaces in editors but are actually interpreted like any other character by PHP.

Comments

alert-triangle
You must log in or register to comment.

Lobste.rs

lobsters

Subscribe from Remote Instance

You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !lobsters@lemmy.bestiver.se
lock
Community locked: only moderators can create posts. You can still comment on posts.

RSS Feed of lobste.rs

Source of the RSS Bot

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 37 users / day
  • 155 users / week
  • 250 users / month
  • 1.5K users / 6 months
  • 2 local subscribers
  • 399 subscribers
  • 16K Posts
  • 1.12K Comments
  • Modlog
  • mods:
  • patrick
  • RSS BotB
  • BE: 0.19.20
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org