• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tempestphp / tempest-framework / 11474462544

23 Oct 2024 06:39AM UTC coverage: 81.448% (-0.7%) from 82.194%
11474462544

Pull #513

github

web-flow
Merge 4e432caf1 into 219bda667
Pull Request #513: feat(console): add ability to publish vendor files

52 of 140 new or added lines in 6 files covered. (37.14%)

6 existing lines in 3 files now uncovered.

6884 of 8452 relevant lines covered (81.45%)

41.0 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

81.82
/src/Tempest/Auth/src/CreateUsersTable.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Tempest\Auth;
6

7
use Tempest\Core\CanBePublished;
8
use Tempest\Core\DoNotDiscover;
9
use Tempest\Core\PublishDiscovery;
10
use Tempest\Database\Migration;
11
use Tempest\Database\QueryStatements\CreateTableStatement;
12
use Tempest\Database\QueryStatements\DropTableStatement;
13

14
#[CanBePublished]
15
#[DoNotDiscover(except: [PublishDiscovery::class])]
16
final readonly class CreateUsersTable implements Migration
17
{
18
    public function getName(): string
6✔
19
    {
20
        return '0000-00-00_create_users_table';
6✔
21
    }
22

23
    public function up(): CreateTableStatement
6✔
24
    {
25
        return (new CreateTableStatement('users'))
6✔
26
            ->primary()
6✔
27
            ->varchar('name')
6✔
28
            ->varchar('email')
6✔
29
            ->datetime('emailValidatedAt', nullable: true)
6✔
30
            ->text('password');
6✔
31
    }
32

UNCOV
33
    public function down(): DropTableStatement
×
34
    {
UNCOV
35
        return DropTableStatement::forModel(User::class);
×
36
    }
37
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc