1
0
mirror of https://github.com/nicoverbruggen/phpmon.git synced 2025-12-21 19:20:06 +01:00
Commit Graph

70 Commits

Author SHA1 Message Date
7a60435421 ♻️ Improvements to Container
- RealShell is not reloaded during runtime (bugfix?)
- Container variables are now private(set)
- Initialization now also sets `webApi` property (new)
- It is only possible to run `bind` on a `Container` once now
  (previously known as `prepare`)
- Preparation for upcoming WebApi to replace `curl` command
  (for checking for updates)
2025-11-18 12:04:37 +01:00
38b3c108bf ♻️ Use replacing(with:) instead of .replacingOccurrences(of:with:)
The newer Swift native method is broadly supported and can properly
handle complex UTF-8 characters like emoji, whereas the old API does
not work correctly with emoji.

In most cases, this likely wouldn't have caused any issues but it does
make things a little cleaner now, and ensures we won't encounter emoji
trouble in the future.
2025-11-11 12:55:23 +01:00
c43f16d0d5 Fix unit tests 2025-10-16 19:00:02 +02:00
fa403b5a99 ♻️ Refactor tests to Swift Testing 2025-10-16 15:57:41 +02:00
a314eef3f7 Unit tests can now run in parallel 2025-10-16 14:54:50 +02:00
5b63211746 ♻️ All unit tests pass w/ DI container 2025-10-16 14:03:16 +02:00
79a23a2af2 ♻️ The app can build again (again)! 2025-10-16 11:48:16 +02:00
8af304979b 🚧 WIP: Test refactoring 2025-10-09 16:21:46 +02:00
85b12d1aec ♻️ Prevent unit tests from running concurrently
The way the testing classes are built with the singletons currently
prevents various test structs from being run at the same time.

I've adjusted the tests in the PHP Monitor EAP test configuration so
that they are not executed concurrently. This does slow down the test
suite but prevents odd crashes from individual tests interfering with
other tests.

It's not an ideal solution and I would like to address this in the
future, but I suspect this will be rather cumbersome. Since the app
does not actually suffer from this particular issue, this is something
worth investigating later.
2025-09-30 16:14:17 +02:00
db8df8575d ♻️ Migrate more tests to Swift Testing (3/?) 2025-09-29 17:59:33 +02:00
ceff52ed11 ♻️ Migrate more tests to Swift Testing (2/?) 2025-09-29 17:12:43 +02:00
5b27d9f0ea ♻️ Migrate more tests to Swift Testing 2025-09-29 16:39:32 +02:00
9c9720de42 🚧 Add fake API abstraction 2025-09-29 13:40:01 +02:00
13013f2513 ♻️ Lint tests, add background update check 2025-09-26 17:00:43 +02:00
3d403f5ef6 ⬆️ Modernize test suite files 2025-09-25 17:05:32 +02:00
8abd775eea Fix tests, cleanup 2025-09-25 16:33:10 +02:00
4e7c8ac624 ♻️ WIP: Updates related to Valet version change
- Centralized logic related to fetching Valet version.
- Updating global dependencies now updates the version number of Valet
  in the driver section.
- The latest version of Valet is now determined by checking Packagist.
  (This only occurs when the app starts up.)
2025-08-27 11:23:18 +02:00
88b2495c87 ♻️ WIP: Change some tests to Swift Testing, add TestBundle 2025-08-25 17:45:56 +02:00
b3b509409a Fix test 2024-03-20 10:47:52 +01:00
d83c629a7b Fix some tests 2024-01-13 12:46:33 +01:00
a7d5950aa0 Test synchronous shell output 2023-11-26 21:48:40 +01:00
c8ab2e67f6 ♻️ Various refactoring 2023-11-01 12:33:34 +01:00
f82ab913c6 Detect which extensions are available 2023-10-31 20:40:11 +01:00
58943148fa 🏗️ WIP: Detect which extensions are available 2023-10-30 20:21:50 +01:00
7977a4e177 🏗️ WIP: Reading of bitsize config entries 2023-09-04 18:39:32 +02:00
4bf475bae2 👌 Remove appcast since it is no longer expected 2023-07-09 15:22:47 +02:00
7f04dd5fcb Fix tests 2023-05-15 19:15:02 +02:00
08dcfb36f4 🏗 WIP: Formulae manager UI changes 2023-03-19 14:00:15 +01:00
f8b605f749 👌 Parse upgradable versions 2023-03-18 02:11:57 +01:00
8f1304308d 🏗 WIP: Parsing version updates 2023-03-17 20:38:21 +01:00
d1498eb070 🐛 Fix issue with parsing CaskFile 2023-03-03 14:44:15 +01:00
defb6e357a 🔀 Merge branch 'dev/5.8' into dev/6.0 2023-02-27 19:13:12 +01:00
715b674929 Fix tests 2023-02-26 15:02:43 +01:00
608525209b Remove unused test that caused failing suite 2023-02-26 14:50:31 +01:00
c7eb1d5ce5 Fix tests 2023-02-26 14:49:18 +01:00
5fc159ae5a 🐛 Adjusted for new Homebrew JSON output (#235) 2023-02-13 17:38:46 +01:00
9c6a21008a 🐛 Adjusted for new Homebrew JSON output (#235) 2023-02-13 17:38:09 +01:00
6456741880 Add support for wildcard constraints (#224) 2023-02-10 19:31:20 +01:00
b08912ce11 Add support for wildcard constraints (#224) 2023-02-10 19:31:07 +01:00
2c40f433d3 Add updater to project
If you want to see the source code to the updater, you can find it here:
https://github.com/nicoverbruggen/phpmon-updater

Starting with version 6.0, the code of the updater will be included
in this repository.
2023-02-05 18:37:18 +01:00
300880f3e5 ♻️ Reworked updater 2023-02-05 18:00:37 +01:00
78e682688b 🏗 Improved version comparison 2023-02-05 17:18:09 +01:00
208a430066 🏗 Parse CaskFile using regex 2023-02-05 13:16:04 +01:00
5c92d47ff0 Parse CaskFile, WIP for new AppUpdater 2023-02-04 22:13:43 +01:00
ff2eff2a75 👌 Remove unneeded print() statement 2023-01-30 19:18:31 +01:00
6115ef02de Add test to validate Valet version number with deprecations 2023-01-30 19:16:45 +01:00
aaa7c636db 👌 Remove unneeded print() statement 2023-01-30 19:11:47 +01:00
0fceb852bb Add test to validate Valet version number with deprecations 2023-01-30 13:08:23 +01:00
25f824defd Correctly parse .valetrc files 2023-01-24 19:48:25 +01:00
7936d14440 🏗 WIP: Add test for feature to be implemented 2023-01-24 19:48:25 +01:00