www.gusucode.com > KPPW众包威客PHP开源建站系统 v3.0源码程序 > KPPW/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/NullDescription.php

    <?php
namespace Hamcrest;

/*
 Copyright (c) 2009 hamcrest.org
 */

/**
 * Null implementation of {@link Hamcrest\Description}.
 */
class NullDescription implements Description
{

    public function appendText($text)
    {
        return $this;
    }

    public function appendDescriptionOf(SelfDescribing $value)
    {
        return $this;
    }

    public function appendValue($value)
    {
        return $this;
    }

    public function appendValueList($start, $separator, $end, $values)
    {
        return $this;
    }

    public function appendList($start, $separator, $end, $values)
    {
        return $this;
    }

    public function __toString()
    {
        return '';
    }
}