Elgg\DeprecationWrapperTest::testWrapString PHP Метод

testWrapString() публичный Метод

public testWrapString ( )
    function testWrapString()
    {
        $str = 'Hello';
        $str = new DeprecationWrapper($str, 'BAD!', 1.8, array($this, 'report'));
        $file = __FILE__;
        $new_str = "{$str}";
        $line = __LINE__;
        $this->assertEquals('Hello', $new_str);
        $this->assertEquals("{$file}:{$line}", $this->last_stack_line);
    }