コード例 #1
0
ファイル: WriterTest.php プロジェクト: lucidphp/writer
 /** @test */
 public function itShouldThrowErrorWhenIndexIsWronOnRemove()
 {
     $wr = new Writer();
     $wr->writeln('foo');
     try {
         $wr->removeln(1);
     } catch (\OutOfBoundsException $e) {
         $this->assertSame('Lucid\\Writer\\Writer::removeln: undefined index "1".', $e->getMessage());
         return;
     }
     $this->fail();
 }