Example #1
0
 public function testWithContent()
 {
     $f = new File('foo', $c = new StringStream('bar'));
     $f2 = $f->withContent($c2 = new StringStream('baz'));
     $this->assertNotSame($f, $f2);
     $this->assertSame($f->name(), $f2->name());
     $this->assertSame($c, $f->content());
     $this->assertSame($c2, $f2->content());
 }