Uploaded image for project: 'Log4php'
  1. Log4php
  2. LOG4PHP-49

Create LoggerAppenderSocket Test

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0
    • Tests
    • None

    Description

      LoggerAppenderSocket Test must be implemented.

      Knut Urdalen:

      LoggerAppenderSocket is a bit more complicated. It uses fsockopen() to connect to a socket. I have written an example using PEAR::Net::Server [4] (see examples/client.php and examples/server.php) that I've used as a experimental central logging server before. I think it's possible to write a unit test case here which startup the socket server and connect with a client (but you need to manage two different processes here which is hard in PHP, I only know about the pcntl-extension [] used for spawning processes on *nix). If you write a test case for this remember to use self::markTestSkipped('With some useful message'); [6] if the test case is unable to run because of missing dependencies.

      http://www.phpunit.de/manual/3.3/en/incomplete-and-skipped-tests.html

      Attachments

        Activity

          People

            Unassigned Unassigned
            grobmeier Christian Grobmeier
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: