Ejemplo n.º 1
0
 /** @test */
 public function itShouldThrowErrorWhenIndexIsWronOnReplace()
 {
     $wr = new Writer();
     $wr->writeln('foo');
     try {
         $wr->replaceln('bar', 1);
     } catch (\OutOfBoundsException $e) {
         $this->assertSame('Lucid\\Writer\\Writer::replaceln: undefined index "1".', $e->getMessage());
         return;
     }
     $this->fail();
 }