Lines Matching refs:assertEquals
38 $this->assertEquals(4, $caching->getSize());
68 $this->assertEquals('te', $this->body->read(2));
70 $this->assertEquals('test', $this->body->read(4));
71 $this->assertEquals(4, $this->body->tell());
73 $this->assertEquals(2, $this->body->tell());
75 $this->assertEquals(4, $this->body->tell());
76 $this->assertEquals('ing', $this->body->read(3));
84 $this->assertEquals('tehiing', (string) $this->body);
100 $this->assertEquals("0000\n", Utils::readline($body));
101 $this->assertEquals("0001\n", Utils::readline($body));
103 $this->assertEquals(5, $body->write("TEST\n"));
104 $this->assertEquals(5, $skipReadBytes->getValue($body));
106 $this->assertEquals("0003\n", Utils::readline($body));
107 $this->assertEquals(0, $skipReadBytes->getValue($body));
108 $this->assertEquals("0004\n", Utils::readline($body));
109 $this->assertEquals("0005\n", Utils::readline($body));
113 $this->assertEquals(5, $body->write("ABCD\n"));
114 $this->assertEquals(0, $skipReadBytes->getValue($body));
115 $this->assertEquals("TEST\n", Utils::readline($body));
116 $this->assertEquals("0003\n", Utils::readline($body));
117 $this->assertEquals("0004\n", Utils::readline($body));
118 $this->assertEquals("0005\n", Utils::readline($body));
119 $this->assertEquals("0006\n", Utils::readline($body));
120 $this->assertEquals(5, $body->write("1234\n"));
121 $this->assertEquals(5, $skipReadBytes->getValue($body));
125 $this->assertEquals("0000\nABCD\nTEST\n0003\n0004\n0005\n0006\n1234\n0008\n0009\n", $body->read(50));