Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CarnetApp/CarnetNextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/sebastian/code-unit-reverse-lookup/tests/WizardTest.php')
-rw-r--r--vendor/sebastian/code-unit-reverse-lookup/tests/WizardTest.php45
1 files changed, 45 insertions, 0 deletions
diff --git a/vendor/sebastian/code-unit-reverse-lookup/tests/WizardTest.php b/vendor/sebastian/code-unit-reverse-lookup/tests/WizardTest.php
new file mode 100644
index 0000000..84d0ac3
--- /dev/null
+++ b/vendor/sebastian/code-unit-reverse-lookup/tests/WizardTest.php
@@ -0,0 +1,45 @@
+<?php
+/*
+ * This file is part of code-unit-reverse-lookup.
+ *
+ * (c) Sebastian Bergmann <sebastian@phpunit.de>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace SebastianBergmann\CodeUnitReverseLookup;
+
+use PHPUnit\Framework\TestCase;
+
+/**
+ * @covers SebastianBergmann\CodeUnitReverseLookup\Wizard
+ */
+class WizardTest extends TestCase
+{
+ /**
+ * @var Wizard
+ */
+ private $wizard;
+
+ protected function setUp()
+ {
+ $this->wizard = new Wizard;
+ }
+
+ public function testMethodCanBeLookedUp()
+ {
+ $this->assertEquals(
+ __METHOD__,
+ $this->wizard->lookup(__FILE__, __LINE__)
+ );
+ }
+
+ public function testReturnsFilenameAndLineNumberAsStringWhenNotInCodeUnit()
+ {
+ $this->assertEquals(
+ 'file.php:1',
+ $this->wizard->lookup('file.php', 1)
+ );
+ }
+}