I have an abstract PHP class which is responsible for making process forks and separating the current process from the terminal and deamon Continues as.
I really want to get tips on how to test this class (PHPUnit). Suppose that implementing the minimum socket server in the test based on this abstract and communicating with it? Any better ideas?
The square can be seen here:
Thanks!
>
If the fork is done for testing, then the forked process can be saved from anywhere and can see that it is still going on, And the rest of the class can be tested in normal form without forking.
Comments
Post a Comment