asdf-community / asdf-community/asdf-php

Weird character encoding in terminal when running phpunit with `nunomaduro/collision` (macos)

Open
#162 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
256
Forks
117
PR merge metrics
No merged PRs in 30d

Description

### Provide environment information

```bash
OS:
Darwin baka-mba.local 23.1.0 Darwin Kernel Version 23.1.0: Mon Oct 9 21:28:12 PDT 2023; root:xnu-10002.41.9~6/RELEASE_ARM64_T8103 arm64

SHELL:
zsh 5.9 (x86_64-apple-darwin23.0)

BASH VERSION:
3.2.57(1)-release

ASDF VERSION:
v0.13.1

ASDF INTERNAL VARIABLES:
ASDF_DEFAULT_TOOL_VERSIONS_FILENAME=.tool-versions
ASDF_DATA_DIR=/Users/fery/.asdf
ASDF_DIR=/opt/homebrew/opt/asdf/libexec
ASDF_CONFIG_FILE=/Users/fery/.asdfrc

ASDF INSTALLED PLUGINS:
nodejs https://github.com/asdf-vm/asdf-nodejs.git master c5b7c40
php https://github.com/asdf-community/asdf-php.git master 1eaf4de
ruby https://github.com/asdf-vm/asdf-ruby.git master 3048c2a
```

### To Reproduce

1. Create a new laravel project & `cd` into the project directory

```sh
composer create-project laravel/laravel asdf-repro
```

2. Run the example test by

```sh
php artisan test
```

3. Switch to another installed PHP version,

```sh
asdf local php 8.2.12
```

4. Repeat the first step, using another version of PHP

### Describe the Bug

Came across weird issue on my terminal when running test on one of my library. For context I'm creating a laravel package for my own uses, and noticed that the something is missing from my terminal.

Here's an example output of the reproduce step above.

![Screenshot 2023-12-10 at 10 39 54](https://github.com/asdf-community/asdf-php/assets/508665/b3f6c0be-c578-481c-a31a-88f8ad205c5b)

### Expected Behaviour

The terminal output should be the same across all php version.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the report in a fresh Laravel project using `php artisan test`, then switch versions with `asdf local php 8.2.12` and compare the terminal output. Start by inspecting the asdf-php version handling and the PHPUnit output path involving nunomaduro/collision; done means the output is consistent across the reported PHP versions.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, php, shell
Domain
cli, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.