/** * @covers \Box\TestScribe\FunctionWrappers\FileFunctionWrapper::file_exists * @covers \Box\TestScribe\FunctionWrappers\FileFunctionWrapper */ public function testFile_exists_negative() { // Execute the method under test. $objectUnderTest = new \Box\TestScribe\FunctionWrappers\FileFunctionWrapper(); $executionResult = $objectUnderTest->file_exists('foo'); // Validate the execution result. $expected = false; $this->assertSame($expected, $executionResult, 'Variable ( executionResult ) doesn\'t have the expected value.'); }
/** * @covers \Box\TestScribe\FunctionWrappers\FileFunctionWrapper::realpath * @covers \Box\TestScribe\FunctionWrappers\FileFunctionWrapper */ public function testRealpath_non_existing_path_throw_exception() { // Execute the method under test. $objectUnderTest = new \Box\TestScribe\FunctionWrappers\FileFunctionWrapper(); $this->setExpectedException("Box\\TestScribe\\Exception\\TestScribeException"); $objectUnderTest->realpath('foo'); }