comparison vendor/phar-io/manifest/tests/values/ApplicationTest.php @ 14:1fec387a4317

Update Drupal core to 8.5.2 via Composer
author Chris Cannam
date Mon, 23 Apr 2018 09:46:53 +0100
parents
children
comparison
equal deleted inserted replaced
13:5fb285c0d0e3 14:1fec387a4317
1 <?php
2 /*
3 * This file is part of PharIo\Manifest.
4 *
5 * (c) Arne Blankerts <arne@blankerts.de>, Sebastian Heuer <sebastian@phpeople.de>, Sebastian Bergmann <sebastian@phpunit.de>
6 *
7 * For the full copyright and license information, please view the LICENSE
8 * file that was distributed with this source code.
9 */
10
11 namespace PharIo\Manifest;
12
13 use PHPUnit\Framework\TestCase;
14
15 /**
16 * @covers PharIo\Manifest\Application
17 * @covers PharIo\Manifest\Type
18 */
19 class ApplicationTest extends TestCase {
20 /**
21 * @var Application
22 */
23 private $type;
24
25 protected function setUp() {
26 $this->type = Type::application();
27 }
28
29 public function testCanBeCreated() {
30 $this->assertInstanceOf(Application::class, $this->type);
31 }
32
33 public function testIsApplication() {
34 $this->assertTrue($this->type->isApplication());
35 }
36
37 public function testIsNotLibrary() {
38 $this->assertFalse($this->type->isLibrary());
39 }
40
41 public function testIsNotExtension() {
42 $this->assertFalse($this->type->isExtension());
43 }
44 }