Ouzo\Tests\CatchException::assertThat PHP Method

assertThat() public static method

public static assertThat ( )
    public static function assertThat()
    {
        return new CatchExceptionAssert(self::$exception);
    }

Usage Example

コード例 #1
0
ファイル: FilesTest.php プロジェクト: letsdrink/ouzo
 /**
  * @test
  */
 public function shouldThrowExceptionWhenNotFoundSourceFileToMove()
 {
     //given
     $files = new Files();
     //when
     CatchException::when($files)->move('/broken/path/file', '/broken/path/new_file');
     //then
     CatchException::assertThat()->isInstanceOf('\\Ouzo\\Utilities\\FileNotFoundException');
 }
All Usage Examples Of Ouzo\Tests\CatchException::assertThat