Пример #1
0
 public function testWrite()
 {
     $this->if($adapter = new atoum\test\adapter())->and($adapter->fopen = null)->and($adapter->fwrite = null)->and($stdout = new testedClass(null, $adapter))->then->object($stdout->write($string = uniqid()))->isIdenticalTo($stdout)->adapter($adapter)->call('fwrite')->withArguments(null, $string)->once()->object($stdout->write($string = uniqid() . "\n"))->isIdenticalTo($stdout)->adapter($adapter)->call('fwrite')->withArguments(null, $string)->once();
 }