Re: [PHP-DEV] C Unit testing and mocking

2024-12-26 Thread Larry Garfield
On Thu, Dec 26, 2024, at 6:25 AM, Jakub Zelenka wrote: >> Point of order: The recently adopted 3rd party code policy does not apply to >> C tooling. It mentions "PHP Tooling", which is defined as "PHP code run by >> PHP.net". The website, docs tooling, etc. It has no bearing on what C >> lib

Re: [PHP-DEV] C Unit testing and mocking

2024-12-26 Thread Ben Ramsey
On Dec 26, 2024, at 06:19, Jakub Zelenka wrote:On Tue, Dec 24, 2024 at 8:22 PM Ben Ramsey wrote:On Dec 16, 2024, at 07:21, Jakub Zelenka wrote:Hi,I have been looking into how to test some cases where integration tests are very difficult or even impossible to

Re: [PHP-DEV] C Unit testing and mocking

2024-12-26 Thread Jakub Zelenka
On Tue, Dec 24, 2024 at 8:40 PM Larry Garfield wrote: > On Sun, Dec 22, 2024, at 9:23 AM, Jakub Zelenka wrote: > > On Mon, Dec 16, 2024 at 9:05 PM Christoph M. Becker > wrote: > >> On 16.12.2024 at 14:18, Jakub Zelenka wrote: > >> > There was a suggestion of RFC but that might be a bit too much

Re: [PHP-DEV] C Unit testing and mocking

2024-12-26 Thread Jakub Zelenka
On Tue, Dec 24, 2024 at 8:22 PM Ben Ramsey wrote: > On Dec 16, 2024, at 07:21, Jakub Zelenka wrote: > >  > Hi, > > I have been looking into how to test some cases where integration tests > are very difficult or even impossible to create for. Those are often found > in networking related and sys

Re: [PHP-DEV] C Unit testing and mocking

2024-12-24 Thread Larry Garfield
On Sun, Dec 22, 2024, at 9:23 AM, Jakub Zelenka wrote: > On Mon, Dec 16, 2024 at 9:05 PM Christoph M. Becker wrote: >> On 16.12.2024 at 14:18, Jakub Zelenka wrote: >> > There was a suggestion of RFC but that might be a bit too much as it's just >> > an internal change / addition. But certainly som

Re: [PHP-DEV] C Unit testing and mocking

2024-12-24 Thread Ben Ramsey
> On Dec 16, 2024, at 07:21, Jakub Zelenka wrote: > >  > Hi, > > I have been looking into how to test some cases where integration tests are > very difficult or even impossible to create for. Those are often found in > networking related and system specific code code (network.c, streams, FPM

Re: [PHP-DEV] C Unit testing and mocking

2024-12-22 Thread Jakub Zelenka
On Thu, Dec 19, 2024 at 1:10 PM Christoph M. Becker wrote: > On 16.12.2024 at 21:05, Christoph M. Becker wrote: > > > Especially on Windows, where we have different code paths, and sometimes > > even completely different code, it would be great to also have these > > unit tests. Given that link.

Re: [PHP-DEV] C Unit testing and mocking

2024-12-22 Thread Jakub Zelenka
On Mon, Dec 16, 2024 at 9:05 PM Christoph M. Becker wrote: > On 16.12.2024 at 14:18, Jakub Zelenka wrote: > > There was a suggestion of RFC but that might be a bit too much as it's > just > > an internal change / addition. But certainly some overview on internals > > should be done so writing thi

Re: [PHP-DEV] C Unit testing and mocking

2024-12-19 Thread Christoph M. Becker
On 16.12.2024 at 21:05, Christoph M. Becker wrote: > Especially on Windows, where we have different code paths, and sometimes > even completely different code, it would be great to also have these > unit tests. Given that link.exe supports /alternatename, a bit of > additional macro magic might d

Re: [PHP-DEV] C Unit testing and mocking

2024-12-16 Thread Christoph M. Becker
On 16.12.2024 at 14:18, Jakub Zelenka wrote: > I have been looking into how to test some cases where integration tests are > very difficult or even impossible to create for. Those are often found in > networking related and system specific code code (network.c, streams, FPM > and more). I was rece

Re: [PHP-DEV] C Unit testing and mocking

2024-12-16 Thread Calvin Buckley
On Dec 16, 2024, at 9:18 AM, Jakub Zelenka wrote: > > Hi, > > I have been looking into how to test some cases where integration tests are > very difficult or even impossible to create for. Those are often found in > networking related and system specific code code (network.c, streams, FPM and

[PHP-DEV] C Unit testing and mocking

2024-12-16 Thread Jakub Zelenka
Hi, I have been looking into how to test some cases where integration tests are very difficult or even impossible to create for. Those are often found in networking related and system specific code code (network.c, streams, FPM and more). I was recently fixing one such bug and decided to give a tr