public function testCanSetCustomHeaderFactory() { $f = new Header\HeaderFactory(); $this->mock->setHeaderFactory($f); $this->assertSame($f, $this->readAttribute($this->mock, 'headerFactory')); }